aMule Forum

English => Compilation problems => Topic started by: livebrain on August 24, 2007, 04:17:30 AM

Title: aMule CVS and Freebsd
Post by: livebrain 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


Title: Re: aMule CVS and Freebsd
Post by: wuischke on August 24, 2007, 10:59:24 AM
Hi livebrain,

Do you use flex 2.5.33?
Title: Re: aMule CVS and Freebsd
Post by: livebrain 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
Title: Re: aMule CVS and Freebsd
Post by: wuischke 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.
Title: Re: aMule CVS and Freebsd
Post by: gnazio 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.


Title: Re: aMule CVS and Freebsd
Post by: livebrain 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...
Title: Re: aMule CVS and Freebsd
Post by: gugus 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