I'm getting an error trying to compile recursor 3.0.1 on a Redhat 9 box (same sort of box that I compile pdns on all the time). glibc is 2.3.2 (glibc-2.3.2-27.9.7.2.legacy to be exact) and gcc is 3.2.2 (gcc version 3.2.2 20030222 (Red Hat Linux
3.2.2-5)). The boost src dir in ./boost_1_33_1/, inside the pdns-recursor-3.0.1 directory (and was found fine by configure). The error is somewhat bizarre, though I'm much more used to seeing C errors instead of C++, so might be something very obvious to you guys :)
<br><br><br>Output of make:<br><br>[root@res08 pdns-recursor-3.0]# CXXFLAGS=-I./boost_1_33_1/ make<br><br>PLEASE READ: If you get an error mentioning #include <boost/something.hpp>, please read README<br>PLEASE READ: for an easy fix!
<br><br>g++ -I./boost_1_33_1/ -Wall -O3 -c -o rec_channel.o rec_channel.cc<br>In file included from rec_channel.cc:1:<br>rec_channel.hh: In destructor<br> `RecursorControlChannel::~RecursorControlChannel()':<br>rec_channel.hh:22: `close' undeclared (first use this function)
<br>rec_channel.hh:22: (Each undeclared identifier is reported only once for each<br> function it appears in.)<br>rec_channel.hh:24: `unlink' undeclared (first use this function)<br>In file included from rec_channel.cc:4:
<br>/usr/include/unistd.h: At global scope:<br>/usr/include/unistd.h:306: `int close(int)' used prior to declaration<br>In file included from rec_channel.cc:4:<br>/usr/include/unistd.h:711: `int unlink(const char*)' used prior to declaration
<br>make: *** [rec_channel.o] Error 1<br><br>