aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule CVS and Freebsd  (Read 3676 times)

livebrain

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
aMule CVS and Freebsd
« on: August 24, 2007, 04:17:30 AM »

i'm trying to compile 20070723 under FreeBSD but i get this error during "gmake"

(..)
/usr/local/include/wx-2.8/wx/gdicmn.h: In member function `bool wxRect::Inside(int, int) const':
/usr/local/include/wx-2.8/wx/gdicmn.h:486: warning: declaration of 'y' shadows a member of 'this'
/usr/local/include/wx-2.8/wx/gdicmn.h:486: warning: declaration of 'x' shadows a member of 'this'
Scanner.cpp:534:5: warning: "YY_STACK_USED" is not defined
Scanner.cpp:1472:5: warning: "YY_ALWAYS_INTERACTIVE" is not defined
Scanner.cpp:1766:5: warning: "YY_MAIN" is not defined
./Scanner.l: In function `void LexFree()':
./Scanner.l:191: error: `yylex_destroy' was not declared in this scope
./Scanner.l:205:5: warning: "YY_STACK_USED" is not defined
./Scanner.l:191: warning: unused variable 'yylex_destroy'
Scanner.cpp: At global scope:
Scanner.cpp:1670: warning: 'void yy_fatal_error(const char*)' defined but not used
gmake[3]: *** [libmuleappcore_a-Scanner.o] Error 1
gmake[3]: Leaving directory `/usr/ports/net-p2p/amulecvs/work/amule-cvs/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/net-p2p/amulecvs/work/amule-cvs/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/net-p2p/amulecvs/work/amule-cvs'
gmake: *** [all] Error 2
*** Error code 2


There is no trouble in linux:
aMule CVS using wxGTK2 v2.8.4 (Snapshot: Thu Aug 23 07:01:56 CEST 2007) (OS: Linux)

I tried other snapshots but with the same result.
The flags i'm using in Freebsd: (i didnt used any flags while compiling under linux)
--disable-monolithic \
--enable-amule-daemon \
--enable-optimize \
--enable-amulecmd \
--enable-cas \
--with-wx-config=/usr/X11R6/bin/wxgtk2u-2.8-config \
--disable-debug


« Last Edit: August 24, 2007, 04:20:25 AM by livebrain »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule CVS and Freebsd
« Reply #1 on: August 24, 2007, 10:59:24 AM »

Hi livebrain,

Do you use flex 2.5.33?
Logged

livebrain

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
Re: aMule CVS and Freebsd
« Reply #2 on: August 24, 2007, 09:34:36 PM »

Hi livebrain,

Do you use flex 2.5.33?


# flex --version
flex version 2.5.4

I have that version in FreeBSD
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule CVS and Freebsd
« Reply #3 on: August 24, 2007, 09:59:18 PM »

OK, the usual:
flex 2.5.4 is more than 10 years old. Please upgrade to 2.5.33 and this problem should be solved.
Logged

gnazio

  • Approved Newbie
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 18
  • Live long and prosper
Re: aMule CVS and Freebsd
« Reply #4 on: August 26, 2007, 09:51:28 AM »

I always used the version from ports but the last night I decided to give the cvs version a try.
So I've downloaded the aMule-CVS-20070825.tar.bz2 snapshot.
The first time, with a minimal configuration, the build went fine.
Then I tried again with a more complex configuration but I faced the same problem and I think I've tried at least 20 times with different options: you can figure out the frustration!
Finally I had it successfully build again after doing cd src && touch Scanner.cpp Scanner.h.
I hope it will work for you too.


Logged

livebrain

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
Re: aMule CVS and Freebsd
« Reply #5 on: August 26, 2007, 10:33:08 AM »

Tkz for the help guys.
Updating the flex to 2.5.33 did it for me :)

cumps...
Logged

gugus

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
    • FreeNAS
Re: aMule CVS and Freebsd
« Reply #6 on: October 02, 2007, 04:23:25 PM »

I've update the amule FreeBSD wiki page with the informations found here.
Can someone review this page:
http://www.amule.org/wiki/index.php/Install-amule-freebsd

(I've added "Install aMule CVS on FreeBSD 6.2" part and updated "Installing official aMule ports")

Thanks

Logged