system info
-----------
-> uname -a
FreeBSD xxx 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Mon May 3 20:37:51 CEST
2004 root@xxx:/usr/obj/usr/src/sys/xxx i386
-> gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.3.3 [FreeBSD] 20031106
-> pkg_info (install the following stuff if u dont already have)
[...]
cryptopp-5.1_2 A free C++ class library of Cryptographic Primitives
gettext-0.13.1_1 GNU gettext package
wxgtk-common-2.4.2_1 The wxWindows GUI toolkit (common files)
wxgtk2-2.4.2_3 The wxWidgets GUI toolkit (GTK2 version)
sidenote: gd-2.0.22,1 installed, but gdlib-config missing, so ./configure does not find it, but its no "must have" so no problem here
install info
------------
-> export CFLAGS="-O2 -pipe -march=athlon"
-> export CXXFLAGS="-O2 -pipe -march=athlon"
-> ./configure --prefix=/home/eugene/amule
--with-wx-config=/usr/X11R6/bin/wxgtk2-2.4-config
--with-wxbase-config=/usr/X11R6/bin/wxgtk2-2.4-config
[...]
Configure script has finished system check.
Configured aMule 2.0.0rc3 for 'i386-unknown-freebsd5.2'.
Should aMule be compiled in debug mode? yes
Should aMule be compiled with release grp code? no
Should aMule be compiled without debug reporting? yes
Should aMule be compiled with profiling? no
Should aMule be compiled with optimizations? no
Should aMule be compiled with systray? yes
Should aMule be compiled with safe systray? no
Should aMule be compiled with pure GTK code? yes
Should aMule be compiled without bar drawing? no
Should aMule be linked against patched gsocket? yes
Should ccache support be enabled? no
Should aMule command line client be built? no
Should aMule GUI client be build? no
Should aMule WebServer be build? no
Should aMule WebServer GUI be build? no
Should aMule ed2k links handler be build? yes
Should C aMule Statistics (CAS) be build? yes
Should aMule GUI Statistics (wxCas) be build? yes
Crypto++ library/headers style? mdk_suse_fc
Which libraries should aMule use?
wxWidgets 2.4.2
GTK Not detected
WARNING!! Your wxWidgets copy has been linked against GTK2 and this will make aMule
be instable, use so much cpu and ram. You have been advised, don't report bugs so.
-> make
after a while ram usage maxed out and make failed with an error
seems amule is incompatible with "make"
so lets use gmake instead of make
-> gmake
[...]
/usr/bin/ld: cannot find -lcryptopp
gmake[2]: *** [cas] 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
-> edit src/Makefile
-> LIBS = -L/usr/local/lib -lcryptopp
-> gmake
[...]
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::OnInit()':
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::OnFatalException()':
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
mntent.h does not exist on freebsd systems, so lets work around this...
as i see there are many ifndefs around mnt-functions...
these are triggered by a definde __OPENBSD__
this will work fro freebsd too i guess...
because i dont fiddle too much around with the code,
i insert a
-> edit src/amule.cpp
-> insert
#define __OPENBSD__
at the top of the file
-> gmake
yeah, it went thruh!!
lets install...
-> gmake install
lets test...
-> cd /home/eugene
-> amule/bin/amule
yeah, it works :-)
but i dunno how stable it is... find out yaself...
Eugene