pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/29439 ([Linux] package games/quake fails build)



The following reply was made to PR pkg/29439; it has been noted by GNATS.

From: "David H. Gutteridge" <david%gutteridge.ca@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/29439 ([Linux] package games/quake fails build)
Date: Tue, 12 Feb 2019 19:52:43 -0500

 I decided to try the proposed fix "add -DGL_EXT_SHARED to CFLAGS",
 since I happened to have a Linux i386 test VM to use. That on its own
 does not resolve the issue:
 
 gcc -Wall -Dstricmp=3Dstrcasecmp -I/home/disciple/pkgsrc/games/quake/work/Q=
 W/client -I/home/disciple/pkgsrc/games/quake/work/QW/server -O2 -DGL_EXT_SH=
 ARED -D_FORTIFY_SOURCE=3D2 -I/home/disciple/pkg/include -I/home/disciple/pk=
 g/include/libdrm -I/usr/include -I/home/disciple/pkg/include -O0 -g -o debu=
 g_version/glqwcl.glx debug_version/glclient/cl_demo.o debug_version/glclien=
 t/cl_ents.o debug_version/glclient/cl_input.o debug_version/glclient/cl_mai=
 n.o debug_version/glclient/cl_parse.o debug_version/glclient/cl_pred.o debu=
 g_version/glclient/cl_tent.o debug_version/glclient/cl_cam.o debug_version/=
 glclient/cmd.o debug_version/glclient/common.o debug_version/glclient/conso=
 le.o debug_version/glclient/crc.o debug_version/glclient/cvar.o debug_versi=
 on/glclient/keys.o debug_version/glclient/mathlib.o debug_version/glclient/=
 md4.o debug_version/glclient/menu.o debug_version/glclient/net_chan.o debug=
 _version/glclient/net_udp.o debug_version/glclient/nonintel.o debug_version=
 /glclient/pmove.o debug_version/glclient/pmovetst.o debug_version/glclient/=
 r_part.o debug_version/glclient/sbar.o debug_version/glclient/skin.o debug_=
 version/glclient/snd_dma.o debug_version/glclient/snd_mem.o debug_version/g=
 lclient/snd_mix.o debug_version/glclient/view.o debug_version/glclient/wad.=
 o debug_version/glclient/zone.o debug_version/glclient/cd_linux.o debug_ver=
 sion/glclient/sys_linux.o debug_version/glclient/snd_linux.o debug_version/=
 glclient/gl_draw.o debug_version/glclient/gl_mesh.o debug_version/glclient/=
 gl_model.o debug_version/glclient/gl_ngraph.o debug_version/glclient/gl_ref=
 rag.o debug_version/glclient/gl_rlight.o debug_version/glclient/gl_rmain.o =
 debug_version/glclient/gl_rmisc.o debug_version/glclient/gl_rsurf.o debug_v=
 ersion/glclient/gl_screen.o debug_version/glclient/gl_warp.o debug_version/=
 glclient/math.o debug_version/glclient/snd_mixa.o debug_version/glclient/sy=
 s_dosa.o debug_version/glclient/gl_vidlinuxglx.o -L/home/disciple/pkg/lib -=
 Wl,-R/home/disciple/pkg/lib -L/usr/lib -Wl,-R/usr/lib -lm -lm -L/home/disci=
 ple/pkg/lib -L/home/disciple/pkg/lib -Wl,-R/home/disciple/pkg/lib -L/usr/li=
 b -Wl,-R/usr/lib -lm -lm -L/lib -lm -lGL -lX11 -lXext
 debug_version/glclient/gl_vidlinuxglx.o: In function `VID_Init8bitPalette':
 /home/disciple/pkgsrc/games/quake/work/QW/client/gl_vidlinuxglx.c:553: unde=
 fined reference to `glColorTableEXT'
 collect2: error: ld returned 1 exit status
 make[1]: *** [Makefile:636: debug_version/glqwcl.glx] Error 1
 
 Then I tried tinkering with various make file settings and the state of
 gl_vidlinuxglx.c, and found if I followed what's already done for
 NetBSD and DragonFly, and commented out a bit more, I could get it to
 build (after also having to pass LDFLAGS+=3D -ldl). The trouble is, it's
 trying to link against functions that are past deprecation and so are
 no longer provided.
 
 However, it then segfaults due to audio issues, apparently:
 
 % quake.x11 &
 [1] 19137
 Added packfile ./id1/pak0.pak (339 files)
 FindFile: can't find gfx/pop.lmp
 Playing shareware version.
 PackFile: ./id1/pak0.pak : gfx.wad
 Console initialized.
 UDP Initialized
 Exe: 18:25:41 Feb 12 2019
  8.0 megabyte heap
 PackFile: ./id1/pak0.pak : gfx/palette.lmp
 PackFile: ./id1/pak0.pak : gfx/colormap.lmp
 600k surface cache
 VID: shared memory id=3D3440662, addr=3D0xb71af000
 VID: shared memory id=3D3473431, addr=3D0xb7170000
 
 Sound Initialization
 PackFile: ./id1/pak0.pak : gfx/conback.lmp
 /dev/dsp: No such file or directory
 Could not open /dev/dsp
 S_Startup: SNDDMA_Init failed.
 
 [1]+  Segmentation fault      (core dumped) quake.x11
 
 That's about as much time as I'm willing to put into this, so if
 someone else wants to look at it, over to them.
 
 Dave
 
 


Home | Main Index | Thread Index | Old Index