Subject: | Net::DNS Fails to build under HP-UX hpuxbuil B.11.11 U 9000/800 |
Hello -
I use Net::DNS across many platforms but I'm having trouble getting it build and installed on a new HP-UX machine running B.11.11. Here's what I get after trying to installing it under CPAN. I'm using the 5.8.0 perl distribution that came with the machine BUT I've also tried the perl 5.8.3 distribution from: http://hpux.cs.utah.edu/
Show quoted text
cpan>install Net::DNS
...
cp lib/Net/DNS/Resolver/Base.pm blib/lib/Net/DNS/Resolver/Base.pm
/opt/perl/bin/perl /opt/perl/lib/5.8.0/ExtUtils/xsubpp -typemap /opt/perl/lib/5.8.0/ExtUtils/typemap DNS.xs > DNS.xsc && mv DNS.xsc DNS.c
gcc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC -mpa-risc-1-1 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.48\" -DXS_VERSION=\"0.48\" -fPIC "-I/opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/CORE" DNS.c
In file included from /opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/CORE/perl.h:681,
from DNS.xs:20:
/usr/include/sys/socket.h:484: error: parse error before "sendfile"
/usr/include/sys/socket.h:484: error: parse error before "bsize_t"
/usr/include/sys/socket.h:486: error: parse error before "sendpath"
/usr/include/sys/socket.h:486: error: parse error before "bsize_t"
/usr/include/sys/socket.h:501: error: parse error before "__sendfile64"
/usr/include/sys/socket.h:501: error: parse error before "bsize_t"
/usr/include/sys/socket.h:502: error: parse error before "__sendpath64"
/usr/include/sys/socket.h:502: error: parse error before "bsize_t"
/usr/include/sys/socket.h:504: error: parse error before "sendfile"
/usr/include/sys/socket.h: In function `sendfile':
/usr/include/sys/socket.h:504: error: parse error before "bsize_t"
/usr/include/sys/socket.h: At top level:
/usr/include/sys/socket.h:505: error: parse error before "sendpath"
/usr/include/sys/socket.h: In function `sendpath':
/usr/include/sys/socket.h:505: error: parse error before "bsize_t"
*** Error exit code 1
Any clues?
Thanks!
Timothy Chen
tchen@cyphers.net