aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: SVN20080217 compile error: `WIFCONTINUED' undeclared  (Read 3752 times)

Coronas

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
SVN20080217 compile error: `WIFCONTINUED' undeclared
« 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:

Code: [Select]
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?
Logged

Festor

  • Hero Member
  • *****
  • Karma: 79
  • Offline Offline
  • Posts: 935
  • Offline -> Studying...
Re: SVN20080217 compile error: `WIFCONTINUED' undeclared
« Reply #1 on: February 17, 2008, 10:04:49 AM »

Do you use the --enable-ccache?

If that try with: --disable-ccache

Coronas

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: SVN20080217 compile error: `WIFCONTINUED' undeclared
« Reply #2 on: February 17, 2008, 10:22:08 AM »

Hi Festor,

yes I used -enable-ccache. But disabling it didn't have the desired effect, it just took longer until the error appeared...
Code: [Select]
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]$
Logged

Festor

  • Hero Member
  • *****
  • Karma: 79
  • Offline Offline
  • Posts: 935
  • Offline -> Studying...
Re: SVN20080217 compile error: `WIFCONTINUED' undeclared
« Reply #3 on: February 17, 2008, 10:41:11 AM »

I packaging the same version (today tarball) for Ubuntu 7.10 and works

Coronas

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: SVN20080217 compile error: `WIFCONTINUED' undeclared
« Reply #4 on: February 17, 2008, 10:45:12 AM »

Hi,

it seems like WIFCONTINUED has not been implemented for kernels < 2.6.10 (Look at 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)?
« Last Edit: February 17, 2008, 10:50:08 AM by Coronas »
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: SVN20080217 compile error: `WIFCONTINUED' undeclared
« Reply #5 on: February 17, 2008, 01:03:26 PM »

Just comment out the lines. I've added an ifdef to the sources, so the next snapshots should just work.
Logged

Coronas

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: SVN20080217 compile error: `WIFCONTINUED' undeclared
« Reply #6 on: February 18, 2008, 10:21:07 AM »

Thanks for fixing the issue.
Logged