It has something to do with wx and not with amule i think:
I have wx headers in /usr/inlcude/wx
kernel 2.6.8.1-ck7
gcc 3.4.1
wxWidgets 2.5.1 (wxGTK-2.5.1-r1 gentoo ebuild)
GTK 1.2.10
configure:
./configure --prefix=/usr --disable-debug --enable-optimize --enable-amule-daemon --enable-amulecmd --enable-webserver
The error i had:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/wx/include/gtk-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA -DwxUSE_GUI=0 -I/usr/include/ -D__CRYPTO_DEBIAN_GENTOO__ -O2 -MT amuleweb-ExternalConnector.o -MD -MP -MF ".deps/amuleweb-ExternalConnector.Tpo" \
-c -o amuleweb-ExternalConnector.o `test -f 'ExternalConnector.cpp' || echo './'`ExternalConnector.cpp; \
then mv -f ".deps/amuleweb-ExternalConnector.Tpo" ".deps/amuleweb-ExternalConnector.Po"; \
else rm -f ".deps/amuleweb-ExternalConnector.Tpo"; exit 1; \
fi
In file included from /usr/include/wx/textfile.h:27,
from /usr/include/wx/fileconf.h:24,
from /usr/include/wx/config.h:13,
from ExternalConnector.cpp:38:
/usr/include/wx/file.h:117: error: `wxSeekMode' has not been declared
/usr/include/wx/file.h:117: error: `wxFromStart' was not declared in this scope
/usr/include/wx/file.h: In member function `off_t wxFile::SeekEnd(off_t)':
/usr/include/wx/file.h:119: error: `wxFromEnd' undeclared (first use this function)
/usr/include/wx/file.h:119: error: (Each undeclared identifier is reported only once for each function it appears in.)
make[4]: *** [amuleweb-ExternalConnector.o] Error 1
make[4]: Leaving directory `/WORK/amule-cvs/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/WORK/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/WORK/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/WORK/amule-cvs'
make: *** [all] Error 2
so i just searched for wxSeekMode in /usr/include/wx directory. The first file i found was stream.h . So I added #include "stream.h" to file.h in the same directory and it worked. There are also some lines below in this file:
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/filefn.h"
#include "wx/strconv.h"
#endif
but i suppose they were not included and there is no another "wx" directory in /usr/include/wx