Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201626 - dev-libs/DirectFB-1.1.0 links against system DirectFB libraries when /usr/X11R6 -> .
Summary: dev-libs/DirectFB-1.1.0 links against system DirectFB libraries when /usr/X11...
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-07 23:32 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2007-12-09 19:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-libs:DirectFB-1.1.0:20071208-154458.log (dev-libs:DirectFB-1.1.0:20071208-154458.log,350.17 KB, text/plain)
2007-12-08 15:55 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-12-07 23:32:36 UTC
I upgraded dev-libs/DirectFB-1.0.0 to dev-libs/DirectFB-1.1.0 and later I discovered that 2 files were incorrectly linked against DirectFB-1.0.0's library:
$ ldd /usr/lib/directfb-1.1-0/inputdrivers/libdirectfb_x11input.so
        linux-gate.so.1 =>  (0xb7f9e000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7e93000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb7e84000)
        libdirect-1.1.so.0 => /usr/lib/libdirect-1.1.so.0 (0xb7e6d000)
        libfusion-1.1.so.0 => /usr/lib/libfusion-1.1.so.0 (0xb7e64000)
        libdirectfb-1.0.so.0 => not found
        libdl.so.2 => /lib/libdl.so.2 (0xb7e5f000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7e48000)
        libc.so.6 => /lib/libc.so.6 (0xb7cfd000)
        libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7cfa000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7ce1000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb7cdc000)
        libz.so.1 => /lib/libz.so.1 (0xb7cc9000)
        /lib/ld-linux.so.2 (0x80000000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7cc3000)
$ ldd /usr/lib/directfb-1.1-0/systems/libdirectfb_x11.so
        linux-gate.so.1 =>  (0xb7fab000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7e9f000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb7e90000)
        libdirect-1.1.so.0 => /usr/lib/libdirect-1.1.so.0 (0xb7e79000)
        libfusion-1.1.so.0 => /usr/lib/libfusion-1.1.so.0 (0xb7e70000)
        libdirectfb-1.0.so.0 => not found
        libdl.so.2 => /lib/libdl.so.2 (0xb7e6b000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7e54000)
        libc.so.6 => /lib/libc.so.6 (0xb7d09000)
        libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7d06000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7ced000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb7ce8000)
        libz.so.1 => /lib/libz.so.1 (0xb7cd5000)
        /lib/ld-linux.so.2 (0x80000000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7ccf000)
$ emerge -ptv DirectFB

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R   ] dev-libs/DirectFB-1.1.0  USE="fbcon gif jpeg mmx png sdl sse sysfs truetype zlib -debug -fusion -v4l -v4l2" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 1 SpanKY gentoo-dev 2007-12-08 07:12:15 UTC
`ldd` is an invalid test, you need to use `readelf -d`

otherwise, you failed to provide `emerge info` or a build log like a good bug report, and since it works fine on my system ...
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-12-08 15:34:34 UTC
Portage 2.2_pre8864 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.6.1-r0, 2.6.23-tuxonice-r3-AFTA i686)
=================================================================
System uname: 2.6.23-tuxonice-r3-AFTA i686 AMD Sempron(tm) Processor 2800+
Timestamp of tree: Fri, 07 Dec 2007 19:47:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc6
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18.50.0.3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -pipe -O2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -pipe -O2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildsyspkg ccache collision-protect distlocks metadata-transfer parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl http://gentoo.po.opole.pl http://gentoo.ynet.sk/pub http://mirror.gentoo.no http://mirrors.evolva.ro/gentoo http://ftp.du.se/pub/os/gentoo http://ftp.linux.ee/pub/gentoo/distfiles ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://ftp.lug.ro/gentoo http://src.gentoo.pl"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed,--hash-style=gnu,--sort-common,-z,relro"
LINGUAS="pl en la lt"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/manifest1_obsolete --prune-empty-dirs"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi alsa apache2 arts audiofile bash-completion berkdb bzip2 cairo caps cddb cdparanoia cdr cracklib crypt cscope ctype cups curl curlwrappers dbus dga directfb dri dts dvb dvd dvdr dvdread emboss encode exif expat fam fbcon ffmpeg firefox flac foomaticdb ftp gcj gd gdbm ggi gif glut gmp gnutls gpm graphviz gstreamer gtk guile hal hardened iconv idn imagemagick imlib ipv6 java javascript jbig jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility lame lash lcms ldap libcaca lm_sensors mad matroska matrox memlimit mhash mikmod mime mmap mmx mng motif mp3 mpeg mpi mplayer musepack ncurses netcdf nls nptl nsplugin odbc ogg openal openexr opengl pam pcntl pcre pda pdf perl png portaudio posix ppds python qt3 qt4 quicktime rdesktop readline recode ruby sasl scanner sdl session sharedmem shorten simplexml slang slp sndfile soap sockets speex spell sqlite sqlite3 sse sse2 ssl svg svga symlink szip tcl tcpd theora threads tiff tk truetype unicode usb vcd vim-syntax vorbis win32codecs wmf wxwindows x264 x86 xattr xcomposite xine xml xmlrpc xpm xprint xsl xv xvid zlib" ALSA_CARDS="hda-intel virmidi" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="access_compat actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_default authn_file authz_core 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="pl en la lt" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-12-08 15:36:20 UTC
$ readelf -d /usr/lib/directfb-1.1-0/inputdrivers/libdirectfb_x11input.so

