Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130011 - games-strategy/glest-2.0.0 link error
Summary: games-strategy/glest-2.0.0 link error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 130317 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-14 21:03 UTC by Michal Kurgan (RETIRED)
Modified: 2006-08-28 13:00 UTC (History)
9 users (show)

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


Attachments
Patch for the current ebuild (glest-2.0.0.diff,301 bytes, patch)
2006-04-18 20:42 UTC, Gustavo Ribeiro Alves
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Kurgan (RETIRED) gentoo-dev 2006-04-14 21:03:04 UTC
Result of emerge glest:

LinkApplication glest_map_editor
/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../crt1.o: In function `_start':
init.c:(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status

    i686-pc-linux-gnu-g++ -o glest_map_editor   ./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a   -lSDL -lpthread -lGL  -lm -lGLU -lGL  -lm -lxerces-c -lpthread -L/usr/lib -lvorbis -lm -lvorbisfile -L/usr/lib -logg -lopenal -pthread -L/usr/X11R6/lib -lwx_gtk2_gl-2.6 -lwx_gtk2_xrc-2.6 -lwx_gtk2_html-2.6 -lwx_gtk2_dbgrid-2.6 -lwx_gtk2_adv-2.6 -lwx_gtk2_core-2.6 -lwx_base_odbc-2.6 -lwx_base_xml-2.6 -lwx_base_net-2.6 -lwx_base-2.6

...failed LinkApplication glest_map_editor ...
...failed updating 1 target(s)...
...updated 116 target(s)...

!!! ERROR: games-strategy/glest-2.0.0 failed.
Call stack:
  ebuild.sh, line 1532:   Called dyn_compile
  ebuild.sh, line 929:   Called src_compile
  glest-2.0.0.ebuild, line 67:   Called die

!!! jam failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2006-04-14 23:44:58 UTC
reopen with the output from emerge --info
Comment 2 Michal Kurgan (RETIRED) gentoo-dev 2006-04-15 00:37:39 UTC
LoL, i like this resolution :-). Sorry i didn't do that in first place.
emerge --info

Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE=""
ANT_HOME="/usr/share/ant-core"
ARCH="x86"
AUTOCLEAN="yes"
BASH_ENV="/etc/spork/is/not/valid/profile.env"
BROWSER="firefox"
CBUILD="i686-pc-linux-gnu"
CCACHE_SIZE="5G"
CFLAGS="-O2 -march=k8 -m3dnow -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COLORTERM="Terminal"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CVS_RSH="ssh"
CXXFLAGS="-O2 -march=k8 -m3dnow -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-BLVEcZto23,guid=98a1404467dbed2d99632a18387d3c00"
DBUS_SESSION_BUS_PID="6123"
DESKTOP_SESSION="xfce"
DESKTOP_STARTUP_ID=""
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_WARNING_DELAY="10"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 5 ${URI} -P ${DISTDIR}"
GCC_SPECS=""
GDK_USE_XFT="1"
GDMSESSION="xfce"
GDM_XSERVER_LOCATION="local"
GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.arcticnetwork.ca/ ftp://gentoo.arcticnetwork.ca/pub/gentoo/"
G_BROKEN_FILENAMES="1"
HOME="/home/mkurgan"
HOSTNAME="demon"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.4.5/info"
INPUT_DEVICES="mouse keyboard"
JAVAC="/opt/sun-jdk-1.4.2.10/bin/javac"
JAVA_HOME="/opt/sun-jdk-1.4.2.10"
JDK_HOME="/opt/sun-jdk-1.4.2.10"
KDEDIRS="/usr"
KERNEL="linux"
LADSPA_PATH="/usr/lib/ladspa"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBGL_DRIVERS_PATH=":/usr/lib/xorg/modules/dri"
LINGUAS="en pl"
LOGNAME="mkurgan"
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:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=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:*.jar=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:*.pbm=01;35:*.pgm=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:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=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:*.flac=01;35:*.mp3=01;35:*.mpc=00;36:*.ogg=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.flac=00;36:*.aac=00;36:"
MAKEOPTS="-j2"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.4.5/man::/opt/sun-jdk-1.4.2.10/man:/usr/qt/3/doc/man"
OPENGL_PROFILE="ati"
PAGER="/usr/bin/less"
PATH="/usr/lib/ccache/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5:/opt/ati/bin:/opt/stuffit/bin:/opt/sun-jdk-1.4.2.10/bin:/opt/sun-jdk-1.4.2.10/jre/bin:/opt/sun-jdk-1.4.2.10/jre/javaws:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/games/bin:~/data/bin"
PERLIO="stdio"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc s390 amd64 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha ppc-macos hppa x86"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CALLER="emerge"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_MASTER_PID="6471"
PORTAGE_NICENESS="10"
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_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_TMPFS="/dev/shm"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
PORT_LOGDIR="/var/log/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK="/usr/lib/gstreamer-0.8"
PWD="/home/mkurgan"
PYTHONDOCS="/usr/share/doc/python-docs-2.4.2/html"
PYTHONPATH="/usr/lib/portage/pym"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 5 ${URI} -P ${DISTDIR}"
RPMDIR="/usr/portage/rpm"
SESSION_MANAGER="local/kurgan01:/tmp/.ICE-unix/6143"
SHELL="/bin/bash"
SHLVL="2"
SSH_AGENT_PID="6060"
SSH_AUTH_SOCK="/tmp/ssh-tCqvqS6059/agent.6059"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
SciTE_HOME="/home/mkurgan/.scite"
TERM="xterm"
TERMCMD="terminal"
USE="x86 3dnow 3dnowext X a52 aac acpi alsa apache2 avi berkdb bitmap-fonts browserplugin bzip2 bzlib cairo cdr cli crypt ctype cups dba dbus divx4linux dri dvb dvd dvdr dvdread emboss encode examples expat fastbuild fbcon ffmpeg firefox flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimpprint glut gmp gnutls gpg gphoto2 gpm gtk gtk2 imap imlib isdnlog java javascript jikes jpeg jpeg2k junit libg++ libwww lm_sensors lzo mad matroska memlimit mikmod mime mjpeg mmap mmx mmx2 mmxext mng mp3 mpeg mplayer musepack mysql ncurses nls nptl nsplugin odbc ogg openal opengl pam pcre pdflib perl php png posix postgres ppds pppd python qt quicktime rar readline samba sdl session simplexml slang soap sockets speex spell spl sqlite sse sse2 ssl svg tcpd tetex theora tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb vhosts videos vorbis win32codecs wmf wxwindows xine xinerama xml xml2 xosd xsl xv xvid zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_en linguas_pl userland_GNU video_cards_ati video_cards_fglrx video_cards_vga"
USER="mkurgan"
USERLAND="GNU"
USERNAME="mkurgan"
USE_EXPAND="DVB_CARDS ELIBC FCDSL_CARDS FRITZCAPI_CARDS INPUT_DEVICES KERNEL LINGUAS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN=""
USE_ORDER="env:pkg:conf:defaults"
VIDEO_CARDS="ati fglrx vga"
WINDOWID="37748843"
XARGS="xargs -r"
XAUTHORITY="/home/mkurgan/.Xauthority"
_="/usr/bin/emerge"
Comment 3 Alexander Brüning 2006-04-15 06:01:50 UTC
Same here:

LinkApplication glest 
LinkApplication glest_map_editor 
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crt1.o: In function `_start':
init.c:(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status

    i686-pc-linux-gnu-g++ -o glest_map_editor   ./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a  -Wl,-O1 -lSDL -lpthread -lGL  -lm -lGLU -lGL  -lm -lxerces-c -lpthread -L/usr/lib -lvorbis -lm -lvorbisfile -L/usr/lib -logg -lopenal -pthread -Wl,-O1 -L/usr/X11R6/lib -lwx_gtk2_gl-2.6 -lwx_gtk2_xrc-2.6 -lwx_gtk2_html-2.6 -lwx_gtk2_adv-2.6 -lwx_gtk2_core-2.6 -lwx_base_xml-2.6 -lwx_base_net-2.6 -lwx_base-2.6

...failed LinkApplication glest_map_editor ...
...failed updating 1 target(s)...
...updated 116 target(s)...

!!! ERROR: games-strategy/glest-2.0.0 failed.
Call stack:
  ebuild.sh, line 1532:   Called dyn_compile
  ebuild.sh, line 929:   Called src_compile
  glest-2.0.0.ebuild, line 67:   Called die

Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-gentoo-r2 i686)
=================================================================
System uname: 2.6.16-gentoo-r2 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre17
dev-lang/python:     2.4.2-r1
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-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac alsa apm asf avi berkdb bitmap-fonts bzip2 cairo cdparanoia cegui cli crypt css ctype cups curl dba dlloader dri dvb dvd dvdr effects emboss encode expat fastbuild ffmpeg foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimpprint glitz gnutls gpm gstreamer gtk gtk2 imagemagick imlib inkjar ipv6 isdnlog joystick jpeg jpeg2k kde kdeenablefinal kdexdeltas kqemu ladspa lcms libg++ libwww live mad memlimit mikmod mmap mmx mng motif mp3 mp4 mpeg musicbrainz ncurses network nls nptl nptlonly ogg openal opengl pam pcre pdflib perl pic png posix pppd python qt quicktime readline rtc samba sdl session simplexml soap sockets spell spl sse sse2 ssl startup-notification svg tcpd theora threads tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis win32codecs wmf x264 xine xml xsl xv xvid xvud zlib elibc_glibc input_devices_joystick input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nv video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LINGUAS
Comment 4 Alexander Brüning 2006-04-15 08:49:50 UTC
One of the Glest coders stated that the map editor is not cross-platform yet [1]. Could that be the problem?

