[Pdns-dev] pdns 3.1rc2 doesn't compile on OS X

Ask Bjørn Hansen ask at develooper.com
Thu Apr 12 00:57:32 CEST 2012


Hi everyone,

With this configure command 3.0.1 compiles and works fine (for development anyway) on OS X Lion.  3.1rc2 aborts the compile with the error below.


Ask


$ ./configure --with-mysql-includes=/opt/local/include/mysql5 --with-mysql-lib=/opt/local/lib/mysql5 --with-boost=/opt/local --disable-recursor && make -j4

[....]

g++ -DHAVE_CONFIG_H -I. -I..  -Ibackends/bind -I/opt/local/include   -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -DLOCALSTATEDIR=\"/var/run\" -Ibackends/bind    -Iext/polarssl-1.1.1/include -pthread -Wall -O2 -MT lua-pdns-recursor.o -MD -MP -MF .deps/lua-pdns-recursor.Tpo -c -o lua-pdns-recursor.o lua-pdns-recursor.cc
In file included from mtasker.hh:27,
                 from syncres.hh:21,
                 from lua-pdns-recursor.cc:2:
/usr/include/ucontext.h:43:2: error: #error The deprecated ucontext routines require _XOPEN_SOURCE to be defined
In file included from mtasker.hh:114,
                 from syncres.hh:21,
                 from lua-pdns-recursor.cc:2:
mtasker.cc: In member function ‘int MTasker<EventKey, EventVal>::sendEvent(const EventKey&, const EventVal*)’:
mtasker.cc:239: error: there are no arguments to ‘swapcontext’ that depend on a template parameter, so a declaration of ‘swapcontext’ must be available
mtasker.cc:239: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
mtasker.cc: In member function ‘void MTasker<EventKey, EventVal>::makeThread(void (*)(void*), void*)’:
mtasker.cc:266: error: there are no arguments to ‘getcontext’ that depend on a template parameter, so a declaration of ‘getcontext’ must be available
mtasker.cc:275: error: there are no arguments to ‘makecontext’ that depend on a template parameter, so a declaration of ‘makecontext’ must be available
mtasker.cc: In member function ‘bool MTasker<EventKey, EventVal>::schedule(timeval*)’:
mtasker.cc:329: error: there are no arguments to ‘swapcontext’ that depend on a template parameter, so a declaration of ‘swapcontext’ must be available
In file included from lua-pdns-recursor.cc:2:
syncres.hh: At global scope:
syncres.hh:385: error: thread-local storage not supported for this target
syncres.hh:449: error: thread-local storage not supported for this target
syncres.hh:450: error: thread-local storage not supported for this target
syncres.hh:452: error: thread-local storage not supported for this target
syncres.hh:523: error: thread-local storage not supported for this target
make[4]: *** [lua-pdns-recursor.o] Error 1



More information about the Pdns-dev mailing list