Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143626 - emerge "games-engines/exult-1.2" fails ; show build error and call stack
Summary: emerge "games-engines/exult-1.2" fails ; show build error and call stack
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Highest normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-11 20:21 UTC by koenigrollo
Modified: 2006-10-08 04:22 UTC (History)
2 users (show)

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


Attachments
useval.cc:467: error: cast from 'Game_object*' to 'int' loses precision (error1,75.23 KB, text/plain)
2006-08-15 22:44 UTC, Christian M.
Details
full build attempt (log_exult,117.47 KB, text/plain)
2006-08-21 16:41 UTC, koenigrollo
Details
config.log (config.log,60.96 KB, text/plain)
2006-08-21 16:42 UTC, koenigrollo
Details
new version of "emerge --info" (new_emerge_info,2.34 KB, text/plain)
2006-08-21 16:42 UTC, koenigrollo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description koenigrollo 2006-08-11 20:21:17 UTC
If I try to emerge "games-engines/exult-1.2" on my Thinkpad R50e, I get following errors:

xdrag.o: In function `Get_window_coords(_XDisplay*, unsigned long, int&, int&)':
xdrag.cc:(.text+0x49): undefined reference to `XQueryTree'
xdrag.cc:(.text+0x95): undefined reference to `XGetWindowAttributes'
xdrag.cc:(.text+0xb4): undefined reference to `XFree'
xdrag.o: In function `Xdnd::Xdnd(_XDisplay*, unsigned long, unsigned long, void (*)(int, int, int, int, int, int, bool), void (*)(int, int, int, int, int, int, int, int, bool), void (*)(int, int, int, int, void*), void (*)(int, int, int, void*), void (*)(int, U7_combo_data*, int, int, void*))':
xdrag.cc:(.text+0x18e): undefined reference to `XInternAtom'
xdrag.cc:(.text+0x1aa): undefined reference to `XInternAtom'
xdrag.cc:(.text+0x1c6): undefined reference to `XInternAtom'
xdrag.cc:(.text+0x1e2): undefined reference to `XInternAtom'
xdrag.cc:(.text+0x1fe): undefined reference to `XInternAtom'
xdrag.o:xdrag.cc:(.text+0x21a): more undefined references to `XInternAtom' follow
xdrag.o: In function `Xdnd::select_msg(XSelectionEvent&)':
xdrag.cc:(.text+0x622): undefined reference to `XGetAtomName'
xdrag.cc:(.text+0x75a): undefined reference to `XGetWindowProperty'
xdrag.cc:(.text+0x77b): undefined reference to `XFree'
xdrag.o: In function `Xdnd::client_msg(XClientMessageEvent&)':
xdrag.cc:(.text+0x9b8): undefined reference to `XGetAtomName'
xdrag.cc:(.text+0xb5b): undefined reference to `XSendEvent'
xdrag.cc:(.text+0xd88): undefined reference to `XGetWindowProperty'
xdrag.cc:(.text+0xe12): undefined reference to `XConvertSelection'
xdrag.o: In function `Xdnd::Xdnd(_XDisplay*, unsigned long, unsigned long, void (*)(int, int, int, int, int, int, bool), void (*)(int, int, int, int, int, int, int, int, bool), void (*)(int, int, int, int, void*), void (*)(int, int, int, void*), void (*)(int, U7_combo_data*, int, int, void*))':
xdrag.cc:(.text+0x336): undefined reference to `XChangeProperty'
xdrag.o: In function `Xdnd::Xdnd(_XDisplay*, unsigned long, unsigned long, void (*)(int, int, int, int, int, int, bool), void (*)(int, int, int, int, int, int, int, int, bool), void (*)(int, int, int, int, void*), void (*)(int, int, int, void*), void (*)(int, U7_combo_data*, int, int, void*))':
xdrag.cc:(.text+0x5b6): undefined reference to `XChangeProperty'
collect2: ld returned 1 exit status
make[2]: *** [exult] Error 1
make[2]: Leaving directory `/var/tmp/portage/exult-1.2/work/exult-1.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/exult-1.2/work/exult-1.2'
make: *** [all] Error 2

!!! ERROR: games-engines/exult-1.2 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  exult-1.2.ebuild, line 60:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


emerge --info:

Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r12 i686)
=================================================================
System uname: 2.6.16-gentoo-r12 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.12.4
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 a52 aac acpi alsa arts asf berkdb bitmap-fonts bzip2 cairo crypt css cups dts dvd dvdr dvdread encode exif ffmpeg flac gdbm gif gphoto2 hal imagemagick imlib iproute2 ipv6 jpeg jpeg2k kde mad mmx mng mp3 mpeg musepack ncurses nls nptl nsplugin ogg opengl pam pcmcia pic png qt qt3 qt4 quicktime readline real sdl sndfile speex sse sse2 ssl svg svga symlink tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb vcd vorbis win32codecs xml xpm xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Christian M. 2006-08-15 10:19:01 UTC
Same error here on amd64

Portage 2.1.1_pre5 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System version 1.12.4
Last Sync: Sun, 13 Aug 2006 16:30:07 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict stricter"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo ftp://mirror.switch.ch/mirror/gentoo/ ftp://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 64bit 7zip X aac aalib abook acpi adns adsl alsa amarok amd amuled anthy ao aotuv applet arts artswrappersuid artworkextra asf audiofile authdaemond authfile automount avi bash-completion berkdb bidi bindist bitmap-fonts bittorrent bootsplash browserplugin calendar canna cdda cddb cdparanoia cdr cdrom chroot cjk cli cpudetection cracklib crypt crypto_libgcrypt crypto_openssl css cups curlwrappers dbus devfs26 dga divx4linux dlloader dpms dri dvd dvdr dvdread dvi dxr3 eds elibc_glibc emboss emul-linux-x86 encode ethereal extraicons extramodules extras fam fame fat ffmpeg fftw firefox flash flood font-server fontconfig foomaticdb fortran freetype freewnn gcj gdbm gif gimp gimpprint glx gnome gnome-print gpgme gphoto2 gpm gstreamer gstreamer010 gtk gtk2 gzip hal icq id3 idea imap imlib immqt-bc input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 irc irda isdnlog j2ee jabber jack jasper java java-external javascript jce jfs john joystick jp2 jpeg jpeg2k kcal kde kdepim kernel_linux kipi lame linguas_de linguas_en lzo lzw lzw-tiff mad mailbox maildir mbox migemo mime mjpeg mod mozilla moznocompose moznoirc moznomail mozsvg mp3 mp4 mp4live mpd-mad mpeg mpeg2 mpeg4 mplayer musepack mythtv ncurses network neural nfs nls nptl nptlonly nsplugin ntfs ntlm nvidia ogg oggvorbis on-the-fly-crypt openal opengl openssl oscar oss pam pam_console pcre pda pdflib perl player png pppd python pyzor qt3 qt4 quicktime rar razor readline realms reflection reiserfs rss samba sasl scanner sdl session sftp shorten shout silc skins smime sox spell spl ssl svgz tcpd themes thesaurus threads threadsonly tiff transcode truetype truetype-fonts type1-fonts unicode unzip usb userland_GNU utf8 v4l v4l2 vcd vcdimager video_cards_ati video_cards_fglrx video_cards_radeon vorbis wma wma123 wmf wxgtk1 wxwindows xanim xcomposite xfs xim xine xinerama xmlrpc xmms xorg xpm xv xvid xvmc zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Christian M. 2006-08-15 22:41:05 UTC
(In reply to comment #1)
Forget about this comment. I was wrong. Please see the attachment for my correct error message. It's a bit different from the initial bug report.
Comment 3 Christian M. 2006-08-15 22:44:10 UTC
Created attachment 94372 [details]
useval.cc:467: error: cast from 'Game_object*' to 'int' loses precision
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2006-08-15 23:06:10 UTC
I'd like to see the full build attempt from the original bug poster please.  Also, the config.log file.  Attach both as text/plain.
Comment 5 koenigrollo 2006-08-21 16:41:38 UTC
Created attachment 94812 [details]
full build attempt
Comment 6 koenigrollo 2006-08-21 16:42:06 UTC
Created attachment 94813 [details]
config.log
Comment 7 koenigrollo 2006-08-21 16:42:45 UTC
Created attachment 94814 [details]
new version of "emerge --info"
Comment 8 koenigrollo 2006-08-21 16:46:35 UTC
Comment on attachment 94814 [details]
new version of "emerge --info"

because I updated my kernel
Comment 9 koenigrollo 2006-08-28 12:42:01 UTC
I've got it!
I forgot to compile libsdl-1.2.8-r1 with X11 support. After recompiling I could build "exult" with no errors. 
Same for "dosbox", without useflag X in libsdl I got the following error in dosbox: "Exit to error: Can't init SDL No available video device", with X I can start dosbox.
Comment 10 Peter Bienstman (RETIRED) gentoo-dev 2006-10-02 01:14:10 UTC
I have exactly the same error as koenigrollo (xdrag.o: In function `Get_window_coords(_XDisplay*, unsigned long, int&, int&)':
xdrag.cc:(.text+0xf0): undefined reference to `XQueryTree'
xdrag.cc:(.text+0xff): undefined reference to `XFree'). 

