Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292427 - ERROR: media-libs/glew-1.5.1 failed. /i686-pc-linux-gnu/bin/ld: cannot find -lGL
Summary: ERROR: media-libs/glew-1.5.1 failed. /i686-pc-linux-gnu/bin/ld: cannot find...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-08 20:31 UTC by Yaroslav
Modified: 2009-12-30 21:24 UTC (History)
1 user (show)

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 Yaroslav 2009-11-08 20:31:56 UTC
>>> Emerging (1 of 1) media-libs/glew-1.5.1
openpty failed: 'out of pty devices'       
 * glew-1.5.1-src.tgz RMD160 SHA1 SHA256 size ;-) ...                    [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...                                                        
>>> Unpacking glew-1.5.1-src.tgz to /var/tmp/portage/media-libs/glew-1.5.1/work
>>> Source unpacked in /var/tmp/portage/media-libs/glew-1.5.1/work             
>>> Compiling source in /var/tmp/portage/media-libs/glew-1.5.1/work/glew ...   
make -j3 STRIP=true 'LD=i686-pc-linux-gnu-gcc ' CC=i686-pc-linux-gnu-gcc 'POPT=-O2 -march=native -pipe -mmmx -msse -msse2 -mssse3' M_ARCH= AR=i686-pc-linux-gnu-ar                                                                        
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -mmmx -msse -msse2 -mssse3 -Wall -W -Iinclude  -fPIC  -o src/glew.pic_o -c src/glew.c                                                                                                       
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -mmmx -msse -msse2 -mssse3 -Wall -W -Iinclude   -o src/glew.o -c src/glew.c                                                                                                                 
i686-pc-linux-gnu-ar cr lib/libGLEW.a src/glew.o                                                                     
i686-pc-linux-gnu-gcc  -shared -Wl,-soname=libGLEW.so.1.5 -o lib/libGLEW.so.1.5.1 src/glew.pic_o -L/usr/X11R6/lib -lXmu -lXi -lGLU -lGL -lXext -lX11                                                                                      
/usr/lib/gcc/i686-pc-linux-gnu/4.4.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lGL                          
collect2: выполнение ld завершилось с кодом возврата 1                                                               
make: *** [lib/libGLEW.so.1.5.1] Ошибка 1                                                                            
 *                                                                                                                   
 * ERROR: media-libs/glew-1.5.1 failed.                                                                              
 * Call stack:                                                                                                       
 *               ebuild.sh, line   49:  Called src_compile                                                           
 *             environment, line 2220:  Called die                                                                   
 * The specific snippet of code:                                                                                     
 *       emake STRIP=true LD="$(tc-getCC) ${LDFLAGS}" CC="$(tc-getCC)" POPT="${CFLAGS}" M_ARCH="" AR="$(tc-getAR)" || die "emake failed"                                                                                                  
 *  The die message:                                                                                                 
 *   emake failed                                                                                                    
 *                                                                                                                   
 * If you need support, post the topmost build error, and the call stack if relevant.                                
 * A complete build log is located at '/var/tmp/portage/media-libs/glew-1.5.1/temp/build.log'.                       
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/glew-1.5.1/temp/environment'.              
 *                                                                                                                   

>>> Failed to emerge media-libs/glew-1.5.1, Log file:

>>>  '/var/tmp/portage/media-libs/glew-1.5.1/temp/build.log'

 * Messages for package media-libs/glew-1.5.1:

 *
 * ERROR: media-libs/glew-1.5.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2220:  Called die
 * The specific snippet of code:
 *       emake STRIP=true LD="$(tc-getCC) ${LDFLAGS}" CC="$(tc-getCC)" POPT="${CFLAGS}" M_ARCH="" AR="$(tc-getAR)" || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-libs/glew-1.5.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/glew-1.5.1/temp/environment'.


Reproducible: Always
Comment 1 Rafał Mużyło 2009-11-08 20:42:52 UTC
Check 'eselect opengl'.
You're probably suffering from eselect-opengl 1.0.8
being dropped from the tree (probably by mistake).
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2009-11-14 16:02:01 UTC
Set you opengl w/ eselect and try again,

works here.
Comment 3 George Pearson 2009-12-30 21:24:32 UTC
(In reply to comment #2)
> Set you opengl w/ eselect and try again,
> 
> works here.
> 

I ran into this problem after
emerge -uND world
had to eselect opengl list then choose the X11 version as NVIDIA drivers were installed.  After that it worked.  It does not seem to compile with the NVIDIA proprietary drivers chosen.