[Pdns-users] Unable to compile PDNS on Solaris 9

bert hubert ahu at ds9a.nl
Sat Nov 20 14:50:15 UTC 2004


On Sat, Nov 20, 2004 at 02:29:09PM +0100, Ronald Stubbe wrote:
> I tryed to complie the package, using ./configure
> and then make, and it fails with:

This error is new to me.

> ../../pdns/utility.hh:175: error: declaration of `typedef struct iovec 
> Utility::iovec'
> /usr/include/sys/uio.h:34: error: changes meaning of `iovec' from `struct 
> iovec'

I don't entirely understand this error. The offending lines are:

  typedef ::iovec iovec;
  typedef ::pid_t     pid_t;
  typedef int       sock_t;
  typedef ::socklen_t        socklen_t;

And they are within a class.

> ../../pdns/utility.hh:176: error: declaration of `typedef pid_t 
> Utility::pid_t'
> /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.1/include/sys/types.h:469: 
> error: changes meaning of `pid_t' from `typedef long int pid_t'

What PowerDNS is trying to do here is to 'break out' the local pid_t to the
global pid_t.

> Whatever options I try, always the same result.

Try just removing the lines above in utility.hh, except for the 'sock_t'
one.

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO


More information about the Pdns-users mailing list