You are not logged in.

#1 2012-08-18 09:09:21

myth88
Member
Registered: 2012-08-18
Posts: 4

[SOLVED] Can't build aMule SVN, Scanner.cpp

Hi People, I'm having an problem to build actual (but also older) revision of aMule SVN.

I asked also in aMule forum, but it really seems to be something Arch related as others don't have this problem!

What I do is just:

svn co http://amule.googlecode.com/svn/trunk amule

cd amule
sh autogen.sh
./configure --enable-optimize --disable-debug --enable-geoip --disable-upnp
make -j4

Here are the 3 logs I get until here, and on the make one I get stuck.

autogen
configure
make

EDIT: I generated these logs with respective command > autogenlog, Here is also the normal console output from make.

I also tried to delete the Scanner.cpp file to get it regenerated by flex (hope that's right).

Any ideas?

Last edited by myth88 (2012-08-18 19:38:59)

Offline

#2 2012-08-18 11:41:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 23,693
Website

Re: [SOLVED] Can't build aMule SVN, Scanner.cpp

It's definitely an upstream bug.

I just fixed it here with the following edit to Scanner.cpp on line 578 and a similar change on 2005

- static void ReadLexBuff(char* pcBuff, int& riResult, size_t uMaxSize);
+ static void ReadLexBuff(char* pcBuff, yy_size_t riResult, size_t uMaxSize);

edit: This same edit could be made before flex parsing on lines 28 and 166 of Scanner.l

edit: FYI, I know this compiles without error.  I don't, however, know what amule is nor what it does - so I cant/wont test it to see if the resulting binary works as intended.

Last edited by Trilby (2012-08-18 11:49:38)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2012-08-18 12:39:42

myth88
Member
Registered: 2012-08-18
Posts: 4

Re: [SOLVED] Can't build aMule SVN, Scanner.cpp

Hi Trilby!

Thanks a lot for fixing this! The resulting binary works flawless!

I'll forward this upstream bug fix to aMule's devs!
btw. aMule is a multiplatform  ed2k/kad p2p client wink

Have a nice day!

Offline

#4 2012-08-18 14:38:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 23,693
Website

Re: [SOLVED] Can't build aMule SVN, Scanner.cpp

Cool, glad it works.  You can mark the thread as [SOLVED] by editing your first post and adding that to the title.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2012-08-18 19:39:12

myth88
Member
Registered: 2012-08-18
Posts: 4

Re: [SOLVED] Can't build aMule SVN, Scanner.cpp

I did wink
Thanks!

Offline

Board footer

Powered by FluxBB