Hello, I get these errors [...] x86_64-pc-linux-gnu-g++ -O1 -march=athlon64 -pipe -fno-merge-constants -fno-defer-pop -fno-thread-jumps -fcse-follow-jumps -fgcse -fpeephole2 -fschedule-insns2 -fregmove -ffloat-store -ftracer -funroll-all-loops -ffinite-math-only -fno-signaling-nans -fomit-frame-pointer -fno-rtti -I/usr/include/xmms -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -O3 -Wall -fPIC -D_REENTRANT -I../ -I../immscore -I../clients -c ../immscore/xidle.cc -o xidle.o ar rs libimmscore.a basicdb.o correlate.o fetcher.o imms.o immsdb.o levenshtein.o md5.o picker.o playlist.o regexx.o serverstub.o song.o songinfo.o sqldb2.o sqlite++.o strmanip.o utils.o xidle.o ar: creating libimmscore.a x86_64-pc-linux-gnu-g++ -O1 -march=athlon64 -pipe -fno-merge-constants -fno-defer-pop -fno-thread-jumps -fcse-follow-jumps -fgcse -fpeephole2 -fschedule-insns2 -fregmove -ffloat-store -ftracer -funroll-all-loops -ffinite-math-only -fno-signaling-nans -fomit-frame-pointer -fno-rtti `pkg-config glib-2.0 --cflags` -I/usr/include/xmms -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -O3 -Wall -fPIC -D_REENTRANT -I../ -I../immscore -I../clients -c ../immsd/socketserver.cc -o socketserver.o x86_64-pc-linux-gnu-g++ immsd.o socketserver.o `pkg-config glib-2.0 --libs` libimmscore.a -L. -lpcre -lsqlite3 -lz -ltag -o immsd libimmscore.a(xidle.o)(.text+0x44): In function `XIdle::XIdle()': : undefined reference to `XOpenDisplay' libimmscore.a(xidle.o)(.text+0xf4): In function `XIdle::XIdle()': : undefined reference to `XOpenDisplay' libimmscore.a(xidle.o)(.text+0x1dc): In function `XIdle::query_pointer()': : undefined reference to `XQueryPointer' collect2: ld returned 1 exit status make[1]: *** [immsd] Error 1 make: *** [all] Error 2 Regards Christian Reproducible: Always Steps to Reproduce: 1. emerge xmms-imms 2. 3. Actual Results: Compile aborts Gentoo Base System version 1.6.8 Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20040808-r1,glibc-2.3.4.20041102-r0, 2.6.10-ck5 x86_64) ================================================================= System uname: 2.6.10-ck5 x86_64 AMD Athlon(tm) 64 Processor 3200+ Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 7 2004, 18:00:12)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r3 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="" ALSA_CARDS="intel8x0 emu10k1" ARCH="amd64" AUTOCLEAN="yes" AUTO_SYMLINK="no" BASH_ENV="/etc/spork/is/not/valid/profile.env" CCACHE_SIZE="2G" CFLAGS="-O1 -march=athlon64 -pipe -fcaller-saves -fpeephole2 -falign-loops -falign-jumps -finline-functions -fweb -freduce-all-givs -funroll-all-loops -ffinite-math-only -fno-signaling-nans -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CLASSPATH="." CLEAN_DELAY="5" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CONF_LIBDIR="lib" CONF_MULTILIBDIR="lib32" CVS_RSH="ssh" CXXFLAGS="-O1 -march=athlon64 -pipe -fno-merge-constants -fno-defer-pop -fno-thread-jumps -fcse-follow-jumps -fgcse -fpeephole2 -fschedule-insns2 -fregmove -ffloat-store -ftracer -funroll-all-loops -ffinite-math-only -fno-signaling-nans -fomit-frame-pointer" DCCC_PATH="/usr/lib/distcc/bin" DISPLAY=":0.0" DISTCC_DIR="/var/tmp/.distcc" DISTCC_LOG="" DISTCC_VERBOSE="0" DISTDIR="/usr/portage/distfiles" EDITOR="/usr/bin/vim" FEATURES="autoaddcvs autoconfig ccache digest distlocks sandbox userpriv usersandbox" FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}" GCC_SPECS="" GDK_USE_XFT="1" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://gentoo.inode.at/" GLIBC_SSP_CHECKED="1" GRP_STAGE23_USE="multilib ipv6 pam tcpd readline nls ssl gpm perl python berkdb ncurses readline zlib -java -nptl" G_BROKEN_FILENAMES="1" HISTCONTROL="ignoredups:erasedups" HOME="/root" HOSTNAME="amd64" INFOPATH="/usr/share/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/info" JAVAC="/opt/blackdown-jdk-1.4.2.01/bin/javac" JAVA_HOME="/opt/blackdown-jdk-1.4.2.01" JDK_HOME="/opt/blackdown-jdk-1.4.2.01" KBUILD_OUTPUT_PREFIX="" KDEDIR="/usr/kde/3.3" KDEDIRS="/usr" KDE_IS_PRELINKED="1" KDE_MALLOC="1" LESS="-R" LESSCHARSET="utf-8" LESSOPEN="|lesspipe.sh %s" LIBGL_DRIVERS_PATH="/usr/lib/modules/dri" LINGUAS="de" LINUX_PORTAGE_WRITABLE="no" LOGNAME="root" LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.mp3=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.ogg=00;36:*.flac=00;36:*.aac=00;36:" MAIL="/var/mail/root" MAKEOPTS="-j2" MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/man:/usr/share/man::/opt/blackdown-jdk-1.4.2.01/man:/usr/qt/3/doc/man" MOZILLA_FIVE_HOME="/usr/lib/mozilla" NOCOLOR="false" PAGER="/usr/bin/less" PATH="/usr/lib/ccache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3:/opt/ati/bin:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin" PKGDIR="/usr/portage/packages" PORTAGE_ARCHLIST="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 ppc-macos ppc-od s390 sh sparc x86 x86-fbsd x86-obsd x86-od" PORTAGE_BINHOST_CHUNKSIZE="3000" PORTAGE_CALLER="emerge" PORTAGE_GID="250" PORTAGE_MASTER_PID="17640" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" PORT_LOGDIR="/var/log/portage" PRELINK_PATH="" PRELINK_PATH_MASK="/usr/lib/wine:/usr/lib/valgrind" PWD="/root" PYTHONDOCS="/usr/share/doc/python-docs-2.3.4/html" QMAKESPEC="linux-g++" QTDIR="/usr/qt/3" RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}" RPMDIR="/usr/portage/rpm" RSYNC_RETRIES="3" RSYNC_TIMEOUT="180" SANE_CONFIG_DIR="/etc/sane.d" SHELL="/bin/bash" SHLVL="1" SSH_AGENT_PID="23879" SSH_AUTH_SOCK="/tmp/ssh-DKzEL23878/agent.23878" STAGE1_USE="multilib" SYNC="rsync://rsync.gentoo.org/gentoo-portage" TERM="xterm" USE="amd64 X X509 a52 aalib acl acpi acpi4linux activefilter adns alsa apache2 arts artswrappersuid audiofile avi bash-completion bcmath berkdb bigger-fonts bitmap-fonts bonobo bzlib caps cddb cdparanoia cdr chroot client codecs crypt cscope css ctype cups dbm dhcp directfb divx4linux doc dts dvd dvdr dvdread encode extensions f77 faac faad fam fame faxonly fbcon ffmpeg flac font-server foomaticdb freetype gd gdbm gif gimp gimpprint gnome gpm gstreamer gtk2 gtkhtml hal hbci icq imagemagick imlib ipv6 javascript jbig jpeg jpeg2k kde lcd lcms ldap libclamav libwww lm_sensors lzo lzw lzw-tiff mad maildir mailwrapper mbox mcal md5sum mikmod mime mjpeg mng motif mpeg mpeg4 mppe-mppc mysql nas ncurses network nls no-old-linux nptl nptlonly odbc oggvorbis opengl oss pam pcntl pcre pdflib perl php pic png pnp posix postgres ppds python qt quicktime readline rtc samba scanner sdl session sftplogging slang slp snmp sockets socks5 sox spell sqlite ssl tcltk tcpd tetex threads tiff tokenizer truetype truetype-fonts type1-fonts unicode usb userlocales vanilla vim-with-x wxwindows xine xml xml2 xmms xpm xprint xrandr xsl xv xvid zlib video_cards_radeon linguas_de" USER="root" USERLAND="GNU" USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS" VIDEO_CARDS="radeon" XARGS="xargs -r" XAUTHORITY="/root/.xauthhx2Lsi" XINITRC="/etc/X11/xinit/xinitrc" _="/usr/bin/emerge" ftp_proxy="http://192.168.0.1:3128/" http_proxy="http://192.168.0.1:3128/"
i'll take a look at it, later today.
do you also get this error if you use CFLAGS which are not that agressive? like: CFLAGS="-O2 -march=k8 -pipe" ?
Yes: CFLAGS="-pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" Same result I think x86_64-pc-linux-gnu-g++ -pipe -fomit-frame-pointer -fno-rtti `pkg-config glib-2.0 --cflags` -I/usr/include/xmms -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -O3 -Wall -fPIC -D_REENTRANT -I../ -I../immscore -I../clients -c ../immsd/socketserver.cc -o socketserver.o x86_64-pc-linux-gnu-g++ immsd.o socketserver.o `pkg-config glib-2.0 --libs` libimmscore.a -L. -lpcre -lsqlite3 -lz -ltag -o immsd libimmscore.a(xidle.o)(.text+0x44): In function `XIdle::XIdle()': : undefined reference to `XOpenDisplay' libimmscore.a(xidle.o)(.text+0xf4): In function `XIdle::XIdle()': : undefined reference to `XOpenDisplay' libimmscore.a(xidle.o)(.text+0x1dc): In function `XIdle::query_pointer()': : undefined reference to `XQueryPointer' collect2: ld returned 1 exit status make[1]: *** [immsd] Error 1 make: *** [all] Error 2
ok, there is a new upstream release available. i've commited the new version, it should be available in 1 or 2 hours. please test if this is still a problem with that release. the author made fixed to the build system and also the changes which my patch in the filesdir did.
I tested the new release, but unfortunatley it breaks with the exact same error. I think the bug is not xmms-imms related. I recompled xmms. This broke with an error telling me, libGL.la would not be a valid archiv. Maybe the bug is Xorg or ati-drivers related. Some days agao I had a similar error in an other ebuild. In both cases, the former bug and xmms it was okay, to set USE="-opengl". Could it be that the current Xorg ebuild is broken? Or, not working harmonic with ati-drivers? Regards Christian
this is also possible. since this seems to be related to your xorg setup i'm reassigning this one to x11@g.o
Take a look at bug #79825 -- do you use ati-drivers?
Excuse me, Donnie Berkholz, but you pointed exactly to _this_ thread, where we are just talking about. Could it be that you wanted to point to an other link? And, yes I am using ati-drivers, latest (first) version for amd64.
I have the exact same problem. I do not use ati drivers, I use the proprietary nVidia drivers. However, I am on amd64, like the original reporter.
oops yeah .. meant bug #79293
I checked out the link and I copied the missing libGL.la file to my machine. This fixed build problems on xine-lib and xmms using the opengl use flag. But xmms-imms still fails at the exact same point. I tried something like apropos XIdle, but I do not know, where the missing reference comes from. If I understand correctly: Creating the object files is working. Just linking fails, due not finding the referenced methods/functions anywhere in the libs? Is that right?
The problem is that -lX11 is not set. Adding it to vars.mk makes it compile fine here on amd64 xorg-x11 6.8.2.
That fix (adding -lX11 to vars.mk in the imms source directory) worked for me also.
This is such a simple fix... Why isn't it being added to portage?
fixed in cvs, thanks for your report and for supporting our development.