Newsgroup: it.comp.lang.perl
Titolo: Perl Data Language + HDF5 on Leopard compiling problem

 > alcuni moduli perl che non riesco a compilare su leopard.
Sorry for the X-post.
Installing the module PDL-IO-HDF5-0.6, which requires PDL and hdf5
libraries.
The latter being installed via Fink, correctly linked in Makefile.PL,
then
noname:PDL-IO-HDF5-0.6 luca$ perl Makefile.PL
Found libhdf5.so at /sw/lib/libhdf5.so
Found hdf5.h at /sw/lib/hdf5-18/include/hdf5.h
Note (probably harmless): No library found for -lhdf5
Writing Makefile for PDL::IO::HDF5
noname:PDL-IO-HDF5-0.6 luca$ make
/usr/bin/perl -I/Library/Perl/5.10.0/darwin-thread-multi-2level "-
MPDL::PP qw/PDL::IO::HDF5 PDL::IO::HDF5 HDF5/" hdf5.pd
cp HDF5.pm blib/lib/PDL/IO/HDF5.pm
cp HDF5/Dataset.pm blib/lib/PDL/IO/HDF5/Dataset.pm
cp HDF5/Group.pm blib/lib/PDL/IO/HDF5/Group.pm
cp HDF5/
tkview.pm
 blib/lib/PDL/IO/HDF5/
tkview.pm
/usr/bin/perl /System/Library/Perl/5.10.0/ExtUtils/xsubpp  -typemap /
System/Library/Perl/5.10.0/ExtUtils/typemap -typemap /Library/Perl/
5.10.0/darwin-thread-multi-2level/PDL/Core/typemap.pdl -typemap
typemap  HDF5.xs > HDF5.xsc && mv HDF5.xsc HDF5.c
gcc-4.2 -c  -I/Library/Perl/5.10.0/darwin-thread-multi-2level/PDL/Core
-I/sw/lib/hdf5-18/include -g -Os   -DVERSION=\"0.6\" -DXS_VERSION=
\"0.6\"  "-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/
CORE"   HDF5.c
HDF5.xs: In function ‘H5errorOff’:
HDF5.xs:45: warning: passing argument 1 of ‘H5Eset_auto2’ makes
integer from pointer without a cast
HDF5.xs:45: error: too few arguments to function ‘H5Eset_auto2’
HDF5.xs: In function ‘H5errorOn’:
HDF5.xs:51: warning: passing argument 1 of ‘H5Eset_auto2’ makes
integer from pointer without a cast
HDF5.xs:51: warning: passing argument 2 of ‘H5Eset_auto2’ from
incompatible pointer type
HDF5.xs:51: error: too few arguments to function ‘H5Eset_auto2’
HDF5.xs: In function ‘XS_PDL__IO__HDF5_H5Dcreate’:
HDF5.xs:1244: error: too few arguments to function ‘H5Dcreate2’
HDF5.xs: In function ‘XS_PDL__IO__HDF5_H5Dopen’:
HDF5.xs:1260: error: too few arguments to function ‘H5Dopen2’
HDF5.xs: In function ‘XS_PDL__IO__HDF5_H5Gcreate’:
HDF5.xs:1363: error: too few arguments to function ‘H5Gcreate2’
HDF5.xs: In function ‘XS_PDL__IO__HDF5_H5Gopen’:
HDF5.xs:1379: error: too few arguments to function ‘H5Gopen2’
HDF5.xs: In function ‘XS_PDL__IO__HDF5_H5Acreate’:
HDF5.xs:1475: error: too few arguments to function ‘H5Acreate2’
make: *** [HDF5.o] Error 1
Now, looking in the file 'libhdf5.settings'
 C Compiler: /sw/var/lib/fink/path-prefix-10.6/gcc (gcc-4.2.1)
               CFLAGS/H5_CFLAGS: /-std=c99 -pedantic -Wall -Wextra -
Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-
align -Wwrite-strings -Wconversion -Waggregate-return -Wstrict-
prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-
decls -Wnested-externs -Winline -Wno-long-long -Wfloat-equal -Wmissing-
format-attribute -Wmissing-noreturn -Wpacked -Wdisabled-optimization -
Wformat=2 -Wunreachable-code -Wendif-labels -Wdeclaration-after-
statement -Wold-style-definition -Winvalid-pch -Wvariadic-macros -
Wnonnull -Winit-self -Wmissing-include-dirs -Wswitch-default -Wswitch-
enum -Wunused-macros -Wunsafe-loop-optimizations -Wc++-compat -
Wvolatile-register-var -Wstrict-overflow -O -fomit-frame-pointer -
finline-functions
CPPFLAGS/H5_CPPFLAGS: -I/sw/include /  -DNDEBUG -UH5_DEBUG_API
Shared Libraries: yes
Static Libraries: no
Statically Linked Executables: no
Extra libraries: -L/sw/lib  -lsz -lz -lm
Archiver: ar
Ranlib: ranlib
Debugged Packages:
API Tracing: no
Languages:
----------
Fortran: no
C++: yes
C++ Compiler: g++
C++ Flags:
Features:
---------
Parallel HDF5: no
High Level library: yes
Threadsafety: no
Default API Mapping: v18
With Deprecated Public Symbols: yes
I/O filters (external): deflate(zlib),szip(encoder)
I/O filters (internal): shuffle,fletcher32,nbit,scaleoffset
MPE: no
Direct VFD: no
Ideas are welcome.