Interestingly enough, OpenGL-0.6704_01 has all PASS so far except
for Mac OS X with the FAILlike this:


Output from '/usr/bin/make test':

Running Mkbootstrap for OpenGL ()
chmod 644 "OpenGL.bs"
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" 
"-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" 
t/*.t
t/00_require.t ....... ok
t/01_use.t ........... ok

#   Failed test '$o1->calc("3,%") \# S1 % S0'
#   at t/10_opengl_array.t line 218.
#          got: ' 0  0  0     0  0  0     0  0  0'
#     expected: ' 1  2  0     1  2  0     1  2  0'

#   Failed test '$o1->calc("2,power")'
#   at t/10_opengl_array.t line 502.
#          got: ' 4  4  4     4  4  4     4  4  4'
#     expected: ' 1  4  9    16 25 36    49 64 81'

#   Failed test '$o2->calc("dec,6,min,10,swap,power,pi,*,10,%")'
#   at t/10_opengl_array.t line 539.
#          got: ' 0  0  0     0  0  0     0  0  0'
#     expected: ' 3  1  4     1  5  9     2  2  2'
# Looks like you failed 3 tests of 141.
t/10_opengl_array.t ..
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/141 subtests
        (3 TODO tests unexpectedly succeeded)

Cheers,
Chris


On 6/15/2015 20:33, sisyph...@optusnet.com.au wrote:
>
>
> -----Original Message----- From: Bob Free
> Sent: Tuesday, June 16, 2015 6:38 AM
> To: Chris Marshall
> Cc: Sisyphus ; kmx ; Christian Walde ; pdl-devel@lists.sourceforge.net
> Subject: Re: CHM/OpenGL-0.6704_01.tar.gz uploaded to CPAN
>
>> Thanks for the update - will investigate and hopefully fix today! - Bob
>
> Note that Chris's successful build of OpenGL on SPP 5.22.0.1 is 
> against freeglut-2.8.1. (OpenGL doesn't build there against 
> freeglut-3.0.0 either - so SPP shipped with 2.8.1.)
>
> Here are those strange parsing errors I got:
>
> ############################################
> pogl_matrix.xs: In function 'set_data_frustrum':
> pogl_matrix.xs:119:5: error: parameter name omitted
>     GLfloat left, GLfloat right, GLfloat top, GLfloat bottom, GLfloat 
> near, GLfloat far)
>         ^
> pogl_matrix.xs:119:5: error: parameter name omitted
> pogl_matrix.xs:123:29: error: expected expression before ';' token
>     GLfloat depth = far-near;
>                             ^
> pogl_matrix.xs:125:23: error: invalid type argument of unary '*' (have 
> 'double')
>
>     data[0]     = near*2.0/width;
>                       ^
> pogl_matrix.xs:130:23: error: invalid type argument of unary '*' (have 
> 'double')
>
>     data[5]     = near*2.0/height;
>                       ^
> pogl_matrix.xs:135:29: error: expected expression before ')' token
>     data[10]    = -(far+near)/depth;
>                             ^
> pogl_matrix.xs:139:29: error: invalid type argument of unary '*' (have 
> 'double')
>
>     data[14]    = -(far*near*2.0)/depth;
>                             ^
> pogl_matrix.c: In function 'XS_OpenGL__Matrix_set_frustrum':
> pogl_matrix.c:686:15: error: expected identifier or '(' before '=' token
>  GLfloat near = (float)SvNV(ST(5))
>               ^
> pogl_matrix.c:688:14: error: expected identifier or '(' before '=' token
>  GLfloat far = (float)SvNV(ST(6))
>              ^
> pogl_matrix.xs:420:78: error: expected expression before ',' token
>         set_data_frustrum((GLfloat*)mat->data, left, right, top, 
> bottom, near, far);
>  ^
> pogl_matrix.c: In function 'XS_OpenGL__Matrix_set_perspective':
> pogl_matrix.c:729:15: error: expected identifier or '(' before '=' token
>         GLfloat near = (float)SvNV(ST(3))
>                      ^
> pogl_matrix.c:731:14: error: expected identifier or '(' before '=' token
>  GLfloat far = (float)SvNV(ST(4))
>              ^
> pogl_matrix.xs:442:26: error: invalid type argument of unary '*' (have 
> 'double')
>
>         double h_2 = near*tan(fov*PI/360);
>                          ^
> pogl_matrix.xs:444:74: error: expected expression before ',' token
>         set_data_frustrum((GLfloat*)mat->data, -w_2, w_2, -h_2, h_2, 
> near, far)
> ;
> ^
> pogl_matrix.c: In function 'XS_OpenGL__Matrix_set_ortho':
> pogl_matrix.c:781:15: error: expected identifier or '(' before '=' token
>  GLfloat near = (float)SvNV(ST(5))
>               ^
> pogl_matrix.c:783:14: error: expected identifier or '(' before '=' token
>  GLfloat far = (float)SvNV(ST(6))
>              ^
> pogl_matrix.xs:468:33: error: expected expression before ';' token
>         GLfloat depth = far-near;
>                                 ^
> pogl_matrix.xs:485:33: error: expected expression before ')' token
>         data[14]    = -(far+near)/depth;
>                                 ^
> dmake:  Error code 129, while making 'pogl_matrix.o'
> ############################################
>
> (I might've misplaced one or two '^' in unravelling the wrap-arounds. 
> And my mail format might lead to further misplacement of some of them)
>
> The patch I used for pogl_matrix.xs is attached.
>
> Thanks Bob, Chris !!
>
> Cheers,
> Rob 


------------------------------------------------------------------------------
_______________________________________________
pdl-devel mailing list
pdl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-devel

Reply via email to