Skip Menu |

This queue is for tickets about the Net-DNS CPAN distribution.

Report information
The Basics
Id: 7719
Status: resolved
Priority: 0/
Queue: Net-DNS

People
Owner: Nobody in particular
Requestors: tchen [...] cyphers.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.48
Fixed in: (no value)



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
Date: Tue, 21 Sep 2004 09:27:49 -0600
From: Michael Fuhr <mike [...] fuhr.org>
To: Guest via RT <bug-Net-DNS [...] rt.cpan.org>
Subject: Re: [cpan #7719] Net::DNS Fails to build under HP-UX hpuxbuil B.11.11 U 9000/800
RT-Send-Cc:
See below. On Mon, Sep 20, 2004 at 10:00:07PM -0400, Guest via RT wrote: Show quoted text
> > 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/ >
> 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"
What's in /usr/include/sys/socket.h on the lines that have errors? I wonder if DNS.xs needs to include <sys/types.h> or some other header before it includes "perl.h" (it currently includes <sys/types.h> after "perl.h"). What happens if you make that change in DNS.xs? Chris, have you come across this before? -- Michael Fuhr http://www.fuhr.org/~mfuhr/
Date: Tue, 21 Sep 2004 10:54:40 -0700
From: Timothy Chen <tchen [...] pgp.com>
To: comment-Net-DNS [...] rt.cpan.org, bug-Net-DNS [...] rt.cpan.org
Subject: Re: [cpan #7719] Net::DNS Fails to build under HP-UX hpuxbuil B.11.11 U 9000/800
RT-Send-Cc:
Michael Fuhr via RT wrote: Show quoted text
> Full context and any attached attachments can be found at: > <URL: http://rt.cpan.org/NoAuth/Bug.html?id=7719 > > > See below. > > On Mon, Sep 20, 2004 at 10:00:07PM -0400, Guest via RT wrote: >
>>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/ >>
>>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"
> > > What's in /usr/include/sys/socket.h on the lines that have errors? > I wonder if DNS.xs needs to include <sys/types.h> or some other > header before it includes "perl.h" (it currently includes <sys/types.h> > after "perl.h"). What happens if you make that change in DNS.xs? > > Chris, have you come across this before? >
Michael / Chris - I'm attaching the socket.h and types.h files to this email. Thanks so much for your prompt reply! It looks like the offending line is: sockets.h 484: extern sbsize_t sendfile __((int, int, off_t, bsize_t, const struct iovec *, int)); From types.h: # ifndef _BSIZE_T # define _BSIZE_T # if defined(_APP32_64BIT_OFF_T) || defined(_KERNEL) typedef int64_t sbsize_t; /* signed length in bytes */ typedef uint64_t bsize_t; /* unsigned length in bytes */ # else typedef long sbsize_t; typedef unsigned long bsize_t; # endif # endif /* _BSIZE_T */ And this is a 64 bit processor: % getconf KERNEL_BITS 64 I have this feeling that I must set a #define directive to the makefile for this to work properly but I haven't had to hack C in years so will defer to your expertise. I'm using gcc 3.3.2/make 3.80 Cheers - Tim -- Timothy Chen <tchen@pgp.com> Senior Release Engineer, PGP Corporation O - (650) 319-9060 Show quoted text
________________________________________________________________ This message could have been secured by PGP Universal. To secure future messages from this sender, please click this link: https://keys.cyphers.net/b/b.e?r=bug-Net-DNS@rt.cpan.org

Message body is not shown because it is too large.

Message body is not shown because it is too large.

Date: Tue, 21 Sep 2004 16:28:02 -0700
From: Timothy Chen <tchen [...] pgp.com>
To: comment-Net-DNS [...] rt.cpan.org
CC: bug-Net-DNS [...] rt.cpan.org
Subject: Re: [cpan #7719] Net::DNS Fails to build under HP-UX hpuxbuil B.11.11 U 9000/800
RT-Send-Cc:
Timothy Chen wrote: Show quoted text
> Michael Fuhr via RT wrote: >
>> Full context and any attached attachments can be found at: >> <URL: http://rt.cpan.org/NoAuth/Bug.html?id=7719 > >> >> See below. >>
Ah figured it out. So after doing a perl Makefile.PL, I modified the Makefile produced with the following flags: CCCDLFLAGS = -fPIC -D_XOPEN_SOURCE_EXTENDED=1 That seemed to have done the trick... Hope that helps you guys! Cheers - Tim -- Timothy Chen <tchen@pgp.com> Senior Release Engineer, PGP Corporation O - (650) 319-9060 Show quoted text
________________________________________________________________ This message could have been secured by PGP Universal. To secure future messages from this sender, please click this link: https://keys.cyphers.net/b/b.e?r=bug-Net-DNS@rt.cpan.org