X-Spam-Check-By: sourceware.org Message-ID: <44D0B58D.60301@cygwin.com> Date: Wed, 02 Aug 2006 10:24:13 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060112 Fedora/1.5-1.fc4.remi Thunderbird/1.5 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Help: gcc problem in Cygwin! References: <20060802042618 DOT 42445 DOT qmail AT web33804 DOT mail DOT mud DOT yahoo DOT com> In-Reply-To: <20060802042618.42445.qmail@web33804.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com . Reformatted. Frank C. wrote: > --- "Larry Hall (Cygwin)" > wrote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ . Thanks. > >> Frank C. wrote: >>> Dear all, >>> >>> I've been trying to install a software on Cygwin >> under >>> Windows XP, but without any success. The steps are >> (1) >>> './configure', and (2) 'make'. >>> >>> I had following error message after running >> 'make'. >>> cygpath: can't convert empty path >>> > /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o) >>> :: undefined reference to '_WinMain AT 16' >>> collect2: ld returned 1 exit status >>> make: *** [libquicknet3.a] Error 1 >>> >>> >>> Can anyone let me know what's wrong here? It seems >>> that there is a confusion on which linker to use >> for >>> gcc, and GNU ld is not on the path. I attach the >>> output from './configure' at the end. Do you think >> it >>> is related to those outputs? If so, how to fix it? >> If >>> not, what's the cause? >>> checking for ld used by GCC... ${CXX} >>> checking if the linker (${CXX}) is GNU ld... no >>> >> >> >> Make sure you've installed the 'binutils' package >> and that >> 'ld' from this package is in your path. If this >> doesn't >> resolve the problem, then please read and follow the >> problem >> reporting guidelines found here: >> >>> Problem reports: >> http://cygwin.com/problems.html >> >> >> >> -- >> Larry Hall >> http://www.rfk.com >> RFK Partners, Inc. (508) >> 893-9779 - RFK Office >> 216 Dalton Rd. (508) >> 893-9889 - FAX >> Holliston, MA 01746 >> >> -- >> Unsubscribe info: >> http://cygwin.com/ml/#unsubscribe-simple >> Problem reports: >> http://cygwin.com/problems.html >> Documentation: http://cygwin.com/docs.html >> FAQ: http://cygwin.com/faq/ >> > Larry, > > Thanks for your quick reply! > > I installed the latest version of Cygwin, and almost > all packages which includes 'binutils' package. I > checked and found 'ld' in the path: (1) > cygwin\bin\ld.exe (678 kb), and (2) > cygwin\usr\i686-pc-cygwin\bin\ld.exe (1 kb). Is this > normal? Yes, that's normal. The latter is a symbolic link to the former. > I did a quick search on the list and couldn't find > exact answer to my question. > > Do you have any more thoughts? Thanks! OK, this looks like it must be a configure problem then. 'cygpath' is apparently being invoked by the script with an empty path. If you can narrow down where in this script that this is happening, you should have more luck determining why this is the case and how to resolve it. My WAG is that it's resolving some environment variable or path that doesn't actually exist. But I can't say more without further details. HTH, -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/