Re: games/foobillard build failure after Mesa update

2015-11-23 Thread David Coppa
On Mon, Nov 23, 2015 at 1:58 AM, Jonathan Gray  wrote:
> On Sun, Nov 22, 2015 at 07:10:08PM +0100, Christian Weisgerber wrote:
>> games/foobillard doesn't build any longer after the Mesa 11.0.6 update.
>>
>> ...
>> ball.o: In function `draw_balls':
>> ball.c:(.text+0x65f0): undefined reference to `glGenProgramsNV'
>> ball.c:(.text+0x6605): undefined reference to `glBindProgramNV'
>> ball.c:(.text+0x6636): undefined reference to `glLoadProgramNV'
>> ball.c:(.text+0x6fdc): undefined reference to `glTrackMatrixNV'
>> ball.c:(.text+0x6ffa): undefined reference to `glTrackMatrixNV'
>> ball.c:(.text+0x7018): undefined reference to `glTrackMatrixNV'
>> ball.c:(.text+0x7050): undefined reference to `glProgramParameter4fNV'
>> ball.c:(.text+0x7079): undefined reference to `glBindProgramNV'
>> ball.c:(.text+0x71c0): undefined reference to `glProgramParameter4fNV'
>> collect2: ld returned 1 exit status
>
> Seems to build/run with the following:
>
> Index: Makefile
> ===
> RCS file: /cvs/ports/games/foobillard/Makefile,v
> retrieving revision 1.8
> diff -u -p -r1.8 Makefile
> --- Makefile11 Jul 2014 11:20:32 -  1.8
> +++ Makefile23 Nov 2015 00:52:02 -
> @@ -20,6 +20,7 @@ LIB_DEPENDS = graphics/png \
>
>  USE_GMAKE =Yes
>  CONFIGURE_STYLE =  gnu
> +CONFIGURE_ARGS =   --enable-nvidia=no
>  CFLAGS =   -DNO_NV_BUMPREF
>
>  .include 
> --- /dev/null   Mon Nov 23 11:52:23 2015
> +++ patches/patch-src_ball_cMon Nov 23 11:49:39 2015
> @@ -0,0 +1,11 @@
> +$OpenBSD$
> +--- src/ball.c.origMon Nov 23 11:49:01 2015
>  src/ball.c Mon Nov 23 11:49:30 2015
> +@@ -32,6 +32,7 @@
> + #include "options.h"
> + #include "font.h"
> +
> ++#undef GL_VERTEX_PROGRAM_NV
> +
> + #ifdef GL_VERTEX_ARRAY
> +#define USE_VERTEX_ARRAYS
>

ok with me.

A similar workaround is also suggested here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=240376


Ciao!
David
-- 
"If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will."
-- Stewart Nelson



Re: games/foobillard build failure after Mesa update

2015-11-22 Thread Jonathan Gray
On Sun, Nov 22, 2015 at 07:10:08PM +0100, Christian Weisgerber wrote:
> games/foobillard doesn't build any longer after the Mesa 11.0.6 update.
> 
> ...
> ball.o: In function `draw_balls':
> ball.c:(.text+0x65f0): undefined reference to `glGenProgramsNV'
> ball.c:(.text+0x6605): undefined reference to `glBindProgramNV'
> ball.c:(.text+0x6636): undefined reference to `glLoadProgramNV'
> ball.c:(.text+0x6fdc): undefined reference to `glTrackMatrixNV'
> ball.c:(.text+0x6ffa): undefined reference to `glTrackMatrixNV'
> ball.c:(.text+0x7018): undefined reference to `glTrackMatrixNV'
> ball.c:(.text+0x7050): undefined reference to `glProgramParameter4fNV'
> ball.c:(.text+0x7079): undefined reference to `glBindProgramNV'
> ball.c:(.text+0x71c0): undefined reference to `glProgramParameter4fNV'
> collect2: ld returned 1 exit status

Seems to build/run with the following:

Index: Makefile
===
RCS file: /cvs/ports/games/foobillard/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- Makefile11 Jul 2014 11:20:32 -  1.8
+++ Makefile23 Nov 2015 00:52:02 -
@@ -20,6 +20,7 @@ LIB_DEPENDS = graphics/png \
 
 USE_GMAKE =Yes
 CONFIGURE_STYLE =  gnu
+CONFIGURE_ARGS =   --enable-nvidia=no
 CFLAGS =   -DNO_NV_BUMPREF
 
 .include 
--- /dev/null   Mon Nov 23 11:52:23 2015
+++ patches/patch-src_ball_cMon Nov 23 11:49:39 2015
@@ -0,0 +1,11 @@
+$OpenBSD$
+--- src/ball.c.origMon Nov 23 11:49:01 2015
 src/ball.c Mon Nov 23 11:49:30 2015
+@@ -32,6 +32,7 @@
+ #include "options.h"
+ #include "font.h"
+ 
++#undef GL_VERTEX_PROGRAM_NV
+ 
+ #ifdef GL_VERTEX_ARRAY
+#define USE_VERTEX_ARRAYS



games/foobillard build failure after Mesa update

2015-11-22 Thread Christian Weisgerber
games/foobillard doesn't build any longer after the Mesa 11.0.6 update.

...
ball.o: In function `draw_balls':
ball.c:(.text+0x65f0): undefined reference to `glGenProgramsNV'
ball.c:(.text+0x6605): undefined reference to `glBindProgramNV'
ball.c:(.text+0x6636): undefined reference to `glLoadProgramNV'
ball.c:(.text+0x6fdc): undefined reference to `glTrackMatrixNV'
ball.c:(.text+0x6ffa): undefined reference to `glTrackMatrixNV'
ball.c:(.text+0x7018): undefined reference to `glTrackMatrixNV'
ball.c:(.text+0x7050): undefined reference to `glProgramParameter4fNV'
ball.c:(.text+0x7079): undefined reference to `glBindProgramNV'
ball.c:(.text+0x71c0): undefined reference to `glProgramParameter4fNV'
collect2: ld returned 1 exit status

-- 
Christian "naddy" Weisgerber  na...@mips.inka.de