Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3388 - SDL-sdlpl 1.18.3 does not compile
Summary: SDL-sdlpl 1.18.3 does not compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-04 17:10 UTC by Phil Bordelon (sunflare)
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Bordelon (sunflare) 2002-06-04 17:10:39 UTC
While the updating of SDL-sdlpl to the latest version closed out a bug on this
earlier, my system is still not able to compile the package correctly.

Here is the error message, with context:

--
/usr/bin/perl -I/usr/lib/perl5/5.6.1/i686-linux -I/usr/lib/perl5/5.6.1
/usr/lib/perl5/5.6.1/ExtUtils/xsubpp  -typemap
/usr/lib/perl5/5.6.1/ExtUtils/typemap -typemap typemap OpenGL.xs > OpenGL.xsc &&
mv OpenGL.xsc OpenGL.c
cc -c -ggdb  -I/usr/include/SDL -D_REENTRANT -I/usr/local/include/SDL
-I/usr/local/include -I/usr/local/include/smpeg -I/usr/include/SDL
-I/usr/include -I/usr/include/smpeg -I/usr/local/include/GL
-I/usr/local/include/gl -I/usr/include/GL -I/usr/include/gl -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=i686 -O3 -pipe  
-DVERSION=\"1.18.3\" -DXS_VERSION=\"1.18.3\" -fpic
-I/usr/lib/perl5/5.6.1/i686-linux/CORE -DHAVE_GLU_VERSION=13 -DHAVE_GL
-DHAVE_GLU   -DHAVE_SDL_IMAGE -DHAVE_SDL_MIXER -DHAVE_SDL_NET -DHAVE_SDL_TTF
-DHAVE_JPEG -DHAVE_PNG -DHAVE_SMPEG OpenGL.c
OpenGL.xs:31: #error No value for GL_ALL_CLIENT_ATTRIB_BITS please update your
OpenGL headers
OpenGL.xs: In function `XS_SDL__OpenGL_NurbsCallback':
OpenGL.xs:1755: warning: passing arg 3 of `gluNurbsCallback' from incompatible
pointer type
OpenGL.xs:1761: warning: passing arg 3 of `gluNurbsCallback' from incompatible
pointer type
OpenGL.xs:1767: warning: passing arg 3 of `gluNurbsCallback' from incompatible
pointer type
OpenGL.xs:1773: warning: passing arg 3 of `gluNurbsCallback' from incompatible
pointer type
OpenGL.xs:1779: warning: passing arg 3 of `gluNurbsCallback' from incompatible
pointer type
OpenGL.xs:1785: warning: passing arg 3 of `gluNurbsCallback' from incompatible
pointer type
OpenGL.xs:1791: warning: passing arg 3 of `gluNurbsCallback' from incompatible
pointer type
OpenGL.xs: In function `XS_SDL__OpenGL_TessCallback':
OpenGL.xs:1958: warning: passing arg 3 of `gluTessCallback' from incompatible
pointer type
OpenGL.xs:1964: warning: passing arg 3 of `gluTessCallback' from incompatible
pointer type
OpenGL.xs:1970: warning: passing arg 3 of `gluTessCallback' from incompatible
pointer type
OpenGL.xs:1976: warning: passing arg 3 of `gluTessCallback' from incompatible
pointer type
OpenGL.xs:1982: warning: passing arg 3 of `gluTessCallback' from incompatible
pointer type
OpenGL.xs:1988: warning: passing arg 3 of `gluTessCallback' from incompatible
pointer type
OpenGL.xs: In function `XS_SDL__OpenGL_GL_ALL_CLIENT_ATTRIB_BITS':
OpenGL.xs:2518: `GL_ALL_CLIENT_ATTRIB_BITS' undeclared (first use in this function)
OpenGL.xs:2518: (Each undeclared identifier is reported only once
OpenGL.xs:2518: for each function it appears in.)
make: *** [OpenGL.o] Error 1
--

The #error message is new, I believe; the actual error at the end is the same,
the GL_ALL_CLIENT_ATTRIB_BITS not being set.
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-04 19:06:38 UTC
did you try to run opengl-update before emerging this?
Comment 2 Target 2002-06-04 19:28:38 UTC
opengl-update doesn't help. The probablem is actually a discrepancy in the
opengl headers.

Mesa calls the define GL_ALL_CLIENT_ATTRIB_BITS, but nobody else does. As a
result, anyone using alternate headers (like anyone running an nvidia card)
can't compile SDL-perl with opengl support.
I think the old define is GL_CLIENT_ATTRIB_ALL_BITS, but I could be mistaken.
Comment 3 Phil Bordelon (sunflare) 2002-06-04 19:48:18 UTC
What Target said.  opengl-update didn't help.
Comment 4 Phil Bordelon (sunflare) 2002-06-05 09:23:36 UTC
1.18.4 fixes this problem.  Marking RESOLVED FIXED.
Comment 5 Phil Bordelon (sunflare) 2002-06-05 09:46:23 UTC
Per seemant's request, I unmerged .4 and emerged .3-r1.

.3-r1 emerged just fine.  However, when I tried to run Frozen Bubble, which uses
sdlpl, I got this error:

--
Can't find 'boot_SDL_perl' symbol in
/usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/SDL_perl/SDL_perl.so
 at /usr/lib/perl5/site_perl/5.6.1/i686-linux/SDL.pm line 9
Compilation failed in require at
/usr/lib/perl5/site_perl/5.6.1/i686-linux/SDL.pm line 9.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.6.1/i686-linux/SDL.pm line 9.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.6.1/i686-linux/SDL/App.pm line 11.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.6.1/i686-linux/SDL/App.pm line 11.
Compilation failed in require at /usr/bin/frozen-bubble line 45.
BEGIN failed--compilation aborted at /usr/bin/frozen-bubble line 45.
--

Switching back to .4 fixes that problem.  I recommend staying with .4, although
we can remove the hack if necessary (and if it doesn't break what works now.)