Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424683 - media-libs/libsdl: /usr/lib/libSDL.so: undefined reference to `_XGetRequest'
Summary: media-libs/libsdl: /usr/lib/libSDL.so: undefined reference to `_XGetRequest'
Status: RESOLVED DUPLICATE of bug 423855
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-03 22:59 UTC by Vladi
Modified: 2012-07-10 16:23 UTC (History)
0 users

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


Attachments
build log (33347.txt,268.24 KB, text/plain)
2012-07-04 18:15 UTC, Vladi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladi 2012-07-03 22:59:21 UTC
xbmc-9999 fails comple unless libsdl is compiled with LDFLAGS="-lX11"

I had to put LDFLAGS="-lX11" and USE="custom-cflags" and recompile libsdl

error:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/libSDL.so: undefined reference to `_XGetRequest'


libsdl:
media-libs/libsdl-1.2.14-r6

xbmc build log:
http://bpaste.net/show/33347/
Comment 1 Rafał Mużyło 2012-07-04 01:35:54 UTC
First of all - don't use pastebins for bugzilla reports.

Second, such error at most suggested to reemerge libsdl.

Third, your "fix" using LDFLAGS to pass libs just makes me cringe.

In the end, either plain INVALID or WORKFORME.

That is unless you can reproduce libsdl being successfully emerged, yet missing the symbol.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-07-04 14:13:01 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 3 Vladi 2012-07-04 18:14:18 UTC
Portage 2.1.10.65 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r3, 3.5.0-rc5+ x86_64)
=================================================================
System uname: Linux-3.5.0-rc5+-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_4850e-with-gentoo-2.1
Timestamp of tree: Wed, 04 Jul 2012 06:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.1.4-r3, 3.2.3
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo x11 x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/das1/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en bg"
MAKEOPTS="-j3"
PKGDIR="/mnt/das1/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/cache/gentoo"
PORTDIR="/mnt/das1/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit X a52 aac acpi adns alsa amd64 async bash-completion branding bzip2 cairo cdda cdr cgi chroot ck-server cli command-args consolekit cracklib crypt ctype curl cxx dbus dedicated diskio dri dts dvdr dynamicplugin emboss enca encode enscript epoll exif extensions faac faad fasttrack ffmpeg firefox flac fontconfig fuse gd gdbm geoip gif glibc-omitfp gnutella gnutls hardcoded-tables hash hpn iconv imap inline inotify iproute2 ithreads jpeg kerberos lcms libnotify logrotate lzo mad magic matroska mmx mmxext mng modules mp3 mp4 mpeg mpm-worker mudflap multilib mysql nagios-dns nagios-ping nagios-ssh ncurses network nfsv3 no-old-linux nonfsv4 nptl odbc offensive ogg ogm opengl openmp openvg pam pango pcre pdf perl php pic png policykit ppds pppd python python3 qt3support readline rrdtool rtmp samba sdl session shared-dricore silvercity slang smi smtp snmp snortsam sockets spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 subversion svg sysfs syslog theora threads tidy tiff truetype udev udisks unicode upower urandom userlocales v4l vdpau vim-syntax vorbis vpx webserver wifi x264 xa xcb xml xorg xrandr xulrunner xv xvid xvmc zero-penalty-hit zip 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="alias auth_basic authz_host authz_user authn_file autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mime mime_magic negotiation proxy proxy_http rewrite setenvif so status unique_id userdir usertrack vhost_alias cgid" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en bg" LIRC_DEVICES="userspace" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_req limit_zone map referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi dav gzip_static proxy" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon r300" 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, USE_PYTHON
Comment 4 Vladi 2012-07-04 18:15:29 UTC
Created attachment 317163 [details]
build log
Comment 5 Rafał Mużyło 2012-07-04 22:55:22 UTC
(In reply to comment #4)
> Created attachment 317163 [details]
> build log

As I already said, with such error xbmc doesn't matter.

Only libsdl matters and that only if you can reproduce a successful build of libsdl (with the original ebuild), while 'ldd -r' still shows missing symbols in it afterwards.
If you can, attach build log of libsdl (with the original ebuild; verbose, if necessary).
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-07-06 08:00:18 UTC
Very much like bug 423855. Downgrading libX11 is not supported scenario. Upgrade back to libX11 1.5.0 or above and recompile libsdl against it.

*** This bug has been marked as a duplicate of bug 423855 ***
Comment 7 Lukas Elsner 2012-07-06 12:23:30 UTC
I dont think that this is a duplicate.

my "nx"-problem happens with libX11-1.5.0
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-07-10 16:23:09 UTC
(In reply to comment #7)
> I dont think that this is a duplicate.
> 
> my "nx"-problem happens with libX11-1.5.0

`emerge -e libsdl` if in doubt