Skip Menu |

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

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

People
Owner: rt-cpan [...] triv.org
Requestors: andris [...] hpl.hp.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.37
Fixed in: (no value)



Subject: Error compiling DNS.c on HP-UX
When trying to install Net-DNS-0.37 into Perl 5.6.1 on an HP-UX 11.00 system, the ANSI-C compiler reports the following errors: /usr/bin/perl /opt/perl5/5.6.1/lib/private/ExtUtils/xsubpp -typemap /opt/perl5/5.6.1/lib/private/ExtUtils/typemap DNS.xs > DNS.xsc && mv DNS.xsc DNS.c cc -c -D_HPUX_SOURCE -Ae -z +z -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +O3 -DVERSION=\"0.37\" -DXS_VERSION=\"0.37\" +z "-I/opt/perl5/5.6.1/lib/private/PA-RISC1.1/CORE" DNS.c cc: "/usr/include/sys/magic.h", line 28: error 1587: Redeclaration of tag "magic". cc: "/usr/include/sys/magic.h", line 28: error 1595: Redeclaration of members. cc: "/usr/include/sys/magic.h", line 33: error 1713: Illegal redeclaration for identifier "MAGIC". *** Error exit code 1 The problem is that `perl.h' has already declared the "magic/MAGIC" structure. The following patch to DNS.xs fixes the problem: +#ifdef _HPUX_SOURCE +#define _SYS_MAGIC_INCLUDED +#endif #include "EXTERN.h" #include "perl.h"
Date: Sat, 31 May 2003 23:12:26 -0400 (EDT)
From: Chris Reinhardt <ctriv [...] dyndns.org>
To: Guest via RT <bug-Net-DNS [...] rt.cpan.org>
Subject: Re: [cpan #2710] Error compiling DNS.c on HP-UX
RT-Send-Cc:
On Sat, 31 May 2003, Guest via RT wrote: Show quoted text
> The problem is that `perl.h' has already declared the "magic/MAGIC" > structure. The following patch to DNS.xs fixes the problem: > > +#ifdef _HPUX_SOURCE > +#define _SYS_MAGIC_INCLUDED > +#endif > #include "EXTERN.h" > #include "perl.h" >
Thanks for the patch, I will add this to the next cpan release of Net::DNS. -- Chris Reinhardt ctriv@dyndns.org Systems Architect Dynamic DNS Network Services http://www.dyndns.org/