[Pdns-users] Problem with compiling under Solaris 8

bert hubert ahu at ds9a.nl
Sat Apr 5 11:17:29 UTC 2003


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