[Pdns-users] Recursor fails to build on CentOS

bert hubert bert.hubert at netherlabs.nl
Mon Jun 29 06:11:40 UTC 2009


Boost 1.39 is too new for the Recursor 3.1.7. Either use an older
Boost, or use a snapshot of the recursor, which has this problem
fixed.

   Bert

On Mon, Jun 29, 2009 at 6:08 AM, Jesse
Angell<Jesse.Angell at firespring.com> wrote:
> 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 !DSPAM:4a483e4b128571156014651!
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users
>
>
> !DSPAM:4a483e4b128571156014651!
>
>



More information about the Pdns-users mailing list