aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 2 3 [4]

Author Topic: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3  (Read 22576 times)

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
RE: yylex_destroy error on compiling
« Reply #45 on: June 17, 2006, 03:41:26 PM »

Quote
Originally posted by andre.goddard
This copy/touch trick doesn`t work to me using CVS-20060617.

I had to edit src/Scanner.l and add in the first lines:

#include "Scanner.h.in"

Now it compiled fine.


Same for me (Sorry, was gone for job for a little week)


Anyway, when linking :

Quote
./libmuleappcore.a(libmuleappcore_a-Scanner.o): In function `LexFree()':
./Scanner.l:192: undefined reference to `yylex_destroy()'
collect2: ld returned 1 exit status
make[3]: *** [amuled] Erreur 1
« Last Edit: June 17, 2006, 03:56:36 PM by OldFrog »
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #46 on: June 17, 2006, 03:59:06 PM »

After applying this hack, could you please check if your aMule crashes on the second search? Just perform a local search for anything and a global search for something else immediately afterwards. I'm just a little bit curious. ;)
Logged

toshi

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 67
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #47 on: June 17, 2006, 05:39:03 PM »

Still can't compile aMule-CVS-20060617:
Quote
Scanner.cpp:536:5: warning: "YY_STACK_USED" is not defined
Scanner.cpp:1470:5: warning: "YY_ALWAYS_INTERACTIVE" is not defined
Scanner.cpp:1764:5: warning: "YY_MAIN" is not defined
./Scanner.l:205:5: warning: "YY_STACK_USED" is not defined
./Scanner.l: In function ‘void LexFree()’:
./Scanner.l:191: error: ‘yylex_destroy’ was not declared in this scope
Scanner.cpp: At global scope:
Scanner.cpp:1663: warning: ‘void yy_fatal_error(const char*)’ defined but not used

With '#include "Scanner.h.in"'
Quote
./libmuleappcore.a(libmuleappcore_a-Scanner.o): In function `LexFree()':
Scanner.cpp:(.text+0x247): undefined reference to `yylex_destroy()'
Logged
God is real, unless declared as integer...

andre.goddard

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #48 on: June 17, 2006, 09:17:31 PM »

Okey, I got the very same problem, just finished compiling but it is not linking.

Who defines the symbol yylex_destroy? I tried nm'ing the libraries but could not find it.

Thanks!
Logged

toshi

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 67
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #49 on: June 18, 2006, 12:04:44 AM »

flex does? )
Logged
God is real, unless declared as integer...

andre.goddard

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #50 on: June 18, 2006, 02:33:16 AM »

I installed the latest flex from sourceforge.net/projects/flex/.
They have a strange version nomenclature.. 2.5.4a is older than 2.5.33.

Altought I could not find yylex_destroy() symbol in the newer flex library that I compiled,
it linked successfully and I got a working executable now.
« Last Edit: June 18, 2006, 02:34:57 AM by andre.goddard »
Logged

andre.goddard

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #51 on: June 18, 2006, 03:08:07 AM »

Okey, the symbol got defined inside amule sources with the new flex:

doctorture:/opt/downloads/amule-cvs # nm -C src/libmuleappcore_a-Scanner.o | grep yylex_destroy
00000548 T yylex_destroy()
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1550
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #52 on: June 18, 2006, 10:43:10 AM »

Quote
Originally posted by andre.goddard
They have a strange version nomenclature.. 2.5.4a is older than 2.5.33.

Why?  You are in decimal system, not in hex. 4a is mostlikely a fix for 4 and smaller than 33.
Logged
Homefucking is killing prostitution

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #53 on: June 18, 2006, 02:48:50 PM »

Installed latest versions of flex and bison and everything went fine. As no RPM exist for mandriva for those, I built some. For those interested, grab them from here.

Kry, amule-CVS rpms in the usual place ;)
« Last Edit: June 18, 2006, 08:41:56 PM by OldFrog »
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

IhmSelbst

  • Full Member
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 220
    • http://www.ed2k-serverboard.de/
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #54 on: June 19, 2006, 06:26:37 AM »

Quote
Originally posted by OldFrog
Installed latest versions of flex and bison and everything went fine. ...
After upgrading flex to v.2.5.33, (and leaving the bisons as they were,) all seemed to work fine here.
Here the --version outputs before upgrading flex:
10.1 (all left untouched, because it already worked before):
gcc (GCC) 4.1.0 (SUSE Linux)
bison (GNU Bison) 2.1
flex 2.5.31

10.0:
gcc 4.0.2 20050901 (prerelease) (SUSE Linux)
bison (GNU Bison) 1.875
flex 2.5.4

9.3:
gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux)
bison (GNU Bison) 1.875
flex version 2.5.4

If someone should need the (32 bit).rpms for SuSE 9.3 and 10.0:
flex-2.5.33-0.i586.SuSE_9.3.rpm
flex-2.5.33-0.SuSE_10.0.i586.rpm


cu

toshi

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 67
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #55 on: June 19, 2006, 07:54:25 AM »

Compiled CVS at last... Just got flex from last src tarball (http://flex.sourceforge.net/). But for me it's very interesting why binaries provided by distro are versioned higher then flex's project files on sourceforge.
Logged
God is real, unless declared as integer...

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #56 on: June 19, 2006, 11:42:21 AM »

- They are not versioned higher - 2.5.33 is higher than 2.5.4 because 33 > 4

- Actually I'm not sure if upgrading flex for a single application is really a good idea, but let's see ;)
Logged

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #57 on: June 19, 2006, 07:46:39 PM »

Quote
Originally posted by Gerd78
- Actually I'm not sure if upgrading flex for a single application is really a good idea, but let's see ;)

Because Project Management = Despotism :P
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)
Pages: 1 2 3 [4]