[Pdns-users] Unable to compile PDNS on Solaris 9
rstubbe at sit.nl
Sat Dec 18 23:25:34 UTC 2004
It has taken some time but I figered out what the problem was.
As I saw multiple problem reports with the same error, and with the version
of gcc incommen, I have installed the new version of gcc, 3.4.3.
That seem to have solved most of the problem, with the excepion of
headerfiles missing definition of field types.
So for all of you with the same trouble, DON'T use gcc 3.4.1 but upgrade to
Update the following files, and it should work!
Update modules/gmysqlbackend/smysql.hh add the following line:
typedef unsigned short int u_int16_t;
Update modules/geobackend/ippreftree.hh add the following line:
typedef unsigned int u_int32_t;
Maybe also update the official source to reflect these "forgotton" typedef's
STUBBE IT bv
At 15:50 20-11-2004, you wrote:
>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
> > Whatever options I try, always the same result.
>Try just removing the lines above in utility.hh, except for the 'sock_t'
>http://www.PowerDNS.com Open source, database driven DNS Software
>http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pdns-users