<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>15503</bug_id>
          
          <creation_ts>2003-02-11 12:18 0000</creation_ts>
          <short_desc>FooBillard won&apos;t compile under new xfree opengl</short_desc>
          <delta_ts>2003-03-05 10:00:15 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>nevernow@gmx.net</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>faye@zippysoft.com</cc>

      

      
          <long_desc isprivate="0">
            <who>nevernow@gmx.net</who>
            <bug_when>2003-02-11 12:18:20 0000</bug_when>
            <thetext>I have an ATI Radeon 8500, DRI enabled and xfree openGL acceleration. I tried to emerge FooBillard 2.2 and it didn&apos;t compile, complaining about a missing reference to a gl library. On the FooBillard FAQ page at http://foobillard.sunsite.dk/, I found a solution which consists in adding a line to the config info. The line is: &quot;...$ configure --enable-bumpref=no&quot;. I added it to the games eclass and it worked. 

Reproducible: Always
Steps to Reproduce:

1.Use an ATI Radeon with DRI enabled and xfree openGL support.
2.Emerge foobillard.
3.

Actual Results:  
It didn&apos;t compile, exiting with the following error: 

gcc -Wall -O3 `freetype-config --cflags` `sdl-config --cflags` -DUSE_SDL  `freetype- config --libs` `sdl-config --libs` -o foobillard billard3d.o billmove.o billard.o vmath.o ball.o png_loader.o table.o queue.o aiplayer.o options.o evaluate_move.o helpscreen.o textobj.o font.o sys_stuff.o net_socket.o sound_stuff.o menu.o bumpref.o -lSM -lICE -L/usr/ X11R6/lib -lGL -lGLU -lXaw -lm -lXi -lpng -lz 
bumpref.o(.text+0xc06): In function `bumpref_setup_vp_ts_rc&apos;: 
: undefined reference to `glGenProgramsNV&apos; 
bumpref.o(.text+0xc1b): In function `bumpref_setup_vp_ts_rc&apos;: 
: undefined reference to `glBindProgramNV&apos; 
bumpref.o(.text+0xc46): In function `bumpref_setup_vp_ts_rc&apos;: 
: undefined reference to `glLoadProgramNV&apos; 
bumpref.o(.text+0xc7f): In function `bumpref_setup_vp_ts_rc&apos;: 
: undefined reference to `glTrackMatrixNV&apos; 
bumpref.o(.text+0xca3): In function `bumpref_setup_vp_ts_rc&apos;: 
: undefined reference to `glTrackMatrixNV&apos; 
bumpref.o(.text+0xcee): In function `bumpref_setup_vp_ts_rc&apos;: 
: undefined reference to `glProgramParameter4fNV&apos; 
bumpref.o(.text+0xd03): In function `bumpref_setup_vp_ts_rc&apos;: 
: undefined reference to `glBindProgramNV&apos; 
collect2: ld returned 1 exit status 
make[1]: *** [foobillard] Error 1 
make[1]: Leaving directory `/var/tmp/portage/foobillard-2.2/work/foobillard-2.2/src&apos; 
make: *** [all-recursive] Error 1 

!!! ERROR: app-games/foobillard-2.2 failed. 
!!! Function src_compile, Line 26, Exitcode 2 
!!! (no error message)

Expected Results:  
Well, it should have compiled! :) I guess the ebuild should somehow discriminate whether you have an Nvidia card or not.

Athlon XP 1700, ATI Radeon 8500, DRI, xfree openGL.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-02-11 13:00:46 0000</bug_when>
            <thetext>odd that it doesnt support latest xfree ... i *think* it supported the older one ...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nevernow@gmx.net</who>
            <bug_when>2003-02-11 14:04:09 0000</bug_when>
            <thetext>#vapier: I tagged it as critical in relation with the package, since it doesn&apos;t even install. Of course a game will never be critical by itself in a system. Anyway, it&apos;s probably better now. :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-02-11 15:26:59 0000</bug_when>
            <thetext>yeah, i just confirmed ... the old xfree-4.2.1 will let this guy compile just fine, its the new 
xfree that breaks it 
 
have at it seemant ;) </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2003-02-11 18:09:52 0000</bug_when>
            <thetext>do you have xfree-drm emerged?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-02-11 18:35:49 0000</bug_when>
            <thetext>it doesnt have to do with xfree-drm ... i emerged xfree-4.2.99.x and it failed, i emerged xfree-4.2.1 and it worked, re-emerged xfree-4.2.99.x and it failed

basically the opengl header files claim that the libraries provide functions that they dont (i&apos;m assuming)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-02-12 01:36:48 0000</bug_when>
            <thetext>quick fix is to pass --disable-bumpref, but we&apos;re still left with this issue of functions not being defined</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2003-02-12 09:57:43 0000</bug_when>
            <thetext>yep, definitely an x-4.2.99.x issue, coz it works with the nvidia opengl stuffs (3xxx driver anyway)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2003-02-26 04:38:32 0000</bug_when>
            <thetext>can you check with X-4.2.99.902 please?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>faye@zippysoft.com</who>
            <bug_when>2003-02-26 15:28:51 0000</bug_when>
            <thetext>This is a foobillard issue.  Stupid configuration defaults to some NVIDIA specific GL 
commands. 
 
I changed the following two lines and *DIDN&apos;T* USE nv. 
 
IUSE=&quot;sdl nv&quot; 
egamesconf `use_enable sdl SDL` `use_enable nv bumpref` 
 
compiles fine then :) </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nevernow@gmx.net</who>
            <bug_when>2003-02-26 16:28:21 0000</bug_when>
            <thetext>I told ya it was foobillard&apos;s fault! :) It expexts all users to have an Nvidia card.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>faye@zippysoft.com</who>
            <bug_when>2003-02-26 17:30:22 0000</bug_when>
            <thetext>more than that I&apos;d say it was specific to the NVidia Binary Driver. 
Is that the difference for the user who said it works in 4.2.1 and doesn&apos;t in 4.2.99? </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-02-26 17:49:55 0000</bug_when>
            <thetext>no, foobillard compiles under 4.2.1 while using the X opengl libraries </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-03-05 10:00:15 0000</bug_when>
            <thetext>ok, i added a small test program to enable/disable bumpmap depending on whether
your system supports it ... enjoy ;)

http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-games/foobillard/foobillard-2.4.ebuild.diff?r1=1.1&amp;r2=1.2
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-games/foobillard/files/bumpmaptest.c?rev=1.1&amp;content-type=text/vnd.viewcvs-markup</thetext>
          </long_desc>
      
    </bug>

</bugzilla>