I've successfully built plplot-5.9.10 on cygwin and now I'm
trying to build PDL::Graphics::PLplot from the external CPAN
module. After applying the c_plwid->c_plwidth fix and setting
PLPLOT_LIBDIR and PLPLOT_INCDIR and having the library
search try libplplotd.dll.a I was able to get the Makefile written.
Compiling got a bunch of errors from places where int types
were used for places that now have a different interface: The
add_deletedata_magic now uses size_t rather than int, and
PDL_Indx is the appropriate type for index values.
After the compile finished, the link step failed with the following
errors:
g++-4 -shared -L/home/chm/local/plplot/lib -L/usr/local/lib PLplot.o
-o blib/arch/auto/PDL/Graphics/PLplot/PLplot.dll \
/usr/lib/perl5/5.14/i686-cygwin-threads-64int/CORE/cygperl5_14.dll
-L/home/chm/local/plplot/lib -lplplotd -lX11 \
PLplot.o: In function `XS_PDL__Graphics__PLplot_plGetCursor':
/home/chm/pdl/try/PDL-Graphics-PLplot-0.62/PLplot.c:59589: undefined
reference to `___stack_chk_guard'
/home/chm/pdl/try/PDL-Graphics-PLplot-0.62/PLplot.c:59629: undefined
reference to `___stack_chk_guard'
/home/chm/pdl/try/PDL-Graphics-PLplot-0.62/PLplot.c:59629: undefined
reference to `___stack_chk_fail'
PLplot.o: In function `XS_PDL__Graphics__PLplot_plgdev':
/home/chm/pdl/try/PDL-Graphics-PLplot-0.62/PLplot.c:59654: undefined
reference to `___stack_chk_guard'
/home/chm/pdl/try/PDL-Graphics-PLplot-0.62/PLplot.c:59669: undefined
reference to `___stack_chk_guard'
/home/chm/pdl/try/PDL-Graphics-PLplot-0.62/PLplot.c:59669: undefined
reference to `___stack_chk_fail'
PLplot.o: In function `XS_PDL__Graphics__PLplot_plgfnam':
/home/chm/pdl/try/PDL-Graphics-PLplot-0.62/PLplot.c:59674: undefined
reference to `___stack_chk_guard'
/home/chm/pdl/try/PDL-Graphics-PLplot-0.62/PLplot.c:59689: undefined
reference to `___stack_chk_guard'
/home/chm/pdl/try/PDL-Graphics-PLplot-0.62/PLplot.c:59689: undefined
reference to `___stack_chk_fail'
PLplot.o: In function `XS_PDL__Graphics__PLplot_plgver':
/home/chm/pdl/try/PDL-Graphics-PLplot-0.62/PLplot.c:59714: undefined
reference to `___stack_chk_guard'
/home/chm/pdl/try/PDL-Graphics-PLplot-0.62/PLplot.c:59729: undefined
reference to `___stack_chk_guard'
/home/chm/pdl/try/PDL-Graphics-PLplot-0.62/PLplot.c:59729: undefined
reference to `___stack_chk_fail'
collect2: ld returned 1 exit status
Makefile:478: recipe for target
`blib/arch/auto/PDL/Graphics/PLplot/PLplot.dll' failed
make: *** [blib/arch/auto/PDL/Graphics/PLplot/PLplot.dll] Error 1
Still, this is very exciting to be this close to building and using
PDL::Graphics::PLplot. Thoughts about the failed link and whether
or if the underlying plplot library can handle 64bit-sized indexes
for pdls?
Thanks,
Chris