Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377649 - libXcursor.so.1: undefined symbol: XFixesSetCursorName
Summary: libXcursor.so.1: undefined symbol: XFixesSetCursorName
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-04 04:51 UTC by Kuzemko Aleksandr
Modified: 2011-08-06 10:19 UTC (History)
1 user (show)

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


Attachments
libXfixes-5.0 build log (build.log,15.39 KB, application/octet-stream)
2011-08-04 04:56 UTC, Kuzemko Aleksandr
Details
libXcursor build log (build.log,23.62 KB, text/plain)
2011-08-04 04:58 UTC, Kuzemko Aleksandr
Details
gtk+-2.24.5 build log (build.log,825.00 KB, text/plain)
2011-08-04 05:00 UTC, Kuzemko Aleksandr
Details
libXcursor-1.1.12 log with MAKEOPTS="V=1" (build.log,62.40 KB, text/plain)
2011-08-04 05:25 UTC, Kuzemko Aleksandr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kuzemko Aleksandr 2011-08-04 04:51:09 UTC
I have problem. When I try build gtk+-2.24.5 it stops on this error:
/usr/lib64/libXcursor.so: undefined reference to `XFixesSetCursorName'

Reproducible: Always




emerge --info
Portage 2.1.10.10 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.13-r4, 2.6.38 x86_64)
=================================================================
System uname: Linux-2.6.38-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-gentoo-2.0.3
Timestamp of tree: Wed, 03 Aug 2011 19:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.5 [disabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.2-r2, 3.1.3-r1, 3.2-r2
dev-util/ccache:          3.1.5
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.4.5, 4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo wtk x11
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news noclean parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"                                                                      
LANG="ru_RU.UTF-8"                                                                                                
LC_ALL="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/wtk /var/lib/layman/x11"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl alsa amd64 berkdb bzip2 cairo cdr chm cli consolekit cracklib crypt cups cxx dbus dri dvd dvdr dvdread fortran gdbm gif glib gpm graph iconv ipv6 jpeg jpeg2k kde kpathsea kqemu krb4 latex lm_sensors matroska mmx mmx2 mmxext modules mp3 mudflap multilib ncurses nls nptl nptlonly openexr opengl openmp pam pcre pdf perl plasma plotutils png policykit pppd private-headers python qt3support qt4 readline samba scanner semantic-desktop session skype spell sse sse2 ssl svg sysfs tcpd tetex tiff tk truetype udev unicode usb vdpau webinterface xcomposite xetex xml xorg zlib" ALSA_CARDS="all" 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 cgi cgid 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" LIRC_DEVICES="serial sir" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Kuzemko Aleksandr 2011-08-04 04:56:59 UTC
Created attachment 282007 [details]
libXfixes-5.0 build log

libXfixes-5.0 build log
Comment 2 Kuzemko Aleksandr 2011-08-04 04:58:11 UTC
Created attachment 282009 [details]
libXcursor build log
Comment 3 Kuzemko Aleksandr 2011-08-04 04:58:39 UTC
ldd -d -r /usr/lib64/libXcursor.so 
 linux-vdso.so.1 => (0x00007fff69cda000) 
 libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007f2d84a51000) 
 libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f2d84714000) 
 libc.so.6 => /lib64/libc.so.6 (0x00007f2d84391000) 
 libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f2d84173000) 
 libdl.so.2 => /lib64/libdl.so.2 (0x00007f2d83f6e000) 
 /lib64/ld-linux-x86-64.so.2 (0x00007f2d84ea7000) 
 libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f2d83d6a000) 
 libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00007f2d83b64000) 
 undefined symbol: XFixesSetCursorName (/usr/lib64/libXcursor.so)
Comment 4 Kuzemko Aleksandr 2011-08-04 05:00:02 UTC
Created attachment 282011 [details]
gtk+-2.24.5 build log
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-08-04 05:09:52 UTC
(In reply to comment #2)
> Created attachment 282009 [details]
> libXcursor build log

Please post the libXcursor build log when building with MAKEOPTS="V=1"
Comment 6 Kuzemko Aleksandr 2011-08-04 05:25:11 UTC
Created attachment 282013 [details]
libXcursor-1.1.12 log with MAKEOPTS="V=1"
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-08-04 05:46:57 UTC
(In reply to comment #6)
Thank you. These two lines look like the source of the problem:

-----

/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -std=gnu99  -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wformat=2 -Wold-style-definition -Wdeclaration-after-statement -DICONDIR=\"/usr/share/cursors/xorg-x11\" -DXCURSORPATH=\"~/.cursors:~/.icons:/usr/local/share/cursors/xorg-x11:/usr/local/share/cursors:/usr/local/share/icons:/usr/local/share/pixmaps:/usr/share/cursors/xorg-x11:/usr/share/cursors:/usr/share/pixmaps/xorg-x11:/usr/share/icons:/usr/share/pixmaps\" -march=native -O2 -pipe -version-number 1:0:2 -no-undefined -Wl,-O1 -Wl,--as-needed -o libXcursor.la -rpath /usr/lib64 cursor.lo display.lo file.lo library.lo xlib.lo -lXrender -lXfixes -lX11
   
libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/cursor.o .libs/display.o .libs/file.o .libs/library.o .libs/xlib.o   -Wl,--as-needed -lXrender /usr/lib64/libXext.so -L/usr/lib64 -lXext /usr/lib64/libX11.so -lxcb -lXau -lXdmcp -ldl  -march=native -O2 -Wl,-O1   -Wl,-soname -Wl,libXcursor.so.1 -o .libs/libXcursor.so.1.0.2

-----

The first command (correctly) tells libtool to link against libXfixes ("... -lXrender -lXfixes -lX11"). But when libtool actually does the linking, the "-lXfixes" argument for some reason disappears, and as a result, a library with a missing libXfixes link is created.

I think this needs to be looked at by someone who understands libtool :/
Comment 8 Kuzemko Aleksandr 2011-08-04 06:03:44 UTC
I found mistake in my system with gcraft, that show not needed files 
/usr/lib64/libX11.la
/usr/lib64/libXcursor.a
/usr/lib64/libXfixes.la
I remove it by hand. 
Now 
ldd -d -r /usr/lib64/libXcursor.so
        linux-vdso.so.1 =>  (0x00007fff5ddff000)
        libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007f6c8b5a3000)
        libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00007f6c8b39b000)
        libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f6c8b05f000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f6c8acdc000)
        libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f6c8aabd000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f6c8a8b9000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f6c8b9f9000)
        libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f6c8a6b5000)
        libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00007f6c8a4ae000)
Comment 9 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-08-04 06:06:54 UTC
(In reply to comment #8)
> I found mistake in my system with gcraft, that show not needed files 
> /usr/lib64/libX11.la
> /usr/lib64/libXcursor.a
> /usr/lib64/libXfixes.la
> I remove it by hand. 
> Now 
> ldd -d -r /usr/lib64/libXcursor.so
>         linux-vdso.so.1 =>  (0x00007fff5ddff000)
>         libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007f6c8b5a3000)
>         libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00007f6c8b39b000)
>         libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f6c8b05f000)
>         libc.so.6 => /lib64/libc.so.6 (0x00007f6c8acdc000)
>         libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f6c8aabd000)
>         libdl.so.2 => /lib64/libdl.so.2 (0x00007f6c8a8b9000)
>         /lib64/ld-linux-x86-64.so.2 (0x00007f6c8b9f9000)
>         libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f6c8a6b5000)
>         libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00007f6c8a4ae000)

Great, then the bug is fixed. You should be able to build gtk+ now.