Hi InSuk:  This is failing in the OpenGL portion which can be tricky 
depending upon how/whether your OpenGL libraries are installed.

If you don't need this, you can get around this problem by disabling 
OpenGL support in perldl.conf in the PDL distribution directory:

Just switch the line:

        WITH_3D => $^O eq "darwin" || $^O eq 'MSWin32' ? 0 : undef,

for

        WITH_3D => 0,

Regards,

   Doug Hunt

[email protected]
Software Engineer IV
UCAR - COSMIC, Tel. (303) 497-2611

On Thu, 23 Apr 2009, InSuk Joung wrote:

> Hi,
> I upgraded (reinstalled) perl (Now it is 5.10.0.) and I don't see the
> warnings anymore but the compilation still stops while compiling
> PDL::Graphics modules.  Any idea?
>
> .
> .
> .
> PDL::Graphics::TriD::OpenGL: PROCESSING FILE glxtokens.h.....Getting
> constants from file /usr/include/GL/glxtokens.h
> Running cpp on /usr/include/GL/glxtokens.h
> *** CPP command: cc -E -P -DGL_MESA_program_debug=0 -fno-strict-aliasing
> -pipe -I/usr/local/include -I/usr/include/gdbm -fno-strict-aliasing -pipe
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -I/usr/include/gdbm -D_LANGUAGE_C -DAPIENTRY='' tmp_glxtokens.h |
> open_fencestr = '11HdyTbIVg6s'; close_fencestr = '23Cnba1nbf31'
> rawfile has 5894 lines...
> SUB CPP: Returning 11785 lines...
> (Probably harmless): Sorting typedefs, but my little mind is blown! (ctype
> was 'ptrdiff_t')
> (Probably harmless): Sorting typedefs, but my little mind is blown! (ctype
> was 'ptrdiff_t')
> (Probably harmless): Sorting typedefs, but my little mind is blown! (ctype
> was 'ptrdiff_t')
> (Probably harmless): Sorting typedefs, but my little mind is blown! (ctype
> was 'ptrdiff_t')
> (Probably harmless): Sorting typedefs, but my little mind is blown! (ctype
> was 'int64_t')
> (Probably harmless): Sorting typedefs, but my little mind is blown! (ctype
> was 'uint64_t')
> (Probably harmless): Sorting typedefs, but my little mind is blown! (ctype
> was 'struct GLUnurbs')
> (Probably harmless): Sorting typedefs, but my little mind is blown! (ctype
> was 'struct GLUquadric')
> (Probably harmless): Sorting typedefs, but my little mind is blown! (ctype
> was 'struct GLUtesselator')
> (Probably harmless): Sorting typedefs, but my little mind is blown! (ctype
> was 'GLUnurbs')
> (Probably harmless): Sorting typedefs, but my little mind is blown! (ctype
> was 'GLUquadric')
> (Probably harmless): Sorting typedefs, but my little mind is blown! (ctype
> was 'GLUtesselator')
> (Probably harmless): Sorting typedefs, but my little mind is blown! (ctype
> was 'GLUtesselator')
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ************************************
> ***********************************
> *****************************
> Pre-processed files.  gl_includes is now
> X11/X.h,GL/gl.h,GL/glx.h,GL/glu.h,GL/glxtokens.h...
>
>
>
>
>
>
>
> XXXXXXXXXX Processing gl.h
> Running cpp on /usr/include/GL/gl.h
> *** CPP command: cc -E -P -DGL_MESA_program_debug=0 -fno-strict-aliasing
> -pipe -I/usr/local/include -I/usr/include/gdbm -fno-strict-aliasing -pipe
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -I/usr/include/gdbm -D_LANGUAGE_C -DAPIENTRY='' tmp_gl.h |
> open_fencestr = '11HdyTbIVg6s'; close_fencestr = '23Cnba1nbf31'
> rawfile has 1807 lines...
> SUB CPP: Returning 1503 lines...
> XXXXXXXXXX Processing glx.h
> Running cpp on /usr/include/GL/glx.h
> *** CPP command: cc -E -P -DGL_MESA_program_debug=0 -fno-strict-aliasing
> -pipe -I/usr/local/include -I/usr/include/gdbm -fno-strict-aliasing -pipe
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -I/usr/include/gdbm -D_LANGUAGE_C -DAPIENTRY='' tmp_glx.h |
> open_fencestr = '11HdyTbIVg6s'; close_fencestr = '23Cnba1nbf31'
> rawfile has 5970 lines...
> SUB CPP: Returning 225 lines...
> XXXXXXXXXX Processing glu.h
> Running cpp on /usr/include/GL/glu.h
> *** CPP command: cc -E -P -DGL_MESA_program_debug=0 -fno-strict-aliasing
> -pipe -I/usr/local/include -I/usr/include/gdbm -fno-strict-aliasing -pipe
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -I/usr/include/gdbm -D_LANGUAGE_C -DAPIENTRY='' tmp_glu.h |
> open_fencestr = '11HdyTbIVg6s'; close_fencestr = '23Cnba1nbf31'
> rawfile has 1874 lines...
> SUB CPP: Returning 137 lines...
> cp OpenGL.pm ../../../blib/lib/PDL/Graphics/OpenGL.pm
> /net/casegroup/u2/isjoung/i686/bin/perl
> /net/casegroup/u2/isjoung/i686/lib/perl5/5.10.0/ExtUtils/xsubpp  -typemap
> /home/isjoung/i686/lib/perl5/5.10.0/ExtUtils/typemap -typemap
> /net/casegroup/u2/isjoung/tmp/PDL-2.4.4/Basic/Core/typemap.pdl -typemap
> typemap  OpenGL.xs > OpenGL.xsc && mv OpenGL.xsc OpenGL.c
> Error: No OUTPUT definition for type 'GLvoid', typekind 'T_VOID' found in
> OpenGL.xs, line 7547
> make[3]: *** [OpenGL.c] Error 1
> make[3]: Leaving directory
> `/net/casegroup/u2/isjoung/tmp/PDL-2.4.4/Graphics/TriD/OpenGL'
> make[2]: *** [subdirs] Error 2
> make[2]: Leaving directory
> `/net/casegroup/u2/isjoung/tmp/PDL-2.4.4/Graphics/TriD'
> make[1]: *** [subdirs] Error 2
> make[1]: Leaving directory
> `/net/casegroup/u2/isjoung/tmp/PDL-2.4.4/Graphics'
> make: *** [subdirs] Error 2
>
>
>
> On Thu, Apr 23, 2009 at 7:04 AM, Sisyphus <[email protected]> wrote:
>
>>
>> ----- Original Message ----- From: "InSuk Joung" <[email protected]>
>>
>>
>> gcc -c   -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
>> -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
>> -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall
>> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
>> --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
>> -fasynchronous-unwind-tables   -DVERSION=\"2.4.4\" -DXS_VERSION=\"2.4.4\"
>> -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE"  -DPDL_PTHREAD
>> Core.c
>> Core.xs: In function ?XS_PDL_DESTROY?:
>> Core.xs:291: warning: statement with no effect
>> Core.xs:294: warning: format ?%d? expects type ?int?, but argument 3 has
>> type ?struct pdl *?
>> Core.c: In function ?XS_PDL_get_trans?:
>> Core.c:322: warning: unused variable ?RETVAL?
>> Core.xs: In function ?XS_PDL_set_data_by_mmap?:
>> Core.xs:509: warning: format ?%d? expects type ?int?, but argument 3 has
>> type ?void *?
>> Core.xs:495: warning: ignoring return value of ?ftruncate?, declared with
>> attribute warn_unused_result
>> Core.xs:496: warning: ignoring return value of ?ftruncate?, declared with
>> attribute warn_unused_result
>> Core.c: In function ?XS_PDL__Core_pdl_avref?:
>> Core.xs:906: warning: unused variable ?i?
>> Core.c:1133: warning: unused variable ?RETVAL?
>> Core.c: In function ?XS_PDL_pdl_null?:
>> Core.c:1184: warning: unused variable ?items?
>> Core.c: In function ?XS_PDL_initialize?:
>> Core.c:1349: warning: unused variable ?RETVAL?
>> Core.c: In function ?XS_PDL_upd_data?:
>> Core.c:1420: warning: unused variable ?targ?
>> Core.c:1419: warning: unused variable ?RETVAL?
>> Core.c: In function ?XS_PDL_getndims?:
>> Core.c:1478: warning: unused variable ?ix?
>> Core.c: In function ?XS_PDL_getdim?:
>> Core.c:1499: warning: unused variable ?ix?
>> Core.c: In function ?XS_PDL_sethdr?:
>> Core.xs:1176: warning: unused variable ?hash?
>> Core.xs: In function ?XS_PDL_threadover_n?:
>> Core.xs:1279: warning: suggest parentheses around assignment used as truth
>> value
>> Core.xs: In function ?XS_PDL_threadover?:
>> Core.xs:1297: warning: unused variable ?j?
>> Core.c: In function ?XS_PDL__Core_listref_c?:
>> Core.xs:725: warning: ?pdl_badval? may be used uninitialized in this
>> function
>> /usr/bin/perl "-I../../blib/arch" "-I../../blib/lib" pdlcore.c.PLpdlcore.c
>> Extracting pdlcore.c (WITH bad value support)
>>    Trying finite: math.h...
>>
>> ================================================
>>
>> I get most of those warnings if I build with -Wall. I don't get the
>> 'ftruncate' warning, but I think I get the others - yet PDL builds and tests
>> fine for me.
>>
>> What's the actual error that's killing the build ? (Mere warnings will not
>> prevent PDL from building.)
>>
>> Cheers,
>> Rob
>>
>>
>
>
> -- 
> Best,
> In-Suk Joung
>

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to