aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: cvs-20060114 won´t compile on suse 9.3, 10.0 and 10.1alpha4  (Read 3350 times)

IhmSelbst

  • Full Member
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 220
    • http://www.ed2k-serverboard.de/
cvs-20060114 won´t compile on suse 9.3, 10.0 and 10.1alpha4
« on: January 14, 2006, 07:58:24 AM »

seems, todays cvs at least doesn´t like my suses anymore. ;( - same error occurs on 9.3, 10.0 and on 10.1alpha4:
Code: [Select]
CFile.cpp: In member function 'bool CFile::Flush()':
CFile.cpp:308: error: 'commit' was not declared in this scope
make[3]: *** [libmuleappcommon_a-CFile.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/usr/src/packages/BUILD/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/amule-cvs'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.80602 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.80602 (%build)


cu

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: cvs-20060114 won´t compile on suse 9.3, 10.0 and 10.1alpha4
« Reply #1 on: January 14, 2006, 09:42:16 AM »

That's weird, seeing your post, I thought I should have the same hitch on Mandriva, but all went right to the end. What should be different in Suse ?
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: cvs-20060114 won´t compile on suse 9.3, 10.0 and 10.1alpha4
« Reply #2 on: January 14, 2006, 10:55:09 AM »

/me looks for xaignar

as a workaround try adding

#define FLUSH_FD(x)         fsync(x)

in line 139 and see if it compiles....
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

1Carlos

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 187
Re: cvs-20060114 won´t compile on suse 9.3, 10.0 and 10.1alpha4
« Reply #3 on: January 14, 2006, 12:56:38 PM »

Quote
Originally posted by stefanero
/me looks for xaignar

as a workaround try adding

#define FLUSH_FD(x)         fsync(x)

in line 139 and see if it compiles....

Nothing to do. After (and also before) the change, I have the same error (on my debian SID).
Code: [Select]
CFile.cpp: In member function 'bool CFile::Flush()':
CFile.cpp:309: error: 'commit' was not declared in this scope
make[3]: *** [libmuleappcommon_a-CFile.o] Error 1
make[3]: Leaving directory `/var/home/gandy/amule/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/home/gandy/amule/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/home/gandy/amule/amule-cvs'
make: *** [all] Error 2
Logged
Please excuse my bad English  :(.

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: cvs-20060114 won´t compile on suse 9.3, 10.0 and 10.1alpha4
« Reply #4 on: January 14, 2006, 01:04:21 PM »

Sorry, I thought I could spare a few custom defines by using wx ones. Seems that those dont work as expected. To workaround it for now, replace 'wxFsync' with 'fsync'.
Logged

IhmSelbst

  • Full Member
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 220
    • http://www.ed2k-serverboard.de/
Re: cvs-20060114 won´t compile on suse 9.3, 10.0 and 10.1alpha4
« Reply #5 on: January 14, 2006, 10:59:35 PM »

Quote
Originally posted by Xaignar
... To workaround it for now, replace 'wxFsync' with 'fsync'.
hi again,
bingo - replaced 'wxFsync' with 'fsync' in CFile.cpp, and it works.  :D :baby:

thanks.

btw:
pse excuse the late reply, but the rl... :]


cu

IhmSelbst

  • Full Member
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 220
    • http://www.ed2k-serverboard.de/
Re: cvs-20060114 won´t compile on suse 9.3, 10.0 and 10.1alpha4
« Reply #6 on: January 15, 2006, 10:03:40 AM »

addition:
today´s cvs compiles fine here again, as usual. :)
 :baby:


cu