aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: so good, so bad and what?! ;( problems with freebsd and amule  (Read 4567 times)

vadim s. sabinich

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
so good, so bad and what?! ;( problems with freebsd and amule
« on: December 10, 2008, 11:58:57 AM »

1. If i need only amule as daemon, why i install many packages on our server? (dependens for wx*)
2. i setting in configure --enable-Geoip, but it dont search this libs and other, but i installed geoip from ports
3. how i may compile amule for using it in freebsd' server?

cryptopp -L. -lmuleappcore    -L. -lmuleappgui  -L/usr/local/lib -pthread   -L/usr/local/lib   -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8  -L/usr/local/lib -lGeoIP
./libmuleappcore.a(libmuleappcore_a-Scanner.o)(.text+0xf9f): In function `LexFree()':
: undefined reference to `yylex_destroy()'
gmake[3]: *** [amule] Ошибка 1
gmake[3]: Leaving directory `/usr/home/ftp/pub/incoming/aMule-2.2.2/src'
gmake[2]: *** [all-recursive] Ошибка 1
gmake[2]: Leaving directory `/usr/home/ftp/pub/incoming/aMule-2.2.2/src'
gmake[1]: *** [all-recursive] Ошибка 1
gmake[1]: Leaving directory `/usr/home/ftp/pub/incoming/aMule-2.2.2'
gmake: *** [all] Ошибка 2
Logged

vadim s. sabinich

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: so good, so bad and what?! ;( problems with freebsd and amule
« Reply #1 on: December 10, 2008, 01:43:43 PM »

i know how compile ;) i mean for amuled, but i read your answer into 1st my question..
so, ok.
I try again ;)
But, good solution from mldonkey (mldonkey-core very well for servers)

 ./configure --disable-monolithic --enable-amule-daemon --enable-amulecmd --enable-webserver --enable-amule-gui --enable-cas --enable-alcc --enable-optimize --with-wx-config=/usr/local/bin/wxgtk2u-2.8-config
==

f#!@ck! 8-(
amuled-StatTree.o amuled-SHAHashSet.o amuled-TerminationProcess.o amuled-TerminationProcessAmuleweb.o amuled-UserEvents.o amuled-OtherFunctions.o amuled-NetworkFunctions.o  -L. -lmuleappcommon -Llibs/common -Llibs/ec/cpp -lmulecommon -lec  -lz   -L/usr/local/lib -lcryptopp -L. -lmuleappcore    -L/usr/local/lib -pthread   -L/usr/local/lib   -lwx_baseu_net-2.8 -lwx_baseu-2.8
./libmuleappcore.a(libmuleappcore_a-Scanner.o)(.text+0xf3b): In function `LexFree()':
./Scanner.l:196: undefined reference to `yylex_destroy()'
gmake[3]: *** [amuled] Ошибка 1
gmake[3]: Leaving directory `/usr/home/ftp/pub/incoming/aMule-2.2.2/src'
gmake[2]: *** [all-recursive] Ошибка 1
gmake[2]: Leaving directory `/usr/home/ftp/pub/incoming/aMule-2.2.2/src'
gmake[1]: *** [all-recursive] Ошибка 1
gmake[1]: Leaving directory `/usr/home/ftp/pub/incoming/aMule-2.2.2'
gmake: *** [all] Ошибка 2
phobos# flex --version
flex version 2.5.4
« Last Edit: December 10, 2008, 04:16:29 PM by vadim s. sabinich »
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: so good, so bad and what?! ;( problems with freebsd and amule
« Reply #2 on: December 10, 2008, 08:02:30 PM »

Can you please unpack the aMule sources again into a clean directory and do the following:
Code: [Select]
mkdir $PWD/bin
ln -s /bin/true $PWD/bin/flex
export PATH=$PWD/bin:$PATH
./configure
gmake
If this works, your flex is broken or too old.
Logged

vadim s. sabinich

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: so good, so bad and what?! ;( problems with freebsd and amule
« Reply #3 on: December 12, 2008, 10:40:40 AM »

i try:
# ./configure --with-wx-config=/usr/local/bin/wxgtk2u-2.8-config VAR=PATH=~/bin

after configuring:
[..some info skipped...]

WARNING! UPnP code has been disabled because libupnp >= 1.6.6 not found (try to use --with-libupnp-prefix=PREFIX).

# gmake
And wait.. ;)
Logged

vadim s. sabinich

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: so good, so bad and what?! ;( problems with freebsd and amule
« Reply #4 on: December 12, 2008, 11:38:37 AM »

You need to update flex to 2.5.9 or newer. yylex_destroy() was introduced in flex 2.5.9

http://rainforce.org/flex/flex-2-5-10.news
%flex --version
flex 2.5.35
Logged

vadim s. sabinich

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: so good, so bad and what?! ;( problems with freebsd and amule
« Reply #5 on: December 12, 2008, 12:30:37 PM »

Eeeaa-a-h! ;))
with solution from above all is  ok

i try
# ./configure --with-wx-config=/usr/local/bin/wxgtk2u-2.8-config VAR=PATH=~/bin
ok.  now i reconfigure like i want, now 8-)


==
hmm. lets go
./configure --with-wx-config=/usr/local/bin/wxgtk2u-2.8-config VAR=PATH=~/bin --disable-monolithic --enable-amule-daemon --enable-amulecmd --enable-webserver --enable-amule-gui --disable-debug --enable-ccache --enable-optimize
« Last Edit: December 12, 2008, 12:43:32 PM by vadim s. sabinich »
Logged