On Wed, Jun 07, 2006 at 02:37:13AM -0700, Philip M. Gollucci wrote: > Joe Orton wrote: > >On Sat, Jun 03, 2006 at 02:02:18AM -0700, Philip M. Gollucci wrote: > >>Hi, > >> > >>Googling seems to suggest a patch to GCC is needed. I'm hoping not. > >>I'm going to try other (newer) gcc versions as I happen to have them > >>handy. > >> > >>Any thoughts on the below ? > > > >Does it work if you explicitly link -lgcov by passing LIBS=-lgcov to > >configure too? > CFLAGS="-fprofile-arcs -ftest-coverage" ./configure > LIBS="-lgcov" CFLAGS="-fprofile-arcs -ftest-coverage" ./configure > > Second works. (Thanks Joe) > > Without out it, _all_ versions of gcc compiled from source also break. > Even the 3.4.x branch after the fix was supposedly committed.
OK. It could be there is a more subtle problem like libtool not passing through the -f flags when linking the .so, depending on your version of libtool (some not so ancient versions would not pass through unknown flags on the link line, IIRC). joe > > I tried these: > gcc version 2.95.3 20010315 (release) > gcc version 3.3.6 > gcc version 3.2.3 > gcc version 3.4.4 20050518 > gcc version 3.4.6 (should work here, but doesn't) > gcc version 4.0.4 20060525 (prerelease) > gcc version 4.1.2 20060526 (prerelease) > gcc version 4.2.0 20060527 (experimental) > > > > -- > ------------------------------------------------------------------------ > Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708 > Consultant / http://p6m7g8.net/Resume/resume.shtml > Senior Software Engineer - TicketMaster - http://ticketmaster.com > 1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F > > "It takes a minute to have a crush on someone, an hour to like someone, > and a day to love someone, but it takes a lifetime to forget someone..."
