OpenArena Message Boards

OpenArena Contributions => Development => Topic started by: Cacatoes on August 09, 2008, 10:36:43 AM



Title: Building 080/ioquake3svn1438 on Debian Stable
Post by: Cacatoes on August 09, 2008, 10:36:43 AM
I tried to build OA on Debian Stable because binaries given with 0.8.0 don't work (glibc has to be > 2.4, Debian Stable has 2.3.6 http://packages.debian.org/fr/etch/glibc-doc )

Quote
<Cacatoes> I try to build ioquake3 (in 080 directory) on Debian Stable, it says :
<Cacatoes> DED_CC code/server/sv_bot.c
<Cacatoes> code/server/sv_bot.c:1: error: bad value (generic) for -mtune= switch
<Cacatoes> make[2]: *** [build/release-linux-i386/ded/sv_bot.o] Erreur 1
Quote
<Cacatoes> okay, solved it, it was because of the Makefile using some gcc 4.2 instruction (not recognized by 4.1 I have), had to remove : -mtune=generic
<Cacatoes> now I get many lines about unknown references, and it doesn't build either
=)

Code:
make[2]: entrant dans le répertoire « /home/oa/svnoa/svn/source/080/ioquake3svn1438 »
LD build/release-linux-i386/oa_ded.i386
build/release-linux-i386/ded/sv_bot.o: dans la fonction « BotImport_Print »:
sv_bot.c:(.text+0x1013): référence indéfinie vers « __stack_chk_guard »
sv_bot.c:(.text+0x1071): référence indéfinie vers « __stack_chk_guard »
sv_bot.c:(.text+0x10e4): référence indéfinie vers « __stack_chk_fail »
build/release-linux-i386/ded/sv_client.o: dans la fonction « SV_WriteDownloadToClient »:
sv_client.c:(.text+0x2e1): référence indéfinie vers « __stack_chk_guard »
sv_client.c:(.text+0x4ff): référence indéfinie vers « __stack_chk_guard »
sv_client.c:(.text+0xafa): référence indéfinie vers « __stack_chk_fail »
build/release-linux-i386/ded/sv_client.o: dans la fonction « SV_SendClientGameState »:
[...]

sys_unix.c:(.text+0x4c3): référence indéfinie vers « __stack_chk_guard »
sys_unix.c:(.text+0x5f5): référence indéfinie vers « __stack_chk_guard »
sys_unix.c:(.text+0x777): référence indéfinie vers « __stack_chk_fail »
build/release-linux-i386/ded/con_tty.o: dans la fonction « CON_Init »:
con_tty.c:(.text+0x20e): référence indéfinie vers « __stack_chk_guard »
con_tty.c:(.text+0x299): référence indéfinie vers « __stack_chk_guard »
con_tty.c:(.text+0x339): référence indéfinie vers « __stack_chk_fail »
collect2: ld returned 1 exit status
make[2]: *** [build/release-linux-i386/oa_ded.i386] Erreur 1
make[2]: quittant le répertoire « /home/oa/svnoa/svn/source/080/ioquake3svn1438 »
make[1]: *** [targets] Erreur 2
make[1]: quittant le répertoire « /home/oa/svnoa/svn/source/080/ioquake3svn1438 »
make: *** [release] Erreur 2


Title: Re: Building 080/ioquake3svn1438 on Debian Stable
Post by: CFQ on August 09, 2008, 11:02:40 AM
----


Title: Re: Building 080/ioquake3svn1438 on Debian Stable
Post by: Cacatoes on August 09, 2008, 12:06:04 PM
Having removed the optimizations you said, the result is the same.


Title: Re: Building 080/ioquake3svn1438 on Debian Stable
Post by: CFQ on August 09, 2008, 12:08:00 PM
----


Title: Re: Building 080/ioquake3svn1438 on Debian Stable
Post by: Cacatoes on August 09, 2008, 02:38:59 PM
Indeed I forgot to comment one of the section (32 bits one), thanks for the tip ;)

Hope I did nothing wrong, but these 0.8.0 binaries should work on Debian Stable :
http://download.tuxfamily.org/openarena/rel/080/oa080-i386-older_glibc.tgz

I'll post some binaries based on sources let on http://furver.se/oa_070_70/ soon.



Title: Re: Building 080/ioquake3svn1438 on Debian Stable
Post by: sago007 on August 09, 2008, 02:40:41 PM
I have slightly newer source tar ball that can create working dedicated servers, I'll upload it soon

EDIT:
Try building from this: http://brie.ostenfeld.dk/~poul19/public_files/oa/dev080/ioquake3serverFix.tar.bz2
(You will still need any incompatible compile flags fixed, but the server can be joined)


Title: Re: Building 080/ioquake3svn1438 on Debian Stable
Post by: Cacatoes on August 09, 2008, 05:24:33 PM
Thanks Sago, I zipped both your files and mine so that they are available here :
http://download.tuxfamily.org/openarena/rel/080/oa080-serverfix.zip

(mines are in old_glibc subdirectory)