Unable to build xonotic-dedicated 0.8.0 from source
Hi, I'm the primary maintainer for Xonotic in Fedora, and I've had to temporarily drop xonotic-dedicated from our builds because it won't build. Everything else builds and runs well, but make sv-xonotic fails with the following:
cc -o ../../../xonotic-dedicated ../../../builddate.c sys_linux.o vid_null.o thread_null.o snd_null.o bih.o crypto.o cl_collision.o cl_demo.o cl_dyntexture.o cl_input.o cl_main.o cl_parse.o cl_particles.o cl_screen.o cl_video.o clvm_cmds.o cmd.o collision.o common.o console.o csprogs.o curves.o cvar.o dpsoftrast.o dpvsimpledecode.o filematch.o fractalnoise.o fs.o ft2.o utf8lib.o gl_backend.o gl_draw.o gl_rmain.o gl_rsurf.o gl_textures.o hmac.o host.o host_cmd.o image.o image_png.o jpeg.o keys.o lhnet.o libcurl.o mathlib.o matrixlib.o mdfour.o meshqueue.o mod_skeletal_animatevertices_sse.o mod_skeletal_animatevertices_generic.o model_alias.o model_brush.o model_shared.o model_sprite.o netconn.o palette.o polygon.o portals.o protocol.o prvm_cmds.o prvm_edict.o prvm_exec.o r_explosion.o r_lerpanim.o r_lightning.o r_modules.o r_shadow.o r_sky.o r_sprites.o sbar.o sv_demo.o sv_main.o sv_move.o sv_phys.o sv_user.o svbsp.o svvm_cmds.o sys_shared.o vid_shared.o view.o wad.o world.o zone.o -O3 -fno-strict-aliasing -fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fno-trapping-math -DSVNREVISION={ test -d .svn && svnversion; } || { test -d .git && git describe --always; } || echo -
-DBUILDTYPE=release -lm -lz -ljpeg -lrt -ldl
cl_main.o: In function CL_EstablishConnection': cl_main.c:(.text+0x2966): undefined reference to
M_Update_Return_Reason'
cl_main.c:(.text+0x2a31): undefined reference to M_Update_Return_Reason' cl_main.c:(.text+0x2a4e): undefined reference to
M_Update_Return_Reason'
cl_parse.o: In function CL_SetupWorldModel': cl_parse.c:(.text+0x4dee): undefined reference to
MR_NewMap'
cl_parse.o: In function CL_ParseServerMessage': cl_parse.c:(.text+0x80ba): undefined reference to
CDAudio_Play'
cl_parse.c:(.text+0x8220): undefined reference to CDAudio_Resume' cl_parse.c:(.text+0x8dcf): undefined reference to
CDAudio_Pause'
cl_parse.c:(.text+0x920f): undefined reference to CDAudio_Play' cl_parse.c:(.text+0xa2ee): undefined reference to
CDAudio_Play'
cl_parse.c:(.text+0xa4e9): undefined reference to CDAudio_Pause' cl_parse.c:(.text+0xaab3): undefined reference to
CDAudio_Play'
cl_parse.c:(.text+0xab65): undefined reference to CDAudio_Resume' cl_screen.o: In function
CL_Screen_Init':
cl_screen.c:(.text+0x312a): undefined reference to SCR_CaptureVideo_Ogg_Init' cl_screen.o: In function
SCR_DrawScreen':
cl_screen.c:(.text+0x4288): undefined reference to MR_Draw' cl_screen.o: In function
CL_UpdateScreen':
cl_screen.c:(.text+0x6772): undefined reference to MR_ToggleMenu' cl_screen.c:(.text+0x737d): undefined reference to
SCR_CaptureVideo_Ogg_Available'
cl_screen.c:(.text+0x7394): undefined reference to SCR_CaptureVideo_Avi_BeginVideo' cl_screen.c:(.text+0x808d): undefined reference to
SCR_CaptureVideo_Ogg_BeginVideo'
gl_rmain.o: In function GL_Init': gl_rmain.c:(.text+0xd964): undefined reference to
vm_m_extensions'
host.o: In function Host_Init': host.c:(.text+0x539): undefined reference to
MR_Init_Commands'
host.c:(.text+0x552): undefined reference to CDAudio_Init' host.c:(.text+0x5ef): undefined reference to
MR_Init'
host.o: In function Host_Main': host.c:(.text+0x2321): undefined reference to
CDAudio_Update'
host.o: In function Host_Shutdown': host.c:(.text+0x2939): undefined reference to
MR_Shutdown'
host.c:(.text+0x296e): undefined reference to CDAudio_Shutdown' host.o: In function
Host_StartVideo':
host.c:(.text+0x2790): undefined reference to CDAudio_Startup' host_cmd.o: In function
Host_Loadgame_f':
host_cmd.c:(.text+0x30e5): undefined reference to MR_ToggleMenu' host_cmd.o: In function
Host_Restart_f':
host_cmd.c:(.text+0x557c): undefined reference to MR_ToggleMenu' host_cmd.o: In function
Host_Map_f':
host_cmd.c:(.text+0x65b4): undefined reference to MR_ToggleMenu' host_cmd.o: In function
Host_Changelevel_f':
host_cmd.c:(.text+0x66a4): undefined reference to MR_ToggleMenu' keys.o: In function
Key_Event.constprop.6':
keys.c:(.text+0x6a1): undefined reference to MR_KeyEvent' keys.c:(.text+0x719): undefined reference to
MR_KeyEvent'
keys.o: In function Key_Event': keys.c:(.text+0x31c4): undefined reference to
MR_KeyEvent'
keys.c:(.text+0x3305): undefined reference to MR_KeyEvent' keys.c:(.text+0x3360): undefined reference to
MR_ToggleMenu'
keys.c:(.text+0x3386): undefined reference to MR_ToggleMenu' netconn.o: In function
ServerList_ViewList_Insert':
netconn.c:(.text+0x11dc): undefined reference to MR_GetServerListEntryCategory' netconn.o: In function
NetConn_QueryMasters.part.8.constprop.20':
netconn.c:(.text+0x39f9): undefined reference to M_Update_Return_Reason' netconn.o: In function
Net_Refresh_f':
netconn.c:(.text+0x3ac2): undefined reference to m_state' netconn.o: In function
NetConn_QueryMasters.part.8':
netconn.c:(.text+0x3e72): undefined reference to M_Update_Return_Reason' netconn.c:(.text+0x3f3f): undefined reference to
m_state'
netconn.o: In function Net_SlistQW_f': netconn.c:(.text+0x441c): undefined reference to
m_state'
netconn.o: In function Net_Slist_f': netconn.c:(.text+0x472c): undefined reference to
m_state'
netconn.o: In function NetConn_ConnectionEstablished': netconn.c:(.text+0x5472): undefined reference to
M_Update_Return_Reason'
netconn.c:(.text+0x5575): undefined reference to m_state' netconn.o: In function
NetConn_ClientFrame':
netconn.c:(.text+0x6d64): undefined reference to M_Update_Return_Reason' netconn.c:(.text+0x70d6): undefined reference to
M_Update_Return_Reason'
netconn.c:(.text+0x721c): undefined reference to M_Update_Return_Reason' netconn.c:(.text+0x726b): undefined reference to
M_Update_Return_Reason'
netconn.c:(.text+0x7372): undefined reference to M_Update_Return_Reason' netconn.o:netconn.c:(.text+0x7589): more undefined references to
M_Update_Return_Reason' follow
prvm_cmds.o: In function VM_gettime': prvm_cmds.c:(.text+0x7451): undefined reference to
CDAudio_GetPosition'
vid_shared.o: In function VID_Soft_SharedSetup': vid_shared.c:(.text+0x4377): undefined reference to
vm_m_extensions'
collect2: error: ld returned 1 exit status
makefile.inc:575: recipe for target 'xonotic-dedicated' failed
make[2]: *** [xonotic-dedicated] Error 1
make[2]: Leaving directory '/home/limb/fedora/git/xonotic/darkplaces/build-obj/release/xonotic-dedicated'
makefile.inc:467: recipe for target 'bin-release' failed
make[1]: *** [bin-release] Error 2
make[1]: Leaving directory '/home/limb/fedora/git/xonotic/darkplaces'
makefile.inc:402: recipe for target 'sv-xonotic' failed
make: *** [sv-xonotic] Error 2
Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=1203793