# CXXFLAGS=-I/opt/boost/boost_1_40_0 ./configure

Testing dependencies and compiler.
Using gmake to build
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE -MM -MG *.cc *.c *.hh > dep
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE  pdns_hw.cc -o pdns_hw 
g++: unrecognized option `-pthread'

Everything ok, now run gmake using same settings (if any) you passed ./configure

# CXXFLAGS=-I/opt/boost/boost_1_40_0 gmake clean
rm -f dep *.o *~ pdns_recursor rec_control *.gcda *.gcno optional/*.gcda optional/*.gcno optional/*.o

# CXXFLAGS=-I/opt/boost/boost_1_40_0 gmake all  
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE -MM -MG *.cc *.c *.hh > dep
g++: unrecognized option `-pthread'

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/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE -c portsmplexer.cc -o optional/portsmplexer.o  ; true
g++: unrecognized option `-pthread'
In file included from /usr/include/sys/port_kernel.h:12,
                 from /usr/include/sys/port_impl.h:24,
                 from portsmplexer.cc:11:
/usr/include/sys/list.h:18: error: use of `list' is ambiguous
/usr/include/sys/list_impl.h:22: error:   first declared as `struct list' here
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/stl_list.h:387: error:   also declared as `template<class _Tp, class _Alloc> class std::list' here
/usr/include/sys/list.h:18: error: conflicting declaration 'struct list'
/usr/include/sys/list_impl.h:22: error: 'struct list' has a previous declaration as `struct list'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE -c devpollmplexer.cc -o optional/devpollmplexer.o  ; true
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o syncres.o syncres.cc
g++: unrecognized option `-pthread'
syncres.cc:426: warning: 'bool ipv6First(const ComboAddress&, const ComboAddress&)' defined but not used
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o misc.o misc.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o unix_utility.o unix_utility.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o qtype.o qtype.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o logger.o logger.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o arguments.o arguments.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o lwres.o lwres.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o pdns_recursor.o pdns_recursor.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o recursor_cache.o recursor_cache.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o dnsparser.o dnsparser.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o dnswriter.o dnswriter.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o dnsrecords.o dnsrecords.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o rcpgenerator.o rcpgenerator.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o base64.o base64.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o zoneparser-tng.o zoneparser-tng.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o rec_channel.o rec_channel.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o rec_channel_rec.o rec_channel_rec.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o selectmplexer.o selectmplexer.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o sillyrecords.o sillyrecords.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o dns_random.o dns_random.cc
g++: unrecognized option `-pthread'
gcc  -Wall -O3  -pthread   -c -o aescrypt.o aescrypt.c
gcc: unrecognized option `-pthread'
gcc  -Wall -O3  -pthread   -c -o aeskey.o aeskey.c
gcc: unrecognized option `-pthread'
gcc  -Wall -O3  -pthread   -c -o aes_modes.o aes_modes.c
gcc: unrecognized option `-pthread'
gcc  -Wall -O3  -pthread   -c -o aestab.o aestab.c
gcc: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o lua-pdns-recursor.o lua-pdns-recursor.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o randomhelper.o randomhelper.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o recpacketcache.o recpacketcache.cc
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o dns.o dns.cc
g++: unrecognized option `-pthread'
g++ syncres.o  misc.o unix_utility.o qtype.o logger.o arguments.o lwres.o pdns_recursor.o recursor_cache.o dnsparser.o dnswriter.o dnsrecords.o rcpgenerator.o base64.o zoneparser-tng.o rec_channel.o rec_channel_rec.o selectmplexer.o sillyrecords.o dns_random.o aescrypt.o aeskey.o aes_modes.o aestab.o lua-pdns-recursor.o randomhelper.o recpacketcache.o dns.o optional/devpollmplexer.o  -pthread -lresolv -lsocket -lnsl -ldl    -o pdns_recursor
g++: unrecognized option `-pthread'
g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE   -c -o rec_control.o rec_control.cc
g++: unrecognized option `-pthread'
g++ rec_channel.o rec_control.o arguments.o   -pthread -lresolv -lsocket -lnsl -ldl    -o rec_control
g++: unrecognized option `-pthread'

# CXXFLAGS=-I/opt/boost/boost_1_40_0 gmake install

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

g++ -I/opt/boost/boost_1_40_0 -Wall -O3  -pthread -D__MAKECONTEXT_V2_SOURCE -c portsmplexer.cc -o optional/portsmplexer.o  ; true
g++: unrecognized option `-pthread'
In file included from /usr/include/sys/port_kernel.h:12,
                 from /usr/include/sys/port_impl.h:24,
                 from portsmplexer.cc:11:
/usr/include/sys/list.h:18: error: use of `list' is ambiguous
/usr/include/sys/list_impl.h:22: error:   first declared as `struct list' here
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/stl_list.h:387: error:   also declared as `template<class _Tp, class _Alloc> class std::list' here
/usr/include/sys/list.h:18: error: conflicting declaration 'struct list'
/usr/include/sys/list_impl.h:22: error: 'struct list' has a previous declaration as `struct list'
g++ syncres.o  misc.o unix_utility.o qtype.o logger.o arguments.o lwres.o pdns_recursor.o recursor_cache.o dnsparser.o dnswriter.o dnsrecords.o rcpgenerator.o base64.o zoneparser-tng.o rec_channel.o rec_channel_rec.o selectmplexer.o sillyrecords.o dns_random.o aescrypt.o aeskey.o aes_modes.o aestab.o lua-pdns-recursor.o randomhelper.o recpacketcache.o dns.o optional/devpollmplexer.o  -pthread -lresolv -lsocket -lnsl -ldl    -o pdns_recursor
g++: unrecognized option `-pthread'
g++ rec_channel.o rec_control.o arguments.o   -pthread -lresolv -lsocket -lnsl -ldl    -o rec_control
g++: unrecognized option `-pthread'
mkdir -p //usr/sbin/
mv pdns_recursor //usr/sbin/
strip //usr/sbin//pdns_recursor
mkdir -p //usr/bin/
mv rec_control //usr/bin/
strip //usr/bin//rec_control
mkdir -p /"/etc/powerdns/"
//usr/sbin//pdns_recursor --config > /"/etc/powerdns/"/recursor.conf-dist
Oct 28 18:25:51 Unable to parse configuration file '/etc/powerdns/recursor.conf'
mkdir -p /usr/share/man/man1
cp pdns_recursor.1 rec_control.1 /usr/share/man/man1
mkdir -p /etc/init.d ; cp pdns-recursor.init.d /etc/init.d/pdns-recursor