Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250747 - x11-libs/liblbxutil-1.0.1 doesnt link against libX11 as supposed
Summary: x11-libs/liblbxutil-1.0.1 doesnt link against libX11 as supposed
Status: RESOLVED WONTFIX
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 19:32 UTC by Robert Wohlrab
Modified: 2009-02-20 15:42 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 Robert Wohlrab 2008-12-12 19:32:27 UTC
I compiled your package with LDFLAGS "-Wl,--no-add-needed -Wl,--no-undefined -Wl,-O1 -Wl,--as-needed" (and the same in my GCC_SPECS file under link (!static)) and noticed that your package doesnt link against libX11 when it should do (because it uses functions from X11):

x86_64-pc-linux-gnu-gcc -shared  .libs/lbx_zlib_io.o .libs/lbx_zlib.o .libs/reqstats.o .libs/misc.o .libs/dpackbits.o .libs/epackbits.o .libs/dfaxg42d.o .libs/efaxg42d.o .libs/lbxdelta.o  -lz  -march=athlon64 -Wl,-O1 -Wl,-O1 -Wl,--no-add-needed -Wl,--no-undefined -Wl,--as-needed -Wl,-soname -Wl,liblbxutil.so.1 -o .libs/liblbxutil.so.1.0.0                                                                  
.libs/lbx_zlib_io.o: In function `FreeZlibBuffer':                                                                                                                                                         
lbx_zlib_io.c:(.text+0x2dd): undefined reference to `Xfree'                                                                                                                                                
.libs/lbx_zlib_io.o: In function `InitZlibBuffer':                                                                                                                                                         
lbx_zlib_io.c:(.text+0x308): undefined reference to `Xalloc'                                                                                                                                               
.libs/lbx_zlib.o: In function `ZlibInit':                                                                                                                                                                  
lbx_zlib.c:(.text+0x8b4): undefined reference to `Xalloc'                                                                                                                                                  
.libs/lbx_zlib.o: In function `ZlibFree':                                                                                                                                                                  
lbx_zlib.c:(.text+0x84b): undefined reference to `Xfree'                                                                                                                                                   
lbx_zlib.c:(.text+0x865): undefined reference to `Xfree'                                                                                                                                                   
lbx_zlib.c:(.text+0x87d): undefined reference to `Xfree'                                                                                                                                                   
.libs/lbxdelta.o: In function `LBXInitDeltaCache':                                                                                                                                                         
lbxdelta.c:(.text+0x333): undefined reference to `Xalloc'                                                                                                                                                  
.libs/lbxdelta.o: In function `LBXFreeDeltaCache':                                                                                                                                                         
lbxdelta.c:(.text+0x2e0): undefined reference to `Xfree'                                                                                                                                                   
collect2: ld returned 1 exit status                                                                                                                                                                        
make[2]: *** [liblbxutil.la] Error 1                                                                                                                                                                       
make[2]: Leaving directory `/var/tmp/portage/x11-libs/liblbxutil-1.0.1/work/liblbxutil-1.0.1/src'                                                                                                          
make[1]: *** [all-recursive] Error 1                                                                                                                                                                       
make[1]: Leaving directory `/var/tmp/portage/x11-libs/liblbxutil-1.0.1/work/liblbxutil-1.0.1'                                                                                                              
make: *** [all] Error 2                                                                                                                                                                                    

Reproducible: Always

Steps to Reproduce:
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-12-14 19:44:58 UTC
Please, paste your emerge --info output and your "emerge -pv libX11" output. 
Comment 2 Robert Wohlrab 2008-12-14 23:30:06 UTC
Portage 2.1.6.1 (default/linux/amd64/2008.0, gcc-4.3.2-asneeded, glibc-2.9_p20081201-r0, 2.6.26-1-amd64 x86_64)                                                                                           
=================================================================                                                                                                                                         
System uname: Linux-2.6.26-1-amd64-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-2.0.0                                                                                                
Timestamp of tree: Sat, 13 Dec 2008 10:30:01 +0000                                                                                                                                                        
app-shells/bash:     3.2_p48                                                                                                                                                                              
dev-lang/python:     2.6-r5                                                                                                                                                                               
dev-util/cmake:      2.6.2                                                                                                                                                                                
sys-apps/baselayout: 2.0.0                                                                                                                                                                                
sys-apps/openrc:     0.3.0-r1                                                                                                                                                                             
sys-apps/sandbox:    1.2.18.1-r3                                                                                                                                                                          
sys-devel/autoconf:  2.13, 2.63                                                                                                                                                                           
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2                                                                                                                                                                
sys-devel/binutils:  2.19                                                                                                                                                                                 
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,-O1 -Wl,--no-add-needed -Wl,--no-undefined -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/s3d"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog midi minimal mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


[ebuild   R   ] x11-libs/libX11-1.1.5  USE="ipv6 -debug -xcb" 0 kB
[ebuild   R   ] x11-libs/liblbxutil-1.0.1  USE="-debug" 0 kB
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2009-02-20 15:42:28 UTC
lbx (Low Bandwidth X) has been removed from upstream Xorg for years and we're going to treeclean this once 1.5.3 goes stable.

Unless you have patches, we won't fix this.

Thanks