[Pdns-users] error compiling pdns recursor on mac os x 10.5

ati atiware at gmx.net
Sat Mar 7 20:11:55 UTC 2009


i tryed to compile pdns-recursor-3.1.7 on mac os x 10.5.6 (intel) an i
get the following errors:

-D_XOPEN_SOURCE   -c -o lwres.o lwres.cc
lwres.cc: In function int asyncresolve(const ComboAddress&, const
std::string&, int, bool, bool, timeval*, LWResult*):
lwres.cc:184: error: expected type-specifier before exception
lwres.cc:184: error: expected `)' before & token
lwres.cc:184: error: expected `{' before & token
lwres.cc:184: error: mde was not declared in this scope
lwres.cc:184: error: expected `;' before ) token
lwres.cc:188: error: expected primary-expression before catch
lwres.cc:188: error: expected `;' before catch
lwres.cc:194: error: jump to label out
lwres.cc:163: error:   from here
lwres.cc:194: error:   enters catch block
lwres.cc:198: error: expected `}' at end of input
make: *** [lwres.o] Error 1

my xcode version is xcode312

i changed all occurences of "catch (exception" to "catch(std::exception"
and it compiles whitout errors. After installing it seems to be running

the patch is attached.

please check this patch...


Attila Soki

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-pdns-recursor-3.1.7.patch
Type: text/x-patch
Size: 2653 bytes
Desc: not available
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20090307/884eb8ff/attachment.bin>

More information about the Pdns-users mailing list