Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7821 - GD and analog failing with "cannot find -lgd"
Summary: GD and analog failing with "cannot find -lgd"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Michael Cummings (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-12 03:40 UTC by Matt Keadle
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Keadle 2002-09-12 03:40:11 UTC
GD fails to emerge. Following error is produced:

LD_RUN_PATH="/usr/lib:/usr/X11R6/lib" cc  -shared -L/usr/local/lib GD.o  -o
blib/arch/auto/GD/GD.so   -L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/lib -lgd -lpng
-lz -lfreetype -ljpeg -lm -lX11 -lXpm  
/usr/i686-pc-linux-gnu/bin/ld: cannot find -lgd
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/GD/GD.so] Error 1

As you can see from LD_RUN_PATH above, the path /usr/local/lib is referenced
instead of /usr/lib. I tried doing some sedding in the ebuild and managed to
change those paths, but GD still produces the same error.

Interestingly enough, I later tried to emerge analog and received a similar error:

/usr/i686-pc-linux-gnu/bin/ld: cannot find -lgd
collect2: ld returned 1 exit status
make: *** [analog] Error 1

So it looks like it may perhaps not be the GD build, but something greater.

It is 4:30am and I haven't the energy to discover much more.
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2002-09-14 15:42:40 UTC
Matt,

     By mistake, GD-2.0 and libgd 2.0 went out for a while (they are now
masked). Can you rsync and make sure you are running the 1.X version of GD? Thanks!
Comment 2 Matt Keadle 2002-09-15 04:55:12 UTC
That was it! All clear.