Doug,

There is a new pp function in v2.4.10 that helps with line number reporting
called pp_line_numbers. You could use that to help get more useful line
number reporting (reported from the .pd file's perspective) on this.

David
On Mar 16, 2012 2:46 PM, "Doug Hunt" <[email protected]> wrote:

> Dear JB:  I don't have a solaris machine to try to debug this with, but
> it might be interesting to see the versions of plplot.pd, PLplot.xs and
> PLplot.c that this build generated.  Perhaps there is something that has
> changed since perl 5.8.8 that would make a difference?
>
> If I could see where the error line numbers in the .xs file map back
> to in the .pd file, perhaps there is some defensive programming I could do
> to avoid this problem.
>
> Could you send me the .pd, .xs and .c files?
>
> Thanks,
>
>  Doug Hunt
>
> [email protected]
> Software Engineer
> UCAR - COSMIC, Tel. (303) 497-2611
>
> On Thu, 15 Mar 2012, JB Blackbar wrote:
>
>  Hello,
>>
>> I am having trouble compiling PDL::Graphics::PLPLOT for Solaris.
>> Details are below:
>>
>> Solaris 10, Sparc
>> cc - Sun C 5.7 Patch 117836
>> Perl v5.8.8
>> plplot v5.9.8, dynamically linked.
>> PDL v2.4.10
>> Previous versions of PDL have been removed from @INC
>>
>> PDL makes fine and all tests pass if I disable support for PLPlot.
>> However, trying to make PDL with PLplot support renders the following:
>>
>> make[2]: Entering directory
>> `/home/jbb/tmp/perlmodules/**PDL-2.4.10/Graphics/PLplot'
>> /usr/local/bin/perl_5.8.8
>> -I/home/jbb/tmp/perlmodules/**PDL-2.4.10/blib/lib
>> -I/home/jbb/tmp/perlmodules/**PDL-2.4.10/blib/arch "-MPDL::PP
>> qw/PDL::Graphics::PLplot PDL::Graphics::PLplot PLplot/" plplot.pd
>> cp PLplot.pm ../../blib/lib/PDL/Graphics/**PLplot.pm
>> touch PLplot.xs
>> /usr/local/bin/perl_5.8.8
>> /home/jbb/apps/jbb-perllib/**lib/site_perl/5.8.8/ExtUtils/**xsubpp
>> -typemap /package/perl-5.8.8/lib/5.8.8/**ExtUtils/typemap -typemap
>> /home/jbb/tmp/perlmodules/PDL-**2.4.10/Basic/Core/typemap.pdl  PLplot.xs
>>
>>> PLplot.xsc && mv PLplot.xsc PLplot.c
>>>
>> cc -c  -I/home/jbb/tmp/perlmodules/**PDL-2.4.10/Basic/Core
>> -I/home/jbb/apps/plplot-**solaris/include/plplot
>> -I/home/jbb/apps/plplot-**solaris/include -I/usr/local/include
>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O
>> -DVERSION=\"0.61\" -DXS_VERSION=\"0.61\" -KPIC
>> "-I/package/perl-5.8.8/lib/5.**8.8/sun4-solaris/CORE"   PLplot.c
>> "PLplot.xs", line 24904: zero or negative subscript
>> "PLplot.xs", line 24920: warning: syntax error:  empty initializer
>> "PLplot.xs", line 24920: warning: null dimension: __parnames
>> "PLplot.xs", line 24921: warning: syntax error:  empty initializer
>> "PLplot.xs", line 24921: warning: null dimension: __realdims
>> "PLplot.xs", line 25063: warning: syntax error:  empty initializer
>> "PLplot.xs", line 25063: warning: null dimension:
>> pdl_init_pltr_vtable_flags
>> "PLplot.xs", line 26397: warning: assignment type mismatch:
>>        pointer to function() returning void "=" pointer to void
>> "PLplot.xs", line 26767: warning: assignment type mismatch:
>>        pointer to function() returning void "=" pointer to void
>> "PLplot.xs", line 28880: warning: assignment type mismatch:
>>        pointer to function() returning void "=" pointer to void
>> "PLplot.xs", line 29702: warning: assignment type mismatch:
>>        pointer to function() returning void "=" pointer to void
>> "PLplot.xs", line 30979: warning: assignment type mismatch:
>>        pointer to function() returning void "=" pointer to void
>> cc: acomp failed for PLplot.c
>> make[2]: *** [PLplot.o] Error 2
>> make[2]: Leaving directory
>> `/home/jbb/tmp/perlmodules/**PDL-2.4.10/Graphics/PLplot'
>> make[1]: *** [subdirs] Error 2
>> make[1]: Leaving directory `/home/jbb/tmp/perlmodules/**
>> PDL-2.4.10/Graphics'
>> make: *** [subdirs] Error 2
>>
>>
>> Any help would be much appreciated.
>>
>> Sincerely,
>>
>> JB Black
>>
>> ______________________________**_________________
>> Perldl mailing list
>> [email protected]
>> http://mailman.jach.hawaii.**edu/mailman/listinfo/perldl<http://mailman.jach.hawaii.edu/mailman/listinfo/perldl>
>>
>
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>
>
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to