Dynamic section at offset 0x1ee4 contains 28 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libX11.so.6]
 0x00000001 (NEEDED)                     Shared library: [libXext.so.6]
 0x00000001 (NEEDED)                     Shared library: [libdirect-1.1.so.0]
 0x00000001 (NEEDED)                     Shared library: [libfusion-1.1.so.0]
 0x00000001 (NEEDED)                     Shared library: [libdirectfb-1.0.so.0]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [libdirectfb_x11input.so]
 0x0000000c (INIT)                       0x678
 0x0000000d (FINI)                       0x1cf4
 0x6ffffef5 (GNU_HASH)                   0xf4
 0x00000005 (STRTAB)                     0x2f0
 0x00000006 (SYMTAB)                     0x140
 0x0000000a (STRSZ)                      561 (bytes)
 0x0000000b (SYMENT)                     16 (bytes)
 0x00000003 (PLTGOT)                     0x2ff4
 0x00000002 (PLTRELSZ)                   144 (bytes)
 0x00000014 (PLTREL)                     REL
 0x00000017 (JMPREL)                     0x5e8
 0x00000011 (REL)                        0x588
 0x00000012 (RELSZ)                      96 (bytes)
 0x00000013 (RELENT)                     8 (bytes)
 0x6ffffffe (VERNEED)                    0x558
 0x6fffffff (VERNEEDNUM)                 1
 0x6ffffff0 (VERSYM)                     0x522
 0x6ffffffa (RELCOUNT)                   7
 0x00000000 (NULL)                       0x0
$ readelf -d /usr/lib/directfb-1.1-0/systems/libdirectfb_x11.so

Dynamic section at offset 0x3eb8 contains 28 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libX11.so.6]
 0x00000001 (NEEDED)                     Shared library: [libXext.so.6]
 0x00000001 (NEEDED)                     Shared library: [libdirect-1.1.so.0]
 0x00000001 (NEEDED)                     Shared library: [libfusion-1.1.so.0]
 0x00000001 (NEEDED)                     Shared library: [libdirectfb-1.0.so.0]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [libdirectfb_x11.so]
 0x0000000c (INIT)                       0x14ac
 0x0000000d (FINI)                       0x3804
 0x6ffffef5 (GNU_HASH)                   0xf4
 0x00000005 (STRTAB)                     0x838
 0x00000006 (SYMTAB)                     0x208
 0x0000000a (STRSZ)                      1755 (bytes)
 0x0000000b (SYMENT)                     16 (bytes)
 0x00000003 (PLTGOT)                     0x4ff4
 0x00000002 (PLTRELSZ)                   656 (bytes)
 0x00000014 (PLTREL)                     REL
 0x00000017 (JMPREL)                     0x121c
 0x00000011 (REL)                        0x103c
 0x00000012 (RELSZ)                      480 (bytes)
 0x00000013 (RELENT)                     8 (bytes)
 0x6ffffffe (VERNEED)                    0xfdc
 0x6fffffff (VERNEEDNUM)                 2
 0x6ffffff0 (VERSYM)                     0xf14
 0x6ffffffa (RELCOUNT)                   47
 0x00000000 (NULL)                       0x0
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-12-08 15:55:28 UTC
Created attachment 138030 [details]
dev-libs:DirectFB-1.1.0:20071208-154458.log
Comment 5 SpanKY gentoo-dev 2007-12-08 18:50:49 UTC
it should be fixed now, please test

http://sources.gentoo.org/dev-libs/DirectFB/DirectFB-1.1.0.ebuild?r1=1.1&r2=1.2