[Pdns-users] Problem with compiling under Solaris 8

Whizzer powerdns at kuis.nl
Mon Apr 7 13:25:06 UTC 2003


The "ifdef" thingy didn't work, too bad... But the other did work...

If you need me to test some things on Solaris 8, just contact me, no
problem!

Thanks!

- Whizzer


----- Original Message -----
From: "bert hubert" <ahu at ds9a.nl>
To: "Whizzer" <powerdns at kuis.nl>
Cc: <pdns-users at mailman.powerdns.com>
Sent: Saturday, April 05, 2003 1:17 PM
Subject: Re: [Pdns-users] Problem with compiling under Solaris 8


> On Sat, Apr 05, 2003 at 01:07:37PM +0200, Whizzer wrote:
>
> > mtasker.cc: In member function `void MTasker<EventKey,
> >    EventVal>::makeThread(void (*)(void*), void*) [with EventKey =
PacketID,
> >    EventVal = std::string]':
> > pdns_recursor.cc:378:   instantiated from here
> > mtasker.cc:230: invalid conversion from `void (*)()' to `void (*)(...)'
> > make[3]: *** [pdns_recursor.o] Error 1
>
> Hmf. Can you try this:
>
> #ifdef SOLARIS
>   makecontext (uc, (void (*)(...))threadWrapper, 4, this, start, d_maxtid,
val);
> #else
>   makecontext (uc, (void (*)(void))threadWrapper, 4, this, start,
d_maxtid, val);
> #endif
>
> Otherwise, just make it:
>   makecontext (uc, (void (*)(...))threadWrapper, 4, this, start, d_maxtid,
val);
>
> Which should make it work for you, at least, but not portably.
>
> Regards,
>
> bert
>
> --
> 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