Operating System - HP-UX
1833756 Members
2319 Online
110063 Solutions
New Discussion

Installing Net:DNS module, getting "make" failures

 
Matt Hearn
Regular Advisor

Installing Net:DNS module, getting "make" failures

Nothing like having the HP website break and having to type all this again. ::sigh:: Second time:

Greetings!
I'm trying to install the Net::DNS module for perl 5.6.1, and I'm getting warnings when I configure, and failures when I "make."

When I run "perl Makefile.PL" I get this:
--------------------------------
Testing if you have a C compiler and the needed header files....
cc -O -c compile.c
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C product; ignored.
You have a working compiler.
Checking if your kit is complete...
Looks good
Warning: prerequisite Test::More failed to load: Can't locate Test/More.pm in @INC (@INC contains: /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/perl/lib/site_perl .) at (eval 18) line 3.
Note (probably harmless): No library found for -lresolv
Writing Makefile for Net::DNS
----------------------------------

The warnings seem to indicate I can continue, so I run "make," and get this:
----------------------------------
gcc -c -DUSE_REENTRANT_API -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN -mpa-risc-1-1 -fPIC -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.40\" -DXS_VERSION=\"0.40\" -fPIC -I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/CORE DNS.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
In file included from /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/CORE/perl.h:722,
from DNS.xs:12:
/usr/include/sys/socket.h:439: parse error before "sendfile"
/usr/include/sys/socket.h:440: parse error before "bsize_t"
/usr/include/sys/socket.h:441: parse error before "sendpath"
/usr/include/sys/socket.h:442: parse error before "bsize_t"
/usr/include/sys/socket.h:456: parse error before "__sendfile64"
/usr/include/sys/socket.h:456: parse error before "bsize_t"
/usr/include/sys/socket.h:457: parse error before "__sendpath64"
/usr/include/sys/socket.h:457: parse error before "bsize_t"
/usr/include/sys/socket.h:459: parse error before "sendfile"
/usr/include/sys/socket.h: In function `sendfile':
/usr/include/sys/socket.h:459: parse error before "bsize_t"
/usr/include/sys/socket.h: At top level:
/usr/include/sys/socket.h:460: parse error before "sendpath"
/usr/include/sys/socket.h: In function `sendpath':
/usr/include/sys/socket.h:460: parse error before "bsize_t"
*** Error exit code 1

Stop.
-------------------------------------------

I'm running gcc 3.2. The only thing I can think of is that gcc -v reports something about a build for 11.0, but I'm running 11.11! Is there a depot for gcc for 11.11 32-bit somewhere?

Thanks!!