Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76683 - smpeg fails to build with ld error: cannot find -lGL
Summary: smpeg fails to build with ld error: cannot find -lGL
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-04 14:18 UTC by Matt May
Modified: 2005-04-08 09:00 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 May 2005-01-04 14:18:07 UTC
While building smpeg, the build fails with this error:

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make[1]: *** [glmovie] Error 1
make[1]: Leaving directory `/var/tmp/portage/smpeg-0.4.4-r4/work/smpeg-0.4.4'
make: *** [all-recursive] Error 1

In all the lib dirs I checked, I could find symlinks from libGL.so.1 to a valid target .so. I have run ldconfig and etc-config recently.

Reproducible: Always
Steps to Reproduce:
1. emerge smpeg

Actual Results:  
build fails at:
gcc -march=x86-64 -O2 -pipe -fexpensive-optimizations -fomit-frame-pointer
-I/usr/include/SDL -D_REENTRANT -DTHREADED_AUDIO -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-I/usr/X11R6/include -DNDEBUG -I.. -DNOCONTROLS -I. -I./audio -I./video -o
.libs/glmovie glmovie-tile.o glmovie.o -L/usr/lib64 -lGL -lGLU .libs/libsmpeg.so
-L//usr/lib -lSDL -lpthread -lm -lSDL -lpthread -lm -lsupc++ -lSDL -lpthread -lm
-L//usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lm -Wl,--rpath -Wl,//usr/lib
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lGL
collect2: ld returned 1 exit status
make[1]: *** [glmovie] Error 1
make[1]: Leaving directory `/var/tmp/portage/smpeg-0.4.4-r4/work/smpeg-0.4.4'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/smpeg-0.4.4-r4 failed.
!!! Function src_compile, Line 48, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.



Expected Results:  
build

Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.8-gentoo x86_64)
=================================================================
System uname: 2.6.8-gentoo x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.5.3
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Aug  3 2004, 18:26:35)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r2, 1.9.3, 1.6.3, 1.7.9, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.4.26
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=x86-64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control /var/www/localhost/htdocs//mythweb/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://gentoo.osuosl.org/ http://gentoo.ccccom.com"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X accessibility acpi aim alsa avi berkdb bitmap-fonts bonobo cdr
crypt cups dvd dvdr esd f77 fam flac fortran ftp gdbm gif gnome gpm gstreamer
gtk gtk2 gtkhtml icq imagemagick imap imlib ipv6 jabber java jikes jp2 jpeg ldap
libwww lirc lzw lzw-tiff mad mbox mikmod motif mozilla mpeg msn multilib mysql
nas ncurses nls oggvorbis opengl oss pam pdflib perl php png python qt quicktime
readline samba scanner sdl slang soap speex ssl svg tcpd theora tidy tiff
truetype truetype-fonts type1-fonts unicode usb userlocales xml xml2 xmlrpc xmms
xpm xrandr xv xvid xvidinfo yahoo zlib"
Comment 1 Matt May 2005-01-06 09:04:55 UTC
I think I fixed it by re-setting opengl-config xorg-x11. It built after that. I'm doing an emerge --update world up to 2004.3, so there's far too many dependencies for me to figure out how that got unset...
Comment 2 Mateusz Wojcik 2005-04-08 03:21:56 UTC
I've had the same problem afer upgrading xorg and ati-drivers package. 'opengl-update ati' fixed the issue.
Comment 3 Luca Barbato gentoo-dev 2005-04-08 09:00:19 UTC
which xorg version were you using? I committed a fix for that issue long ago.

Can you use opengl-update to fix the problem of missing libs as stated?