Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250759 - x11-base/xorg-server needs -lXfont
Summary: x11-base/xorg-server needs -lXfont
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 246757
  Show dependency tree
 
Reported: 2008-12-12 20:42 UTC by Robert Wohlrab
Modified: 2009-02-27 18:20 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 Robert Wohlrab 2008-12-12 20:42:41 UTC
Found a problem that bt829_drv.so forgot to link against libXfont.so

It was found by adding "-Wl,--no-add-needed and -Wl,--no-undefined" to LDFLAGS

libtool: link: x86_64-pc-linux-gnu-gcc -shared  .libs/bt829.o .libs/bt829_module.o   -lm -lrt  -march=athlon64 -Wl,-O1 -Wl,-O1 -Wl,--no-add-needed -Wl,--no-undefined -Wl,--as-needed -Wl,-z -Wl,lazy   -Wl,-soname -Wl,bt829_drv.so -o .libs/bt829_drv.so                                                                                                                                                            
.libs/bt829.o: In function `btwrite':                                                                                                                                                                      
bt829.c:(.text+0x1c): undefined reference to `LoaderSymbol'                                                                                                                                                
.libs/bt829.o: In function `bt829_Detect':                                                                                                                                                                 
bt829.c:(.text+0xa74): undefined reference to `Xcalloc'                                                                                                                                                    
bt829.c:(.text+0xaee): undefined reference to `LoaderSymbol'                                                                                                                                               
bt829.c:(.text+0xb1b): undefined reference to `LoaderSymbol'                                                                                                                                               
bt829.c:(.text+0xb50): undefined reference to `Xcalloc'                                                                                                                                                    
bt829.c:(.text+0xb90): undefined reference to `LoaderSymbol'                                                                                                                                               
collect2: ld returned 1 exit status                                                                                                                                                                        
make[4]: *** [bt829_drv.la] Error 1                                                                                                                                                                        
make[4]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-1.5.2/work/xorg-server-1.5.2/hw/xfree86/i2c'                                                                                             
make[3]: *** [all-recursive] Error 1                                                                                                                                                                       
make[3]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-1.5.2/work/xorg-server-1.5.2/hw/xfree86'                                                                                                 
make[2]: *** [all] Error 2                                                                                                                                                                                 
make[2]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-1.5.2/work/xorg-server-1.5.2/hw/xfree86'                                                                                                 
make[1]: *** [all-recursive] Error 1                                                                                                                                                                       
make[1]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-1.5.2/work/xorg-server-1.5.2/hw'                                                                                                         
make: *** [all-recursive] Error 1                                                                                                                                                                          
 *                                                                                                                                                                                                         
 * ERROR: x11-base/xorg-server-1.5.2 failed.                                                                                                                                                               
 * Call stack:                                                                                                                                                                                             
 *               ebuild.sh, line   49:  Called src_compile                                                                                                                                                 
 *             environment, line 3158:  Called x-modular_src_compile                                                                                                                                       
 *             environment, line 3957:  Called x-modular_src_make                                                                                                                                          
 *             environment, line 3993:  Called die                                                                                                                                                         
 * The specific snippet of code:                                                                                                                                                                           
 *       emake || 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/x11-base/xorg-server-1.5.2/temp/build.log'.                                                                                                        
 * The ebuild environment file is located at '/var/tmp/portage/x11-base/xorg-server-1.5.2/temp/environment'.
 *

Reproducible: Always

Steps to Reproduce:
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2009-02-27 18:20:57 UTC
I doubt libXfont is the missing lib here and X does a lot of lazy linking.

IMHO, not a bug. Feel free to convince me otherwise :)

Thanks