aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: FreeBSD 5.2.1. aMule 2.0.0rc2  (Read 7296 times)

Stevil

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 110
FreeBSD 5.2.1. aMule 2.0.0rc2
« on: April 14, 2004, 12:32:24 AM »

hi community!

after ./configure, i get a nice error...

Quote
Making all in src
gmake[2]: Entering directory `/usr/own/aMule-2.0.0rc2/src'
gcc -Wall -g -ggdb -fno-inline -D__DEBUG__ -g -o cas cas.o -L/usr/local/lib -lcurl -rpath=/usr/lib:/usr/local/lib -lz -lssl -lcrypto -lz -lcryptopp
g++ -I/usr/local/include -I -D__CRYPTO_MDK_SUSE_FC__ -Wall -g -ggdb -fno-inline -D__DEBUG__ -g -o ed2k ED2KLinkParser.o -L/usr/local/lib -lcurl -rpath=/usr/lib:/usr/local/lib -lz -lssl -lcrypto -lz -lcryptopp
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -I/usr/X11R6/include/wx/gtk-2.4 -I/usr/X11R6/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include -I -D__CRYPTO_MDK_SUSE_FC__ -Wall -g -ggdb -fno-inline -D__DEBUG__ -g -MT amule-amule.o -MD -MP -MF ".deps/amule-amule.Tpo" \
-c -o amule-amule.o `test -f 'amule.cpp' || echo './'`amule.cpp; \
then mv -f ".deps/amule-amule.Tpo" ".deps/amule-amule.Po"; \
else rm -f ".deps/amule-amule.Tpo"; exit 1; \
fi
amule.cpp:1: error: syntax error before `--' token
gmake[2]: *** [amule-amule.o] Error 1
gmake[2]: Leaving directory `/usr/own/aMule-2.0.0rc2/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/own/aMule-2.0.0rc2'
gmake: *** [all] Error 2


any help? thx! :D
Logged
5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004

errare humanum est ;)

eugene

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
amule 2.0.0rc3 howto for freebsd :-)
« Reply #1 on: May 07, 2004, 10:55:51 PM »

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
Logged
--
Ein Treiber ist Software, die direkt mit den Netzschnittstellenkleinteilen verstaendigt. [google translator]

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: FreeBSD 5.2.1. aMule 2.0.0rc2
« Reply #2 on: May 07, 2004, 11:01:38 PM »

hiya eugene :)

feel free to update our http://wiki.amule.org ;)

eugene

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
what to update? official bsd support?
« Reply #3 on: May 07, 2004, 11:27:53 PM »

im new to wikipedia,

but i guess its time to change usage from a readonly user to a contributor ;-)

but what exactly should i update?

or am i to write a very new page about freebsd? i guess, when we hit 2.0.0 stable a new official freebsd port is to come soon for sure.

anyways... i dunno how to "create a new page" in wiki yet.

but i dislike freebsd port maintainers to patch a program for installing.

would be better the amule devs would include freebsd by default as done with openbsd... maybe all bsds are more or less equal when it comes to porting linux apps to bsd...

u may notive i defined __OPENBSD__ and it worked :-)

Eugene
Logged
--
Ein Treiber ist Software, die direkt mit den Netzschnittstellenkleinteilen verstaendigt. [google translator]

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: FreeBSD 5.2.1. aMule 2.0.0rc2
« Reply #4 on: May 07, 2004, 11:40:01 PM »

np, i'll add it next days then

thx again :)

eugene

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
i got time :-)
« Reply #5 on: May 08, 2004, 12:20:27 AM »

Logged
--
Ein Treiber ist Software, die direkt mit den Netzschnittstellenkleinteilen verstaendigt. [google translator]

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: FreeBSD 5.2.1. aMule 2.0.0rc2
« Reply #6 on: May 08, 2004, 12:27:15 AM »

thanky :)

added to the main page -> http://www.amule.org/wiki/index.php/Main_Page

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: FreeBSD 5.2.1. aMule 2.0.0rc2
« Reply #7 on: May 08, 2004, 12:34:08 AM »

i saw just one problem .. u use wxgtk linked against gtk2 .. thats not good cos wxgtk doesn't support gtk2 yet (memleaks and cpu 100%) ...

Quote
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, dont report bugs so.

-- cut --

its just alright!

not really alright  ;)

eugene

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
gtk1 vs gtk2
« Reply #8 on: May 08, 2004, 12:51:13 AM »

why?

is it due to wxgtkX or due to gtkX having the bug?

maybe its just gtk2.4.0 specific and gone with gtk 2.4.1 ??

i will change this when it realy is still the case... maybe i should test it out??

but if u tell me it will 100% memleek until death i take the short route and redo the thing with gtk1 of course...

Eugene
Logged
--
Ein Treiber ist Software, die direkt mit den Netzschnittstellenkleinteilen verstaendigt. [google translator]

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: FreeBSD 5.2.1. aMule 2.0.0rc2
« Reply #9 on: May 08, 2004, 12:57:07 AM »

it's a wxGTK 2.X.X problem.. isn't ready for gtk2 yet

just use wxGTK 2.4.2 linked against gtk1 :)

eugene

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
ure right i guess
« Reply #10 on: May 08, 2004, 01:01:13 AM »

well, i searched and cpou max was 25%, but mostly near zero...

but when i wantes to start a transfer:

OOPS! - Seems like aMule crashed
--== no BACKTRACE yet

Abort trap (core dumped)

will redo with debug cflags and wx -> gtk1

Eugene
Logged
--
Ein Treiber ist Software, die direkt mit den Netzschnittstellenkleinteilen verstaendigt. [google translator]

eugene

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
just use wxGTK 2.4.2 linked against gtk1
« Reply #11 on: May 08, 2004, 01:06:23 AM »

luckely there is a port as well doing this...

i thought wxgtk2.4.2 would be gtk2 only and i would use exgtk1.x.x for gtk1...

i was wrong it seems... :-))

im on my way now...

Eugene
Logged
--
Ein Treiber ist Software, die direkt mit den Netzschnittstellenkleinteilen verstaendigt. [google translator]

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: FreeBSD 5.2.1. aMule 2.0.0rc2
« Reply #12 on: May 08, 2004, 01:10:31 AM »

don't forget to update your howto plz ;)
have fun & good night :)

eugene

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
sure i dont forget :-)
« Reply #13 on: May 08, 2004, 01:16:08 AM »

nite and dreams of mules :-)

Eugene
Logged
--
Ein Treiber ist Software, die direkt mit den Netzschnittstellenkleinteilen verstaendigt. [google translator]

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: FreeBSD 5.2.1. aMule 2.0.0rc2
« Reply #14 on: May 10, 2004, 12:39:18 AM »

hey, eugene, I just read the wiki. that's a great job! :-)
Greetings!
Logged