Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1427 - ld fails to link with libGLU
Summary: ld fails to link with libGLU
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-31 01:30 UTC by Joachim Blaabjerg (RETIRED)
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 Joachim Blaabjerg (RETIRED) gentoo-dev 2002-03-31 01:30:37 UTC
I have xfree86-4.2.0-r8 and ld.so-1.9.11-r2, and ld refuses to link with libGLU. 
/usr/X11R6/lib/libGLU.so exists (it's a symlink to libGLU.so.1.3), and I don't see what could be 
wrong with it. ld just says it can't find -lGLU... Bug or stupidity on my side?
Comment 1 Joachim Blaabjerg (RETIRED) gentoo-dev 2002-03-31 01:41:18 UTC
Really weird, this... Take a look:

styx@elysium lesson35 $ make
gcc -o Lesson35 Lesson35.o  `sdl-config --libs` -lGL -lGLU
/usr/i686-pc-linux-gnu/bin/ld: cannot find -lGLU
collect2: ld returned 1 exit status
make: *** [Lesson35] Error 1
styx@elysium lesson35 $ cd ../lesson09
styx@elysium lesson09 $ make
gcc -Wall -pedantic -ansi lesson09.c -o lesson09 -L/usr/X11R6/lib -lGL -lGLU -lXxf86vm
styx@elysium lesson09 $

Shouldn't ld find the library regardless of the objects it's linking?
Comment 2 Joachim Blaabjerg (RETIRED) gentoo-dev 2002-03-31 01:43:14 UTC
I'm so stupid. Sorry about this. -L/usr/X11R6/lib did the trick, of course. Five days/nights 
without proper sleep really affects my brain negatively... Strange ;)