chromatic <[EMAIL PROTECTED]> wrote:
:> Continuing from there, it fails trying to build OpenGL.xs with lots of
:> OpenGL.c:3876: `GLUtesselator' undeclared (first use in this function)
:> errors. This took me a while to track down, but it turns out that GL/glu.h
:> defines GLUtesselator only if version is 1.2, and this is version 1.1.
[...]
:I've put an extra version guard around those functions. It should build
:better for you now with this patch.
[...]
:+#ifdef GL_VERSION_1_2
s/GL_VERSION/GLU_VERSION/;
(gl.h gives GL_VERSION_1_1 == GL_VERSION_1_2 == 1, glu.h gives
GLU_VERSION_1_1 == 1.)
That let me build; tests are cleaner now too, the skipping mostly works:
t/consolepm........ok
1/3 skipped: No SDL_console support compiled in
t/mixerpm..........skipped
all skipped: No SDL_mixer support compiled in
t/shellpm..........skipped
all skipped: No SDL_console support compiled in
but:
t/toolfontpm.......Use of inherited AUTOLOAD for non-method SDL::TTFInit() is
deprecated at ../blib/lib/SDL/TTFont.pm line 153.
t/toolfontpm.......NOK 1# Failed test (t/toolfontpm.t at line 14)
# Tried to use 'SDL::Tool::Font'.
# Error: Can't locate auto/SDL/TTFInit.al in @INC (@INC contains: ../blib/arch
../blib/lib /src/package/lang/perl/SDL_Perl-2.1.0a/blib/lib
/src/package/lang/perl/SDL_Perl-2.1.0a/blib/arch
/src/package/lang/perl/SDL_Perl-2.1.0a/build_lib /opt/perl-5.8.1/lib/5.8.1/i686-linux
/opt/perl-5.8.1/lib/5.8.1/i686-linux /opt/perl-5.8.1/lib/5.8.1
/opt/perl-5.8.1/lib/site_perl/5.8.1/i686-linux
/opt/perl-5.8.1/lib/site_perl/5.8.1/i686-linux /opt/perl-5.8.1/lib/site_perl/5.8.1
/opt/perl-5.8.1/lib/site_perl/5.8.1/i686-linux /opt/perl-5.8.1/lib/site_perl/5.8.1
/opt/perl-5.8.1/lib/site_perl /src/package/lang/perl/SDL_Perl-2.1.0a
/opt/perl-5.8.1/lib/5.8.1/i686-linux /opt/perl-5.8.1/lib/5.8.1
/opt/perl-5.8.1/lib/site_perl/5.8.1/i686-linux /opt/perl-5.8.1/lib/site_perl/5.8.1
/opt/perl-5.8.1/lib/site_perl .) at ../blib/lib/SDL/TTFont.pm line 153
# Compilation failed in require at
/opt/perl-5.8.1/lib/site_perl/5.8.1/i686-linux/SDL/Tool/Font.pm line 10.
# BEGIN failed--compilation aborted at
/opt/perl-5.8.1/lib/site_perl/5.8.1/i686-linux/SDL/Tool/Font.pm line 10.
# Compilation failed in require at (eval 1) line 2.
t/toolfontpm.......NOK 2# Failed test (t/toolfontpm.t at line 17)
# SDL::Tool::Font->can('new') failed
# SDL::Tool::Font->can('print') failed
# Looks like you failed 2 tests of 2.
t/toolfontpm.......dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
Hugo