aMule Forum
Deutsch => de_Bugs => Topic started by: Stevil on June 15, 2004, 12:56:35 AM
-
und wieder was für euch zum basteln.... :(
amule.cpp:39:30: execinfo.h: No such file or directory
amule.cpp:40:28: mntent.h: No such file or directory
In file included from /usr/local/include/cryptopp/pkcspad.h:4,
from /usr/local/include/cryptopp/rsa.h:9,
from ClientCredits.h:39,
from amule.cpp:82:
/usr/local/include/cryptopp/cryptlib.h:1358:9: warning: "/*" within comment
amule.cpp:98:2: warning: #warning This ones must be removed ASAP - exception: amuledlg, will be the LAST one.
amule.cpp: In member function `virtual bool CamuleApp::OnInit()':
amule.cpp:528: error: `setmntent' undeclared (first use this function)
amule.cpp:528: error: (Each undeclared identifier is reported only once for
each function it appears in.)
amule.cpp:534: error: `getmntent' undeclared (first use this function)
amule.cpp:536: error: invalid use of undefined type `struct mntent'
amule.cpp:532: error: forward declaration of `struct mntent'
amule.cpp:537: error: invalid use of undefined type `struct mntent'
amule.cpp:532: error: forward declaration of `struct mntent'
amule.cpp:542: error: invalid use of undefined type `struct mntent'
amule.cpp:532: error: forward declaration of `struct mntent'
amule.cpp:648:18: warning: #warning we need to move this lowid warning to the GUI itself.
amule.cpp: In member function `virtual void CamuleApp::OnFatalException()':
amule.cpp:1099: error: `backtrace' undeclared (first use this function)
amule.cpp:1104: error: `backtrace_symbols' undeclared (first use this function)
amule.cpp: In member function `void CamuleApp::AddSocketDeleteDebug(unsigned
int, unsigned int)':
amule.cpp:1837: error: `backtrace' undeclared (first use this function)
amule.cpp:1840: error: `backtrace_symbols' undeclared (first use this function)
gmake[2]: *** [amule-amule.o] Error 1
gmake[2]: Leaving directory `/usr/own/amule-cvs/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/own/amule-cvs'
gmake: *** [all] Error 2
-
Patch 2
The problem would be:
[...]
amule.cpp:39:30: execinfo.h: No such file or directory
amule.cpp:40:28: mntent.h: No such file or directory
In file included from /usr/local/include/cryptopp/pkcspad.h:4,
from /usr/local/include/cryptopp/rsa.h:9,
from ClientCredits.h:32,
from amule.cpp:86:
/usr/local/include/cryptopp/cryptlib.h:1358:9: warning: "/*" within comment
amule.cpp: In member function `virtual bool CamuleApp: nInit()':
amule.cpp:423: error: `setmntent' undeclared (first use this function)
amule.cpp:423: error: (Each undeclared identifier is reported only once for
each function it appears in.)
amule.cpp:429: error: `getmntent' undeclared (first use this function)
amule.cpp:431: error: invalid use of undefined type `struct mntent'
amule.cpp:427: error: forward declaration of `struct mntent'
amule.cpp:432: error: invalid use of undefined type `struct mntent'
amule.cpp:427: error: forward declaration of `struct mntent'
amule.cpp:437: error: invalid use of undefined type `struct mntent'
amule.cpp:427: error: forward declaration of `struct mntent'
amule.cpp: In member function `virtual void CamuleApp: nFatalException()':
amule.cpp:982: error: `backtrace' undeclared (first use this function)
amule.cpp:987: error: `backtrace_symbols' undeclared (first use this function)
gmake[2]: *** [amule-amule.o] Error 1
gmake[2]: Leaving directory `/home/eugene/aMule-2.0.0rc3/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/eugene/aMule-2.0.0rc3'
gmake: *** [all] Error 2
So we patch it now:
As there is no official FreeBSD support in aMule yet we will patch it to work... Well there is OpenBSD support and this support will work for us too :-)
Edit src/amule.cpp
and insert
#define __OPENBSD__
at the top of this file. I placed it right before the first #include line...
"What a workaround!" you may scream. Hey, we don't fiddle too much around with the code, just hack it to work and get ready to share ;-)
http://www.amule.org/wiki/index.php/Install-amule-freebsd