[1] http://www.glest.org/board/viewtopic.php?t=1189
Comment 5 Michal Kurgan (RETIRED) gentoo-dev 2006-04-15 11:20:23 UTC
(In reply to comment #4)

You are right.
This is exact problem, but dev spec there that map_editor isn't in source package, only in CVS... then what is source of gentoo game sources?
Comment 6 Alexander Brüning 2006-04-15 11:55:27 UTC
Okay, just unmerged wxGTK and now glest compiles fine. Looks like we need to pass something like --without-wxwidgets to configure.
Comment 7 Dennis Brendel 2006-04-18 08:46:43 UTC
(In reply to comment #6)
> Okay, just unmerged wxGTK and now glest compiles fine. Looks like we need to
> pass something like --without-wxwidgets to configure.
> 

Same here, without wxGTK it compiles fine :-)
Comment 8 sharpshopter 2006-04-18 14:55:45 UTC
I think I have the same problem, but for some reason I don't get any output beyond LinkApplication glest_map_editor, ie. I get "LinkApplication glest_map_editor" then the next line is a prompt.
Comment 9 Lucas Chiesa 2006-04-18 19:02:50 UTC
*** Bug 130317 has been marked as a duplicate of this bug. ***
Comment 10 Gustavo Ribeiro Alves 2006-04-18 20:24:27 UTC
I can confirm this on amd64.
Comment 11 Gustavo Ribeiro Alves 2006-04-18 20:42:58 UTC
Created attachment 84936 [details, diff]
Patch for the current ebuild

Proposed patch to solve the problem. Please note that I used a hack to make it not find the wx library: I used --with-wx-prefix=noinstall. A patch should be made upstream to allow an option like --without-editor or --with-editor and a use flag should be made for it.
Comment 12 Matija "hook" Šuklje 2006-05-11 03:43:19 UTC
I second to the confirmation on amd64.

Has a bug-report been issued up-stream already?
Comment 13 Alexander Brüning 2006-05-11 08:50:19 UTC
> Has a bug-report been issued up-stream already?
No, but there's a patch [1] available that should make the map editor compile. It doesn't work with the current ebuild though, because #5 is right and the editor source isn't included in the .zip.
Comment 14 Alexander Brüning 2006-05-11 08:51:11 UTC
Dang, forgot the patch URL:

[1] http://www.glest.org/board2/viewtopic.php?t=1209
Comment 15 Gustavo Ribeiro Alves 2006-05-11 08:57:26 UTC
Ops... I sent another upstream bug report while  Alexander Br
Comment 16 Gustavo Ribeiro Alves 2006-05-11 08:57:26 UTC
Ops... I sent another upstream bug report while  Alexander Brüning  was submitting his. http://www.glest.org/board2/viewtopic.php?t=1254
Comment 17 Alexander Brüning 2006-05-11 09:12:43 UTC
(In reply to comment #15)
> Ops... I sent another upstream bug report while  Alexander Br
Comment 18 Alexander Brüning 2006-05-11 09:12:43 UTC
(In reply to comment #15)
> Ops... I sent another upstream bug report while  Alexander Brüning  was
> submitting his. http://www.glest.org/board2/viewtopic.php?t=1254

Heh, I did not submit a bug report, only linked a possible patch that already was there ;)
Comment 19 Albert Zeyer 2006-07-13 09:12:58 UTC
Same error here on a PPC. I got exactly the same error on an AMD64. On my x86 PCs (tried it on 2 x86 systems), it compiles fine. I checked the output there and the difference is, that on all x86 PCs, the line "LinkApplication glest_map_editor" is missing and because of this, there is no error and it compiles fine.

...
LinkApplication glest
LinkApplication glest_map_editor
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.1/../../../crt1.o:(.rodata+0x4): undefined reference to `main'
collect2: ld returned 1 exit status

    powerpc-unknown-linux-gnu-g++ -o glest_map_editor   ./build/powerpc-unknown-linux-gnu/optimize/shared_lib/sources/libglestlib.a   -lSDL -lpthread -lGL  -lm -lGLU -lGL  -lm -lxerces-c -lpthread -L/usr/lib -lvorbis -lm -lvorbisfile -L/usr/lib -logg -lopenal -pthread -L/usr/X11R6/lib -lwx_gtk2_gl-2.6 -lwx_gtk2_xrc-2.6 -lwx_gtk2_html-2.6 -lwx_gtk2_adv-2.6 -lwx_gtk2_core-2.6 -lwx_base_xml-2.6 -lwx_base_net-2.6 -lwx_base-2.6

...failed LinkApplication glest_map_editor ...
...failed updating 1 target(s)...
...updated 116 target(s)...

!!! ERROR: games-strategy/glest-2.0.0 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  glest-2.0.0.ebuild, line 67:   Called die

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

Comment 20 Mr. Bones. (RETIRED) gentoo-dev 2006-08-28 13:00:20 UTC
Should be fixed by glest-2.0.0-r1, thanks to Tristan Heaven