I'm trying to self-compile open arena on OSX. So far I've tried compiling using both the makefile and make-macosx-ub.sh, but both give me untraceable errors. I've upgraded to GCC 4.3.0 and SVN 1.4.6 because doing so reduced the number of warnings throws, but now it still won't compile. It will provide me with assembly files (*.o and *.d), but when I throw LD at them it gives me errors.
I can run the precompiled version of OA, but I want to figure out how to self-compile it, as I'm looking into (with some friends) turning the Quake 3 engine into a variant of multiplayer 2D asteroids. We could code most of it ourselves from scratch, but nobody we've been able to find (let alone myself) can write good, lag-accounting netcode, which is why we're using Qauke3 as the base engine. (For those of you familiar with ambrosia software, the game is inspired by the EV series)
LD throws this:
/usr/bin/ld: Undefined symbols:
_main
_CL_ForwardCommandToServer
_CL_GameCommand
_UI_GameCommand
_CL_CDDialog
_CL_CDKeyValidate
_CL_CharEvent
_CL_ConsolePrint
_CL_Disconnect
_CL_FlushMemory
_CL_Frame
_CL_Init
_CL_InitKeyCommands
_CL_JoystickEvent
_CL_KeyEvent
_CL_MouseEvent
_CL_PacketEvent
_CL_Shutdown
_CL_StartHunkUsers
_Key_WriteBindings
_Sys_DetectAltivec
_Sys_Error
_Sys_GetEvent
_Sys_Init
_Sys_Milliseconds
_Sys_Print
_Sys_Quit
_Sys_RandomBytes
_Sys_ShowConsole
_S_ClearSoundBuffer
_Sys_BeginStreamedFile
_Sys_DefaultCDPath
_Sys_DefaultHomePath
_Sys_DefaultInstallPath
_Sys_EndStreamedFile
_Sys_FreeFileList
_Sys_ListFiles
_Sys_Mkdir
_Sys_StreamSeek
_Sys_StreamedRead
_Sys_Exit
_cl_shownet
_Sys_SendPacket
_Sys_StringToAdr
_Sys_CheckCD
_Sys_IsLANAddress
_Sys_SnapVector
_CL_MapLoading
_CL_ShutdownAll
_NET_Sleep
_Sys_LoadDll
_Sys_UnloadDll
_VM_CallCompiled
_VM_Compile
collect2: ld returned 1 exit status
I've tried using both the OA and ioquake3 makefiles, and get the same error.
Make throws this:
echo QVM tools not built when cross-compiling
QVM tools not built when cross-compiling
make targets B=build/release-darwin-ppc CFLAGS=" -Wall -Wimplicit -Wstrict-prototypes -fno-strict-aliasing -DMACOS_X -fno-common -pipe -gfull -DUSE_OPENAL=1 -DUSE_CURL=1 -DUSE_CURL_DLOPEN=1 -DUSE_CODEC_VORBIS=1 -DUSE_SDL_VIDEO=1 -DUSE_SDL_SOUND=1 -D_THREAD_SAFE=1 -Icode/SDL12/include -DUSE_LOCAL_HEADERS=1 -DSVN_VERSION=\\\"1.33+oa_SVN1347M\\\" -DNDEBUG -faltivec -O3 -ffast-math -falign-loops=16 -MMD"
gcc -mdynamic-no-pic -DDEDICATED -Wall -Wimplicit -Wstrict-prototypes -fno-strict-aliasing -DMACOS_X -fno-common -pipe -gfull -DUSE_OPENAL=1 -DUSE_CURL=1 -DUSE_CURL_DLOPEN=1 -DUSE_CODEC_VORBIS=1 -DUSE_SDL_VIDEO=1 -DUSE_SDL_SOUND=1 -D_THREAD_SAFE=1 -Icode/SDL12/include -DUSE_LOCAL_HEADERS=1 -DSVN_VERSION=\"1.33+oa_SVN1347M\" -DNDEBUG -faltivec -O3 -ffast-math -falign-loops=16 -MMD -o build/release-darwin-ppc/ded/unix_main.o -c code/unix/unix_main.c
In file included from /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSLayoutTypes.h:28,
from /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATS.h:25,
from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:26,
from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24,
from code/unix/unix_main.c:75:
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSTypes.h:252: error: expected identifier or '(' before '[' token
code/unix/unix_main.c:1361:2: warning: #warning Sys_BinName not implemented
make[1]: *** [build/release-darwin-ppc/ded/unix_main.o] Error 1
make: *** [build_release] Error 2
make-macosx-ub.sh throws this:
Building PPC Dedicated Server against "/Developer/SDKs/MacOSX10.3.9.sdk"
Building PPC Client against "/Developer/SDKs/MacOSX10.2.8.sdk"
Building X86 Client/Dedicated Server against "/Developer/SDKs/MacOSX10.4u.sdk"
Building Dedicated Server using /Developer/SDKs/MacOSX10.3.9.sdk
echo QVM tools not built when cross-compiling
QVM tools not built when cross-compiling
make targets B=build/release-darwin-ppc CFLAGS="-arch ppc -isysroot /Developer/SDKs/MacOSX10.3.9.sdk -DMAC_OS_X_VERSION_MIN_REQUIRED=1030 -Wall -Wimplicit -Wstrict-prototypes -fno-strict-aliasing -DMACOS_X -fno-common -pipe -gfull -DUSE_OPENAL=1 -DUSE_CURL=1 -DUSE_CURL_DLOPEN=1 -DUSE_CODEC_VORBIS=1 -DUSE_SDL_VIDEO=1 -DUSE_SDL_SOUND=1 -D_THREAD_SAFE=1 -Icode/SDL12/include -DUSE_LOCAL_HEADERS=1 -DSVN_VERSION=\\\"1.33+oa_SVN1347M\\\" -DNDEBUG -faltivec -O3 -ffast-math -falign-loops=16 -MMD"
gcc -mdynamic-no-pic -DDEDICATED -arch ppc -isysroot /Developer/SDKs/MacOSX10.3.9.sdk -DMAC_OS_X_VERSION_MIN_REQUIRED=1030 -Wall -Wimplicit -Wstrict-prototypes -fno-strict-aliasing -DMACOS_X -fno-common -pipe -gfull -DUSE_OPENAL=1 -DUSE_CURL=1 -DUSE_CURL_DLOPEN=1 -DUSE_CODEC_VORBIS=1 -DUSE_SDL_VIDEO=1 -DUSE_SDL_SOUND=1 -D_THREAD_SAFE=1 -Icode/SDL12/include -DUSE_LOCAL_HEADERS=1 -DSVN_VERSION=\"1.33+oa_SVN1347M\" -DNDEBUG -faltivec -O3 -ffast-math -falign-loops=16 -MMD -o build/release-darwin-ppc/ded/sv_bot.o -c code/server/sv_bot.c
cc1: error: unrecognized command line option "-arch"
make[1]: *** [build/release-darwin-ppc/ded/sv_bot.o] Error 1
make: *** [build_release] Error 2
I'm running 10.4.11 on an iMac G4 700. I've also tried compiling it on an old PC running Ubuntu 8.0.4 (fully updated), and I've gotten the same errors.
Any suggestions?