When emerging freedroid the compilation stops with errors. Reproducible: Always Steps to Reproduce: 1. emerge freedroid Actual Results: build stops with errors Expected Results: complete without errors Please note: I tried the emerge also with $ CFLAGS="-O2" emerge freedroids ==> same result bash-2.05b# emerge info Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22_pre2-gss) ================================================================= System uname: 2.4.22_pre2-gss i686 AMD Athlon(tm) XP 2700+ ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -foptimize-sibling-calls -fprefetch-loop-arrays -falign-functions=32" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -foptimize-sibling-calls -fprefetch-loop-arrays -falign-functions=32 -fno-default-inline" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 crypt libg++ bonobo guile sdl python esd 3dnow X Xaw3d aalib acl -acpi alsa apache2 apm arts avi berkdb cdr cups curl dga directfb dnd doc dvd encode ethereal faad fbcon fbdev fltk foomaticdb gd gdbm gif gnome gnomedb gphoto2 gpm gtk gtkhtml imlib innodb java jikes jpeg junit kde libwww mad maildir -mbox md5sum mdb mikmod mmx motif mozaccess mozcalendar mozilla mozinterfaceinfo moznoirc -mozp3p mozsvg mozxmlterm mpeg mysql ncurses nls oav odbc ofx oggvorbis opengl -oss pam pdflib pic plotutils perl png ppds qt quicktime readline samba scanner slang slp spell sse ssl svga tcltk tcpd tetex tiff truetype type1 usb v4l wmf wxwindows xml2 xmms xv xvid zlib"
you're going to have to post the compile errors you see since the game works just fine with my gcc-3.3.1 i even set my CFLAGS/CXXFLAGS the same as yours and it still compiled fine
I am still running the "official" gcc-3.2.3-r1. See the output below: ======= snip ========= gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -DDATADIR='"/usr/share/freedroid"' -c `test -f view.c || echo './'`view.c source='BFont.c' object='BFont.o' libtool=no \ depfile='.deps/BFont.Po' tmpdepfile='.deps/BFont.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -DDATADIR='"/usr/share/freedroid"' -c `test -f BFont.c || echo './'`BFont.c source='SDL_rotozoom.c' object='SDL_rotozoom.o' libtool=no \ depfile='.deps/SDL_rotozoom.Po' tmpdepfile='.deps/SDL_rotozoom.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -DDATADIR='"/usr/share/freedroid"' -c `test -f SDL_rotozoom.c || echo './'`SDL_rotozoom.c source='highscore.c' object='highscore.o' libtool=no \ depfile='.deps/highscore.Po' tmpdepfile='.deps/highscore.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -DDATADIR='"/usr/share/freedroid"' -c `test -f highscore.c || echo './'`highscore.c gcc -g -Wall -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -DDATADIR='"/usr/share/freedroid"' -o freedroid menu.o graphics.o map.o init.o ship.o takeover.o bullet.o influ.o misc.o text.o sound.o enemy.o input.o main.o view.o BFont.o SDL_rotozoom.o highscore.o -lSDL_image -lpng -lz -ljpeg -lSDL -lm -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread init.o(.text+0x1c89): In function `ThouArtDefeated': /var/tmp/portage/freedroid-1.0.1/work/freedroid-1.0.1/src/init.c:1116: undefined reference to `Mix_HaltMusic' collect2: ld returned 1 exit status make[2]: *** [freedroid] Error 1 make[2]: Leaving directory `/var/tmp/portage/freedroid-1.0.1/work/freedroid-1.0.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/freedroid-1.0.1/work/freedroid-1.0.1' make: *** [all] Error 2 !!! ERROR: games-rpg/freedroid-1.0.1 failed. !!! Function src_compile, Line 23, Exitcode 2 !!! (no error message) ======= snap =========
it should have linked -lSDL_mixer too ... what if you emerge sdl-mixer first and then try again ?
That was interesting. I did not have the sdl-mixer at all. Emerging with -uD fixed this. Now freedroid compiles and starts ... but that was it. A window is opened showing a graphic with a bowl at the right and a ring of lights at the left, but the window is totally frozen. Neither screen refresh nor sound nor closing the window is possible, I have to kill it ... :(
1.0.2 should have this fixed, enjoy ;)