aMule Forum

English => Compilation problems => Topic started by: IhmSelbst on January 14, 2006, 07:58:24 AM

Title: cvs-20060114 won´t compile on suse 9.3, 10.0 and 10.1alpha4
Post by: IhmSelbst 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
Title: Re: cvs-20060114 won´t compile on suse 9.3, 10.0 and 10.1alpha4
Post by: OldFrog 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 ?
Title: Re: cvs-20060114 won´t compile on suse 9.3, 10.0 and 10.1alpha4
Post by: stefanero 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....
Title: Re: cvs-20060114 won´t compile on suse 9.3, 10.0 and 10.1alpha4
Post by: 1Carlos 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
Title: Re: cvs-20060114 won´t compile on suse 9.3, 10.0 and 10.1alpha4
Post by: Xaignar 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'.
Title: Re: cvs-20060114 won´t compile on suse 9.3, 10.0 and 10.1alpha4
Post by: IhmSelbst 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
Title: Re: cvs-20060114 won´t compile on suse 9.3, 10.0 and 10.1alpha4
Post by: IhmSelbst on January 15, 2006, 10:03:40 AM
addition:
today´s cvs compiles fine here again, as usual. :)
 :baby:


cu