« Return to Thread: Recursor fails to build on CentOS

Recursor fails to build on CentOS

by Jesse Angell :: Rate this Message:

Reply to Author | View in Thread

Recursor fails to build on CentOS Any idea why this is happening?

Fails with:  lwres.cc:184: error: reference to ‘exception’ is ambiguous

wget http://downloads.powerdns.com/releases/pdns-recursor-3.1.7.tar.bz2
bzip2 -d pdns-recursor-3.1.7.tar.bz2
tar -xvf pdns-recursor-3.1.7.tar
cd pdns-recursor-3.1.7
CXXFLAGS=-I/root/src/boost_1_39_0/ ./configure
CXXFLAGS=-I/root/src/boost_1_39_0/ make

PLEASE READ: If you get an error mentioning #include <boost/something.hpp>, please read README
PLEASE READ: for an easy fix!

mkdir optional
g++ -I/root/src/boost_1_39_0/ -Wall -DBOOST_SP_DISABLE_THREADS -O3  -D_GNU_SOURCE -c epollmplexer.cc -o optional/epollmplexer.o ; true

g++ -I/root/src/boost_1_39_0/ -Wall -DBOOST_SP_DISABLE_THREADS -O3  -D_GNU_SOURCE   -c -o syncres.o syncres.cc
g++ -I/root/src/boost_1_39_0/ -Wall -DBOOST_SP_DISABLE_THREADS -O3  -D_GNU_SOURCE   -c -o misc.o misc.cc
g++ -I/root/src/boost_1_39_0/ -Wall -DBOOST_SP_DISABLE_THREADS -O3  -D_GNU_SOURCE   -c -o unix_utility.o unix_utility.cc
g++ -I/root/src/boost_1_39_0/ -Wall -DBOOST_SP_DISABLE_THREADS -O3  -D_GNU_SOURCE   -c -o qtype.o qtype.cc
g++ -I/root/src/boost_1_39_0/ -Wall -DBOOST_SP_DISABLE_THREADS -O3  -D_GNU_SOURCE   -c -o logger.o logger.cc
g++ -I/root/src/boost_1_39_0/ -Wall -DBOOST_SP_DISABLE_THREADS -O3  -D_GNU_SOURCE   -c -o arguments.o arguments.cc
g++ -I/root/src/boost_1_39_0/ -Wall -DBOOST_SP_DISABLE_THREADS -O3  -D_GNU_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: reference to ‘exception’ is ambiguous
/root/src/boost_1_39_0/boost/exception/exception.hpp:177: error: candidates are: class boost::exception
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/exception:55: error:                 class std::exception
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’
make: *** [lwres.o] Error 1

_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users

 « Return to Thread: Recursor fails to build on CentOS