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.
reopen with the output from emerge --info
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"
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
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
(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?
Okay, just unmerged wxGTK and now glest compiles fine. Looks like we need to pass something like --without-wxwidgets to configure.
(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 :-)
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.
*** Bug 130317 has been marked as a duplicate of this bug. ***
I can confirm this on amd64.
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.
I second to the confirmation on amd64. Has a bug-report been issued up-stream already?
> 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.
Dang, forgot the patch URL: [1] http://www.glest.org/board2/viewtopic.php?t=1209
Ops... I sent another upstream bug report while Alexander Br
Ops... I sent another upstream bug report while Alexander Brüning was submitting his. http://www.glest.org/board2/viewtopic.php?t=1254
(In reply to comment #15) > Ops... I sent another upstream bug report while Alexander Br
(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 ;)
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.
Should be fixed by glest-2.0.0-r1, thanks to Tristan Heaven