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 20040614  (Read 1877 times)

Stevil

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 110
cvs 20040614
« on: June 15, 2004, 12:56:35 AM »

und wieder was für euch zum basteln.... :(

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

« Last Edit: June 15, 2004, 12:56:57 AM by Stevil »
Logged
5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004

errare humanum est ;)

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3923
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: cvs 20040614
« Reply #1 on: June 15, 2004, 01:11:35 AM »

Quote
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