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 Reply-To: Cygwin List Message-Id: <5.1.0.14.0.20031013220614.02f5df58@127.0.0.1> X-Sender: Date: Mon, 13 Oct 2003 22:12:06 -0400 To: , From: Larry Hall Subject: Re: Trouble compiling with gcc 3.3.1-2 In-Reply-To: <000301c391fb$af4ca340$37fea8c0@nsr.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 10:34 PM 10/13/2003, Pankaj K Garg you wrote: >I'm having the following trouble compiling >even the simplest programs with gcc: > >$ gcc tmp.c >/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/libgcc.a(w32-shared-ptr.o)(.text+0x189): >undefined reference to `_pthread_atfork' >collect2: ld returned 1 exit status > >The gcc version we are using is: >$ gcc -v >Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs >Configured with: /netrel/src/gcc-3.3.1-2/configure --enable-languages=c,c++,f77, >java --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --wi >thout-included-gettext --enable-interpreter --enable-sjlj-exceptions --disable-v >ersion-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-p >c-cygwin --target=i686-pc-cygwin --prefix=/usr --exec-prefix=/usr --sysconfdir=/ >etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr/sbin >Thread model: posix >gcc version 3.3.1 (cygming special) > >Will appreciate any suggestions. OK, sometimes persistence pays off (the rest of the time it just p*sses people off ;-) ) If the installation of gcc and friends didn't work the first time, I suggest you reinstall. But before you do that, I'd first recommend you review /var/log/setup.log* to see if there's any hint there as to why the installation didn't work the first time. If this and/or the reinstallation doesn't help, read and provide the information requested before sending any follow-up message to the list. In particular, you should provide the "simple program". -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (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/