NetBSD Problem Report #29439

From www@netbsd.org  Fri Feb 18 07:09:42 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 7712363B844; Fri, 18 Feb 2005 07:09:42 +0000 (UTC)
Message-Id: <20050218070942.7712363B844@narn.netbsd.org>
Date: Fri, 18 Feb 2005 07:09:42 +0000 (UTC)
From: almeyers@consult-meyers.com
Reply-To: almeyers@consult-meyers.com
To: gnats-bugs@netbsd.org
Subject: package games/quake fails build
X-Send-Pr-Version: www-1.0

>Number:         29439
>Category:       pkg
>Synopsis:       [Linux] package games/quake fails build
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    linux-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 18 07:10:00 +0000 2005
>Closed-Date:    
>Last-Modified:  Wed Feb 13 00:55:01 +0000 2019
>Originator:     A L Meyers
>Release:        lastest cvs pkgsrc bootstrapped to Mandrake Linux 10.1 i386
>Organization:
>Environment:
Linux localhost.localdomain 2.6.8.1-12mdk #1 Fri Oct 1 12:53:41 CEST 2004 i686 AMD Athlon(tm) XP 2800+ unknown GNU/Linux
>Description:
new problem:

/usr/pkgsrc/games/quake/work/qw/client/quakedef.h:76,
/usr/pkgsrc/games/quake/work/qw/client/gl_vidlinuxglx.c:27:
/usr/pkgsrc/games/quake/work/qw/client/glquake.h:22: warning: ignoring 
#pragma warning
/usr/pkgsrc/games/quake/work/qw/client/glquake.h:23: warning: ignoring 
#pragma warning
/usr/pkgsrc/games/quake/work/qw/client/glquake.h:24: warning: ignoring 
#pragma warning
/usr/pkgsrc/games/quake/work/qw/client/gl_vidlinuxglx.c: In function 
`GL_BeginRendering':
/usr/pkgsrc/games/quake/work/qw/client/gl_vidlinuxglx.c:508: warning: 
unused variable `gl_clear'
gcc -Wall -Dstricmp=strcasecmp -I/usr/pkgsrc/games/quake/work/qw/client 
-I/usr/pkgsrc/games/quake/work/qw/server -O2 -I/usr/pkg/include 
-DGLX_GLXEXT_LEGACY -I/usr/X11R6/include -O0 -g -o 
debug_version/glqwcl.glx debug_version/glclient/cl_demo.o 
debug_version/glclient/cl_ents.o debug_version/glclient/cl_input.o 
debug_version/glclient/cl_main.o debug_version/glclient/cl_parse.o 
debug_version/glclient/cl_pred.o debug_version/glclient/cl_tent.o 
debug_version/glclient/cl_cam.o debug_version/glclient/cmd.o 
debug_version/glclient/common.o debug_version/glclient/console.o 
debug_version/glclient/crc.o debug_version/glclient/cvar.o 
debug_version/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/glclient/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_version/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_refrag.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_version/glclient/gl_screen.o debug_version/glclient/gl_warp.o 
debug_version/glclient/math.o debug_version/glclient/snd_mixa.o 
debug_version/glclient/sys_dosa.o 
debug_version/glclient/gl_vidlinuxglx.o  -L/usr/pkg/lib 
-Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -lm -lm 
-L/usr/X11R6/lib  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib 
-Wl,-R/usr/X11R6/lib -lm -lm -L/lib -lm -lGL -lX11 -lXext
debug_version/glclient/gl_vidlinuxglx.o(.text+0xbc1): In function 
`VID_Init8bitPalette':
/usr/pkgsrc/games/quake/work/qw/client/gl_vidlinuxglx.c:583: undefined 
reference to `gl3DfxSetPaletteEXT'
collect2: ld returned 1 exit status
make[1]: *** [debug_version/glqwcl.glx] Fehler 1
make[1]: Leaving directory `/usr/pkgsrc/games/quake/work/qw'
make: *** [build_debug] Fehler 2
*** Error code 2
>How-To-Repeat:
do "bmake install clean" in games/quake
>Fix:
none known, maintainer is working on issue

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->linux-pkg-people
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Thu, 17 Mar 2005 17:32:54 +0000
Responsible-Changed-Why:
Linux pkgsrc problem.


State-Changed-From-To: open->feedback
State-Changed-By: shattered@NetBSD.org
State-Changed-When: Sat, 12 Dec 2015 10:25:20 +0000
State-Changed-Why:
still fails in recent bulk builds.  could be fixed by adding -DGL_EXT_SHARED to CFLAGS, please test.


State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 07 Mar 2016 05:36:32 +0000
State-Changed-Why:
submitter's email is bouncing.


From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
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


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.