aMule Forum
English => Compilation problems => Topic started by: Coronas on February 17, 2008, 09:45:56 AM
-
Hi,
after fiddling round for the last 10 dayes or so with my setup, I decided to give the compilation another try. Unfortunately, the compiler stops with the following error:
if /usr/lib/ccache/bin/ccache powerpc-tuxbox-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -isystem /home/tux/dreambox/root/cdkroot/lib/wx/include/powerpc-tuxbox-linux-gnu-base-unicode-release-static-2.8 -isystem /home/tux/dreambox/root/cdkroot/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DwxUSE_GUI=0 -pthread -DwxUSE_GUI=0 -I./libs -Ilibs -I./include -DAMULE_DAEMON -mcpu=405 -msoft-float -mmultiple -mstring -meabi -pipe -isystem /home/tux/dreambox/root/cdkroot/include -D__CRYPTO_INSTALLED__ -D__WEAK_CRYPTO__ -W -Wall -Wshadow -Wundef -O2 -DUSE_WX_EXTENSIONS -MT amuled-amuled.o -MD -MP -MF ".deps/amuled-amuled.Tpo" -c -o amuled-amuled.o `test -f 'amuled.cpp' || echo './'`amuled.cpp; \
then mv -f ".deps/amuled-amuled.Tpo" ".deps/amuled-amuled.Po"; else rm -f ".deps/amuled-amuled.Tpo"; exit 1; fi
amuled.cpp: In function `pid_t AmuleWaitPid(pid_t, int*, int, wxString*)':
amuled.cpp:506: error: `WIFCONTINUED' undeclared (first use this function)
amuled.cpp:506: error: (Each undeclared identifier is reported only once for each function it appears in.)
make[4]: *** [amuled-amuled.o] Fehler 1
make[4]: Leaving directory `/home/tux/dreambox/cdk/amule-cvs/src'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/home/tux/dreambox/cdk/amule-cvs/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/tux/dreambox/cdk/amule-cvs'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/home/tux/dreambox/cdk/amule-cvs'
make: *** [.amule] Fehler 2
[tux@asus cdk]$
Has anybody an idea what might be wrong?
-
Do you use the --enable-ccache?
If that try with: --disable-ccache
-
Hi Festor,
yes I used -enable-ccache. But disabling it didn't have the desired effect, it just took longer until the error appeared...
if powerpc-tuxbox-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -isystem /home/tux/dreambox/root/cdkroot/lib/wx/include/powerpc-tuxbox-linux-gnu-base-unicode-release-static-2.8 -isystem /home/tux/dreambox/root/cdkroot/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DwxUSE_GUI=0 -pthread -DwxUSE_GUI=0 -I./libs -Ilibs -I./include -DAMULE_DAEMON -mcpu=405 -msoft-float -mmultiple -mstring -meabi -pipe -isystem /home/tux/dreambox/root/cdkroot/include -D__CRYPTO_INSTALLED__ -D__WEAK_CRYPTO__ -W -Wall -Wshadow -Wundef -O2 -DUSE_WX_EXTENSIONS -MT amuled-amuled.o -MD -MP -MF ".deps/amuled-amuled.Tpo" -c -o amuled-amuled.o `test -f 'amuled.cpp' || echo './'`amuled.cpp; \
then mv -f ".deps/amuled-amuled.Tpo" ".deps/amuled-amuled.Po"; else rm -f ".deps/amuled-amuled.Tpo"; exit 1; fi
amuled.cpp: In function `pid_t AmuleWaitPid(pid_t, int*, int, wxString*)':
amuled.cpp:506: error: `WIFCONTINUED' undeclared (first use this function)
amuled.cpp:506: error: (Each undeclared identifier is reported only once for each function it appears in.)
make[4]: *** [amuled-amuled.o] Fehler 1
make[4]: Leaving directory `/home/tux/dreambox/cdk/amule-cvs/src'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/home/tux/dreambox/cdk/amule-cvs/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/tux/dreambox/cdk/amule-cvs'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/home/tux/dreambox/cdk/amule-cvs'
make: *** [.amule] Fehler 2
[tux@asus cdk]$
-
I packaging the same version (today tarball) for Ubuntu 7.10 and works
-
Hi,
it seems like WIFCONTINUED has not been implemented for kernels < 2.6.10 (Look at http://linux.die.net/man/2/wait (http://linux.die.net/man/2/wait)). Unfortunately, I have to stick to 2.6.9... Any hints on how to work around this problem (except for commenting out the lines)?
-
Just comment out the lines. I've added an ifdef to the sources, so the next snapshots should just work.
-
Thanks for fixing the issue.