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 22617 times)

Coronas

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #15 on: June 11, 2006, 12:50:32 PM »

Hi,
I've got a similar error when crosscompiling - here the output from the 20060611-tarball:
Code: [Select]
if powerpc-tuxbox-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/tux/dreambox/root/cdkroot/lib/wx/include/powerpc-tuxbox-linux-gnu-base-unicode-release-static-2.6 -I/home/tux/dreambox/root/cdkroot/include/wx-2.6 -DwxUSE_GUI=0 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -I./libs -mcpu=405 -msoft-float -mmultiple -mstring -meabi -pipe -Os -ggdb3 -DHAVE_DREAMBOX_HARDWARE -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef   -MT libmuleappcore_a-DeadSourceList.o -MD -MP -MF ".deps/libmuleappcore_a-DeadSourceList.Tpo" -c -o libmuleappcore_a-DeadSourceList.o `test -f 'DeadSourceList.cpp' || echo './'`DeadSourceList.cpp; \
then mv -f ".deps/libmuleappcore_a-DeadSourceList.Tpo" ".deps/libmuleappcore_a-DeadSourceList.Po"; else rm -f ".deps/libmuleappcore_a-DeadSourceList.Tpo"; exit 1; fi
flex -oScanner.cpp ./Scanner.l; \
        echo "// Empty file generated by a flex version unable to create headers" > ./Scanner.h
if powerpc-tuxbox-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/tux/dreambox/root/cdkroot/lib/wx/include/powerpc-tuxbox-linux-gnu-base-unicode-release-static-2.6 -I/home/tux/dreambox/root/cdkroot/include/wx-2.6 -DwxUSE_GUI=0 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -I./libs -mcpu=405 -msoft-float -mmultiple -mstring -meabi -pipe -Os -ggdb3 -DHAVE_DREAMBOX_HARDWARE -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef   -MT libmuleappcore_a-Scanner.o -MD -MP -MF ".deps/libmuleappcore_a-Scanner.Tpo" -c -o libmuleappcore_a-Scanner.o `test -f 'Scanner.cpp' || echo './'`Scanner.cpp; \
then mv -f ".deps/libmuleappcore_a-Scanner.Tpo" ".deps/libmuleappcore_a-Scanner.Po"; else rm -f ".deps/libmuleappcore_a-Scanner.Tpo"; exit 1; fi
Scanner.cpp:527:5: warning: "YY_STACK_USED" is not defined
Scanner.cpp:1460:5: warning: "YY_ALWAYS_INTERACTIVE" is not defined
Scanner.cpp:1754:5: warning: "YY_MAIN" is not defined
./Scanner.l: In function `void LexFree()':
./Scanner.l:191: error: `yylex_destroy' undeclared (first use this function)
./Scanner.l:191: error: (Each undeclared identifier is reported only once for each function it appears in.)
./Scanner.l:205:5: warning: "YY_STACK_USED" is not defined
Scanner.cpp: At global scope:
Scanner.cpp:1658: warning: 'void yy_fatal_error(const char*)' defined but not used
make[4]: *** [libmuleappcore_a-Scanner.o] Fehler 1
And here the extract from amule-cvs-20060609
Code: [Select]
...
if powerpc-tuxbox-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/tux/dreambox/root/cdkroot/lib/wx/include/powerpc-tuxbox-linux-gnu-base-unicode-release-static-2.6 -I/home/tux/dreambox/root/cdkroot/include/wx-2.6 -DwxUSE_GUI=0 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -I./libs -mcpu=405 -msoft-float -mmultiple -mstring -meabi -pipe -Os -ggdb3 -DHAVE_DREAMBOX_HARDWARE -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef   -MT libmuleappcore_a-DeadSourceList.o -MD -MP -MF ".deps/libmuleappcore_a-DeadSourceList.Tpo" -c -o libmuleappcore_a-DeadSourceList.o `test -f 'DeadSourceList.cpp' || echo './'`DeadSourceList.cpp; \
then mv -f ".deps/libmuleappcore_a-DeadSourceList.Tpo" ".deps/libmuleappcore_a-DeadSourceList.Po"; else rm -f ".deps/libmuleappcore_a-DeadSourceList.Tpo"; exit 1; fi
if powerpc-tuxbox-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/tux/dreambox/root/cdkroot/lib/wx/include/powerpc-tuxbox-linux-gnu-base-unicode-release-static-2.6 -I/home/tux/dreambox/root/cdkroot/include/wx-2.6 -DwxUSE_GUI=0 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -I./libs -mcpu=405 -msoft-float -mmultiple -mstring -meabi -pipe -Os -ggdb3 -DHAVE_DREAMBOX_HARDWARE -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef   -MT libmuleappcore_a-Scanner.o -MD -MP -MF ".deps/libmuleappcore_a-Scanner.Tpo" -c -o libmuleappcore_a-Scanner.o `test -f 'Scanner.cpp' || echo './'`Scanner.cpp; \
then mv -f ".deps/libmuleappcore_a-Scanner.Tpo" ".deps/libmuleappcore_a-Scanner.Po"; else rm -f ".deps/libmuleappcore_a-Scanner.Tpo"; exit 1; fi
Scanner.cpp:34:5: warning: "__STDC_VERSION__" is not defined
./Scanner.l:206:5: warning: "YY_STACK_USED" is not defined
Scanner.cpp:1759: warning: 'void yy_fatal_error(const char*)' defined but not used
...
One thing which makes me wonder it that in todays cvs the hosts flex is called whereas in the 20060609-cvs Scanner.cpp seems to be taken directly from the tarball. Doesn't seen to bee related to any UPNP-stuff, though.
cu
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #16 on: June 11, 2006, 12:52:35 PM »