I tried rebuilding SDL 1.2.11 (although the X use flag was set), but that didn't help.

Output from emerge-info:

Portage 2.1.1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.12.5
Last Sync: Mon, 02 Oct 2006 01:30:06 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O3 -pipe"
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/lib/mozilla/defaults/pref /usr/share/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo http://pandemonium.tiscali.de/pub/gentoo/ http://mirror.isp.net.au/ftp/pub/gentoo/"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa amarok amd apache2 apm arts asf automount bash-completion batch berkdb bidi bitmap-fonts bittorrent bl cdparanoia cgi cli crypt css cups dbus dlloader dpms dri dvd dvdr dvdread eds elibc_glibc emboss encode esd ethereal fat fftw flac font-server foomaticdb fortran gdb gdbm gif gphoto2 gpm gsm gstreamer gtk gtk2 hal hdf5 imap imlib innodb input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kdepim kernel_linux latex libg++ libwww lirc_devices_pctv lm_sensors logrotate mad mikmod mjpeg mmx motif mp3 mp4live mpeg mpeg2 mplayer msn musepack musicbrainz mysql mythtv ncurses nls nptl nptlonly nsplugin nvidia ofx ogg opengl openssh openssl oss pam pcre pda pdf perl png pppd python qt3 qt4 quicktime readline real reflection sdl session spell spl sqlite sqlite3 sse sse-filters sse2 ssl subversion svg tcl tcpd threads tk truetype truetype-fonts type1-fonts udev unicode userland_GNU v4l v4l2 vcd vfat video_cards_nvidia videos vidix visualization vorbis webdav wifi win32codecs wma xinerama xml xmms xorg xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Comment 11 Peter Bienstman (RETIRED) gentoo-dev 2006-10-02 01:34:24 UTC
Actually, I was able to solve this using this emerge command:

CFLAGS="${CFLAGS} -lX11" emerge exult

So I guess the ebuild needs updating...    
Comment 12 Mr. Bones. (RETIRED) gentoo-dev 2006-10-02 10:14:03 UTC
No we're not going to tack -l stuff onto CFLAGS.  that is too ugly for words.
Comment 13 Tupone Alfredo gentoo-dev 2006-10-08 04:22:03 UTC
Linking problem with X11 fixed. Thanks for report