1) gcc 3.4 is not supported (yet)

2) Oldfrog: Uh... that's gotta be mine. Make distclean, redownload the sources, try again.you should not re-build the flxe/bison sources, dunno why it's happening.
Logged

kreegee

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 160
    • http://kreegee.cycovery.com
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #17 on: June 11, 2006, 09:15:42 PM »

oldfrog + coronas:

kry gave me this hint in the irc-chan: touch Scanner.* and try to recompile. it worked for me, although i ran into the gcc3-problem mentioned by IhmSelbst after that.
« Last Edit: June 11, 2006, 09:16:30 PM by kreegee »
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 #18 on: June 12, 2006, 07:34:57 AM »

Same problem with today's release on Scanner.cpp.

Tried touch Scanner.* no way

Quote
Scanner.cpp:527:5: warning: "YY_STACK_USED" is not defined
Scanner.cpp:1460:5: warning: "YY_ALWAYS_INTERACTIVE" is not defined
Scanner.cpp:1754: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:1653: warning: 'void yy_fatal_error(const char*)' defined but not used
« Last Edit: June 12, 2006, 07:38:23 AM by OldFrog »
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

Coronas

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #19 on: June 12, 2006, 08:28:05 AM »

@OldFrog
you have to make sure that Scanner.cpp has a newer date. I did
cp Scanner.cpp Scanner.cpp.orig
mv Scanner.cpp.orig Scanner.cpp
That solved the issue.
cu
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #20 on: June 12, 2006, 08:31:02 AM »

Instead of
Code: [Select]
touch Scanner.*try this, in exactly this order:
Code: [Select]
touch Parser.y
sleep 1
touch Scanner.l
sleep 1
touch Parser.cpp Parser.hpp
sleep 1
touch Scanner.cpp Scanner.h
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 #21 on: June 12, 2006, 10:16:55 AM »

Same problems in 'Scanner.cpp' (aMule-CVS-20060612, aMule-CVS-20060611), but on Fedora Core 5... "Touching" didn't help.
Code: [Select]
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
make[3]: *** [libmuleappcore_a-Scanner.o] Error 1
Last CVS snapshot (aMule-CVS-20060603) comiled OK.
« Last Edit: June 12, 2006, 10:18:25 AM by toshi »
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 #22 on: June 12, 2006, 10:22:05 AM »

toshi, what exactly did you touch and in which order?

Btw, there is an alternate approach:
Code: [Select]
rm -f Parser.cpp Parser.hpp Scanner.cpp Scanner.hThis will force these files to be rebuilt with your local bison and flex versions.

Kry will probably not like it, but it works here (gcc 4.1.0, bison 2.1, flex 2.5.31).
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 #23 on: June 12, 2006, 10:32:38 AM »

Gerd78, thanks! I'll try now.
[some time passed]
Didn't help too  ?(
Could this be the result of incorrect flex operation?
Code: [Select]
configure: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommendedThought iit IS critical if so -)
PS:
  gcc-4.1.1-1.fc5
  bison-2.1-2.FC5
  flex-2.5.4a-37.4
« Last Edit: June 12, 2006, 10:51:19 AM by toshi »
Logged
God is real, unless declared as integer...

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #24 on: June 12, 2006, 02:55:59 PM »

flex dont matter, kry has a debian specific flex version which most other distros dont have
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

toshi

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

So, all aMulers should move to deb.?  :D
I don't want to!
Logged
God is real, unless declared as integer...

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #26 on: June 12, 2006, 05:39:57 PM »

compiles fne here, and I get the same flex error, its nothing todo with it ;)

gentoo ftw!!!
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

OldFrog

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

Gave a try to rm -f Parser.h Parser.cpp Scanner.h Scanner.cpp

Quote
bison --debug -t -d -v -o Parser.cpp ./Parser.y
flex -oScanner.cpp ./Scanner.l; \
        echo "// Empty file generated by a flex version unable to create headers
" > ./Scanner.h
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/lib/wx/include/gtk2-unicode-releas
e-2.7 -I/usr/include/wx-2.7 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -p
thread -I./libs -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -g -ggdb -fno-in                                                                           line -D__DEBUG__ -fmessage-length=0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC                                                                              -MT libmuleappcore_a-Scanner.o -MD -MP -MF ".deps/libmuleappcore_a-Scanner.Tpo"                                                                            -c -o libmuleappcore_a-Scanner.o `test -f 'Scanner.cpp' || echo './'`Scanner.cp                                                                           p; \
then mv -f ".deps/libmuleappcore_a-Scanner.Tpo" ".deps/libmuleappcore_a-Scanner.                                                                           Po"; else rm -f ".deps/libmuleappcore_a-Scanner.Tpo"; exit 1; fi
Scanner.cpp:527:5: warning: "YY_STACK_USED" is not defined
Scanner.cpp:1460:5: warning: "YY_ALWAYS_INTERACTIVE" is not defined
Scanner.cpp:1754: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:1653: warning: 'void yy_fatal_error(const char*)' defined but not us                                                                           ed

Using

flex-2.5.4a-22mdk
bison-2.0-3mdk
gcc-4.0.1-5mdk
« Last Edit: June 12, 2006, 11:50:33 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 #28 on: June 12, 2006, 11:52:49 PM »

OK, forget my comments, they don't work. Wait for an "official" fix.

I have no idea why it works here, maybe it's really because I have flex-2.5.31 and you have flex-2.5.4a. It shouldn't matter, but it does for reasons I don't know.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
« Reply #29 on: June 13, 2006, 07:55:29 AM »

$ flex --version
flex 2.5.33
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."
Pages: 1 [2] 3 4