aMule Forum

English => Compilation problems => Topic started by: IhmSelbst on June 10, 2006, 07:41:12 AM

Title: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: IhmSelbst on June 10, 2006, 07:41:12 AM
Hi,
as mentioned above, todays CVS dies during 'make' on SuSE 10.0 and 9.3

Its last words:

Quote
In file included from CFile.h:29,
                 from PartFile.h:34,
                 from ThreadTasks.cpp:32:
SafeFile.h:204:2: warning: #warning DOCS
ThreadTasks.cpp:309:10: warning: #warning Thread-safety needed
ThreadTasks.cpp:427:18: warning: #warning Thread-safety needed
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/local/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/local/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1   -DwxUSE_GUI=0  -I./libs -Ilibs -DAMULE_DAEMON  -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef   -MT amuled-BaseClient.o -MD -MP -MF ".deps/amuled-BaseClient.Tpo" -c -o amuled-BaseClient.o `test -f 'BaseClient.cpp' || echo './'`BaseClient.cpp; \
then mv -f ".deps/amuled-BaseClient.Tpo" ".deps/amuled-BaseClient.Po"; else rm -f ".deps/amuled-BaseClient.Tpo"; exit 1; fi
In file included from CFile.h:29,
                 from PartFile.h:34,
                 from amule.cpp:78:
SafeFile.h:204:2: warning: #warning DOCS
In file included from amule.cpp:79:
FriendList.h:63:10: warning: #warning THIS MUST BE MADE PRIVATE AFTER EC IS CODED
In file included from amule.cpp:93:
UPnP.h:38:23: upnp/upnp.h: No such file or directory
In file included from amule.cpp:93:
UPnP.h:115: error: `IXML_Element' was not declared in this scope
UPnP.h:115: error: `element' was not declared in this scope
UPnP.h:115: error: invalid data member initialization
UPnP.h:115: error: (use `=' to initialize static data members)
UPnP.h:117: error: `IXML_Element' was not declared in this scope
UPnP.h:117: error: `element' was not declared in this scope
UPnP.h:117: error: syntax error before `tag'
UPnP.h:118: error: syntax error before `*' token
UPnP.h:120: error: syntax error before `*' token
UPnP.h:123: error: `IXML_Element' was not declared in this scope
UPnP.h:123: error: `element' was not declared in this scope
UPnP.h:123: error: syntax error before `tag'
UPnP.h:126: error: syntax error before `*' token
UPnP.h:127: error: syntax error before `*' token
UPnP.h:128: error: `m_ixmlNode_getNodeName' was not declared in this scope
UPnP.h:128: error: `IXML_Node' was not declared in this scope
UPnP.h:128: error: `nodeptr' was not declared in this scope
UPnP.h:128: error: variable declaration is not allowed here
UPnP.h:129: error: `m_ixmlNode_getNodeValue' was not declared in this scope
UPnP.h:129: error: `IXML_Node' was not declared in this scope
UPnP.h:129: error: `nodeptr' was not declared in this scope
UPnP.h:129: error: variable declaration is not allowed here
UPnP.h:130: error: syntax error before `*' token
UPnP.h:131: error: `IXML_Document' was not declared in this scope
UPnP.h:131: error: `doc' was not declared in this scope
UPnP.h:131: error: variable declaration is not allowed here
UPnP.h:132: error: syntax error before `*' token
UPnP.h:134: error: `IXML_NamedNodeMap' was not declared in this scope
UPnP.h:134: error: `nnMap' was not declared in this scope
UPnP.h:134: error: variable declaration is not allowed here
UPnP.h:142: error: `Upnp_FunPtr' was not declared in this scope
UPnP.h:142: error: syntax error before `,' token
UPnP.h:144: error: `UpnpClient_Handle' was not declared in this scope
UPnP.h:144: error: syntax error before `)' token
UPnP.h:145: error: `UpnpClient_Handle' was not declared in this scope
UPnP.h:145: error: syntax error before `,' token
UPnP.h:147: error: `UpnpClient_Handle' was not declared in this scope
UPnP.h:147: error: syntax error before `,' token
UPnP.h:149: error: `UpnpClient_Handle' was not declared in this scope
UPnP.h:149: error: syntax error before `,' token
UPnP.h:150: error: syntax error before `*' token
UPnP.h:152: error: `IXML_Document' was not declared in this scope
UPnP.h:152: error: `ActionDoc' was not declared in this scope
UPnP.h:152: error: syntax error before `*' token
UPnP.h:154: error: `UpnpClient_Handle' was not declared in this scope
UPnP.h:154: error: syntax error before `,' token
UPnP.h:157: error: type specifier omitted for parameter `IXML_Document'
UPnP.h:157: error: syntax error before `*' token
UPnP.h:169: error: type specifier omitted for parameter `IXML_Element'
UPnP.h:169: error: syntax error before `*' token
UPnP.h:177: error: type specifier omitted for parameter `IXML_Element'
UPnP.h:177: error: syntax error before `*' token
UPnP.h:177: confused by earlier errors, bailing out
make[3]: *** [amuled-amule.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from MemFile.h:30,
                 from BaseClient.cpp:45:
SafeFile.h:204:2: warning: #warning DOCS
In file included from BaseClient.cpp:57:
FriendList.h:63:10: warning: #warning THIS MUST BE MADE PRIVATE AFTER EC IS CODED
make[3]: Leaving directory `/usr/src/packages/BUILD/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/amule-cvs'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.90138 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.90138 (%build)


cu
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Gerd78 on June 10, 2006, 09:58:58 AM
That's because of the new UPnP support. It doesn't seem to have autoconf integration yet.
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: stefanero on June 10, 2006, 10:09:52 AM
evil phoenix  :rolleyes:
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Gerd78 on June 10, 2006, 10:36:55 AM
Install libupnp-1.4.0.tar.gz from

http://sourceforge.net/projects/pupnp/

and try again.
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: thedude0001 on June 10, 2006, 10:46:41 AM
Slow there, no need to install any external library. From what I can see (and my limited knowledge) this is just an error gcc 3.4+ spews out due to stricter checks and wasn't picked up when pho3nix tested it with gcc-3.3.

Just use yesterdays snapshot, the UPnP-implementation isn't functional yet and that was all that was added the last three days. And i guess once it is finished it won't need an external library.
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Gerd78 on June 10, 2006, 10:49:44 AM
thedude0001, look at the error:
Code: [Select]
UPnP.h:38:23: upnp/upnp.h: No such file or directoryIt definitely looks for an external header file.

Might be a leftover, I don't know. I was already starting to work on a package, but let's wait and see. ;)

Btw. the gcc-3.3 vs. gcc-3.4 thing is unlogical because 9.3 has gcc-3.3. 10.0 has gcc-4.0, and it fails with both.
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: OldFrog on June 10, 2006, 11:36:39 AM
Same punishment on Mandriva 2006.0 :

Quote
UPnP.h:38:23: error: upnp/upnp.h: Aucun fichier ou répertoire de ce type
UPnP.h:115: error: 'IXML_Element' has not been declared
UPnP.h:117: error: 'IXML_Element' has not been declared
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Gerd78 on June 10, 2006, 11:39:15 AM
OldFrog, Mandriva ships with upnp headers already. Could you please install libupnp0-devel and see if it compiles then? Running ./configure again should not be necessary.
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Vollstrecker on June 10, 2006, 11:52:30 AM
Same her on debian.
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: OldFrog on June 10, 2006, 12:18:10 PM
Quote
Originally posted by Gerd78
OldFrog, Mandriva ships with upnp headers already. Could you please install libupnp0-devel and see if it compiles then? Running ./configure again should not be necessary.

Exactly what I was doing :D Actually libupnp0-devel-1.2.1a, provided by plf.

Anyway, I get a lot of errors :

Quote
In file included from /usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../inc
lude/c++/4.0.1/memory:60,
                 from /usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../inc
lude/c++/4.0.1/string:47,
                 from /usr/include/wx-2.7/wx/string.h:170,
                 from UPnP.h:41,
                 from UPnP.cpp:30:
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
289:22: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
291:22: error: macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
319:23: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
321:23: error: macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
373:23: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
375:23: error: macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
424:30: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
426:30: error: macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
475:32: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
477:32: error: macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
526:26: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
528:26: error: macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
577:24: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
579:24: error: macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
628:33: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
630:33: error: macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
679:22: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
681:22: error: macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
730:31: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
732:31: error: macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
781:23: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
783:23: error: macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
832:32: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
834:32: error: macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
883:28: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
885:28: error: macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
934:37: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
936:37: error: macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
985:24: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
987:24: error: macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
1042:25: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
1044:25: error: macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
1099:30: error: macro "min" requires 2 arguments, but only 1 given
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
1101:30: error: macro "max" requires 2 arguments, but only 1 given
In file included from /usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../inc
lude/c++/4.0.1/string:47,
                 from /usr/include/wx-2.7/wx/string.h:170,
                 from UPnP.h:41,
                 from UPnP.cpp:30:
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/memory:
76:62: error: macro "max" requires 2 arguments, but only 1 given
UPnP.cpp:551:2: warning: #warning Chech this limit.
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
289: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
291: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
291: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
294: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
319: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
321: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
321: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
324: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
373: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
375: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
375: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
378: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
424: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
426: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
426: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
429: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
475: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
477: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
477: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
480: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
526: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
528: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
528: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
531: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
577: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
579: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
579: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
582: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
628: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
630: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
630: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
633: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
679: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
681: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
681: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
684: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
730: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
732: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
732: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
735: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
781: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
783: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
783: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
786: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
832: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
834: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
834: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
837: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
883: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
885: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
885: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
888: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
934: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
936: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
936: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
939: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
985: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
987: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
987: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
990: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
1042: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
1044: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
1044: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
1047: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
1099: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
1101: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
1101: error: expected ';' before 'throw'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/limits:
1104: error: expected `;' before 'static'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/memory:
 In function 'std::pair<_Tp*, ptrdiff_t> std::__get_temporary_buffer(ptrdiff_t,
_Tp*)':
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/memory:
76: error: 'max' is not a member of 'std::numeric_limits'
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/ba
sic_string.h: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>
::compare(const std::basic_string<_CharT, _Traits, _Alloc>&) const':
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/ba
sic_string.h:1925: error: expected unqualified-id before '(' token
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/st
l_algo.h: In function 'void std::__merge_sort_loop(_RandomAccessIterator1, _Rand
omAccessIterator1, _RandomAccessIterator2, _Distance)':
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/st
l_algo.h:3088: error: expected unqualified-id before '(' token
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/st
l_algo.h: In function 'void std::__merge_sort_loop(_RandomAccessIterator1, _Rand
omAccessIterator1, _RandomAccessIterator2, _Distance, _Compare)':
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/st
l_algo.h:3111: error: expected unqualified-id before '(' token
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/ba
sic_string.tcc: In member function 'typename std::basic_string<_CharT, _Traits,
_Alloc>::size_type std::basic_string<_CharT, _Traits, _Alloc>::rfind(const _Char
T*, typename _Alloc::size_type, typename _Alloc::size_type) const':
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/ba
sic_string.tcc:753: error: expected unqualified-id before '(' token
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/ba
sic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Allo
c>::compare(typename _Alloc::size_type, typename _Alloc::size_type, const std::b
asic_string<_CharT, _Traits, _Alloc>&) const':
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/ba
sic_string.tcc:890: error: expected unqualified-id before '(' token
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/ba
sic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Allo
c>::compare(typename _Alloc::size_type, typename _Alloc::size_type, const std::b
asic_string<_CharT, _Traits, _Alloc>&, typename _Alloc::size_type, typename _All
oc::size_type) const':
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/ba
sic_string.tcc:907: error: expected unqualified-id before '(' token
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/ba
sic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Allo
c>::compare(const _CharT*) const':
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/ba
sic_string.tcc:923: error: expected unqualified-id before '(' token
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/ba
sic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Allo
c>::compare(typename _Alloc::size_type, typename _Alloc::size_type, const _CharT
*) const':
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/ba
sic_string.tcc:939: error: expected unqualified-id before '(' token
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/ba
sic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Allo
c>::compare(typename _Alloc::size_type, typename _Alloc::size_type, const _CharT
*, typename _Alloc::size_type) const':
/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/bits/ba                                                                           sic_string.tcc:955: error: expected unqualified-id before '(' token
UPnP.cpp: At global scope:
UPnP.cpp:518: warning: unused parameter 'ServiceName'
UPnP.cpp:518: warning: unused parameter 'ArgValue'
UPnP.cpp: In member function 'bool CUPnPControlPoint::AcquirePortList(const amul                                                                           eIPV4Address*, int)':
UPnP.cpp:710: warning: unused variable 'protocol'
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Kry on June 10, 2006, 01:24:38 PM
*yawn*

Do I have to do EVERYTHING for you, guys? :P
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Gerd78 on June 10, 2006, 10:01:31 PM
I've made a simple spec file, use it to build RPMs as you wish.

There are still some bugs to fix that might need patches (RPM_OPT_FLAGS being overwritten, C++ comments in C headers, doc files with DOS line endings and non-UTF-8 encodings, ...), but these are minor.
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Kry on June 10, 2006, 10:35:52 PM
There's no real need for libupnp for building (as of tomorrow), but yes for USING UPnP. just a warning.
Title: aMule-CVS-20060611 dies during 'make' on SuSE 10.0 and 9.3
Post by: IhmSelbst on June 11, 2006, 08:20:01 AM
Well, after all, only the errors changed a bit with today´s cvs:
Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/local/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/local/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1   -DwxUSE_GUI=0  -I./libs -Ilibs -DAMULE_DAEMON  -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef   -MT amuled-Kademlia.o -MD -MP -MF ".deps/amuled-Kademlia.Tpo" -c -o amuled-Kademlia.o `test -f 'kademlia/kademlia/Kademlia.cpp' || echo './'`kademlia/kademlia/Kademlia.cpp; \
then mv -f ".deps/amuled-Kademlia.Tpo" ".deps/amuled-Kademlia.Po"; else rm -f ".deps/amuled-Kademlia.Tpo"; exit 1; fi
UPnP.cpp: In constructor `CUPnPLib::CUPnPLib(CUPnPControlPoint&)':
UPnP.cpp:144: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:147: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:150: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:153: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:156: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:159: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:162: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:165: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:170: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:173: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:176: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:179: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:182: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:185: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:188: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:191: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:194: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:197: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:200: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:203: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:207: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:210: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp:213: error: ISO C++ forbids casting between pointer-to-function and
   pointer-to-object
UPnP.cpp: In member function `const wxString CUPnPService::Execute(const
   wxString&, const std::vector   std::allocator >&) const':
UPnP.cpp:518: warning: unused parameter `const wxString&ServiceName'
UPnP.cpp:518: warning: unused parameter `const std::vector   std::allocator >&ArgValue'
UPnP.cpp:550:2: warning: #warning Chech this limit.
UPnP.cpp: In member function `bool CUPnPControlPoint::AcquirePortList(const
   amuleIPV4Address*, int)':
UPnP.cpp:709: warning: unused variable `char*protocol[4]'
make[3]: *** [amuled-UPnP.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/usr/src/packages/BUILD/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/amule-cvs'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.74033 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.74033 (%build)


btw:
Quote
... Does aMule support Universal Plug and Play (UPnP)?

Short answer: No.

Long answer: Universal Plug and Play is a severe security bug in any system supporting it so it is extremely recommended not to enable UPnP in any device (even the FBI says so!). So, if it should not be enabled, there is no sense for any application to support it, since it should not be used. ...
--> aMule and UPnP? (http://www.amule.org/wiki/index.php/FAQ_aMule#Does_aMule_support_Universal_Plug_and_Play_(UPnP)?) :] ;( ?(


cu
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: OldFrog on June 11, 2006, 12:24:39 PM
And I get this one (With UPnp-devel from PLF):

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
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Coronas 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
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Kry 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.
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: kreegee 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.
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: OldFrog 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
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Coronas 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
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Gerd78 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
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: toshi 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.
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Gerd78 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).
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: toshi 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
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: stefanero on June 12, 2006, 02:55:59 PM
flex dont matter, kry has a debian specific flex version which most other distros dont have
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: toshi on June 12, 2006, 05:32:28 PM
So, all aMulers should move to deb.?  :D
I don't want to!
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: stefanero 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!!!
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: OldFrog 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
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Gerd78 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.
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: stefanero on June 13, 2006, 07:55:29 AM
$ flex --version
flex 2.5.33
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: OldFrog on June 13, 2006, 08:28:13 AM
Installed bison 2.3, flex is the last version (Dated 2003 anyway), tried Coronas's suggestion too, still no way, I'm still getting this one :

./Scanner.l:191: error: 'yylex_destroy' was not declared in this scope
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Kry on June 13, 2006, 09:10:00 PM
It's fixed on tomorow's tarball.

You should all use debian anyway :P
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: toshi on June 13, 2006, 09:13:22 PM
It's meanly! I don't want to use deb.! X(
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Kry on June 13, 2006, 10:05:57 PM
You don't have to, I already changed sources so you can compile tomorrow's tarball.

But if you did, you wouldn't have had any problem in the first place :P
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: stefanero on June 13, 2006, 10:16:25 PM
it worked on gentoo aswell :P

go gentoo go  :rolleyes:
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: toshi on June 14, 2006, 12:29:06 AM
Ah ) Waiting for aMule-CVS-20060614  :rolleyes:
Title: aMule-CVS-20060610 - 20060614 dies during 'make' on SuSE 10.0 and 9.3
Post by: IhmSelbst on June 14, 2006, 08:04:17 AM
Nice. (http://bilder.parsimony.net/smilies/feuer.gif) But it stays useless on my SuSE9.3 and 10.0 systems anyway:
Code: [Select]
...
rm -f libmuleappgui.a
ar cru libmuleappgui.a libmuleappgui_a-BarShader.o libmuleappgui_a-CatDialog.o libmuleappgui_a-ChatWnd.o libmuleappgui_a-CommentDialog.o libmuleappgui_a-CommentDialogLst.o libmuleappgui_a-DirectoryTreeCtrl.o libmuleappgui_a-EditServerListDlg.o libmuleappgui_a-listctrl.o libmuleappgui_a-MuleGifCtrl.o libmuleappgui_a-MuleListCtrl.o libmuleappgui_a-MuleNotebook.o libmuleappgui_a-MuleTextCtrl.o libmuleappgui_a-FileDetailListCtrl.o libmuleappgui_a-muuli_wdr.o libmuleappgui_a-ColorFrameCtrl.o
ranlib libmuleappgui.a
rm -f libmuleappcommon.a
ar cru libmuleappcommon.a libmuleappcommon_a-CFile.o libmuleappcommon_a-DataToText.o libmuleappcommon_a-ED2KLink.o libmuleappcommon_a-FileFunctions.o libmuleappcommon_a-MemFile.o libmuleappcommon_a-NetworkFunctions.o libmuleappcommon_a-Packet.o libmuleappcommon_a-RLE.o libmuleappcommon_a-SafeFile.o libmuleappcommon_a-SHA.o libmuleappcommon_a-Tag.o libmuleappcommon_a-Timer.o libmuleappcommon_a-UInt128.o libmuleappcommon_a-CryptoPP.o
Scanner.cpp:527:5: warning: "YY_STACK_USED" is not defined
Scanner.cpp:1465:5: warning: "YY_ALWAYS_INTERACTIVE" is not defined
Scanner.cpp:1759: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
ED2KLink.h: At top level:
Scanner.cpp:1663: warning: `void yy_fatal_error(const char*)' defined but not
   used
make[3]: *** [libmuleappcore_a-Scanner.o] Error 1
make[3]: *** Waiting for unfinished jobs....
ranlib libmuleappcommon.a
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/usr/src/packages/BUILD/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/amule-cvs'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.3408 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.3408 (%build)


cu
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Gerd78 on June 14, 2006, 10:04:11 AM
IhmSelbst, you say that it doesn't build on 10.0 and 9.3, but what does that mean? That you tried it on 10.0 and 9.3 only or that it builds OK on 10.1?
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: kreegee on June 14, 2006, 02:58:54 PM
9.3 doesn't have gcc4, therefore it (at least the version of the weekend) doesn't compile anymore. don't know about 10 though
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Kry on June 14, 2006, 04:35:54 PM
Hey, I gave it to testers and they tested! Not my fault!
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: toshi on June 14, 2006, 06:06:35 PM
Same here. -)
Code: [Select]
./Scanner.l:191: error: ‘yylex_destroy’ was not declared in this scope
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: kreegee on June 14, 2006, 07:25:10 PM
Quote
Originally posted by Kry
Hey, I gave it to testers and they tested! Not my fault!

did you remove the gcc4 stuff? todays version seems to work. (after touching Scanner.* again - i still get the "‘yylex_destroy’ was not declared in this scope"-and-so-on-error with the pure hirnriss-tarball)
Title: aMule-CVS-20060610 - 20060614 dies during 'make' on SuSE 10.0 and 9.3
Post by: IhmSelbst on June 15, 2006, 05:09:39 AM
Quote
Originally posted by Gerd78
IhmSelbst, you say that it doesn't build on 10.0 and 9.3, but what does that mean? That you tried it on 10.0 and 9.3 only or that it builds OK on 10.1?
Hi Gerd78,
this means, that CVS died during 'make' on SuSE9.3 and SuSE10.0 with the posted errors, but everything works fine on SuSE10.1


cu
Title: aMule-CVS-20060610 - 20060616 dies during 'make' on SuSE 10.0 and 9.3
Post by: Vuffel on June 16, 2006, 08:47:09 PM
Any remedy for this??
todays 20060616 dies on same error.
SuSe 10.0 x86_64
Title: yylex_destroy error on compiling
Post by: andre.goddard on June 17, 2006, 02:25:17 PM
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.
Title: RE: yylex_destroy error on compiling
Post by: OldFrog 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
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Gerd78 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. ;)
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: toshi 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()'
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: andre.goddard 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!
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: toshi on June 18, 2006, 12:04:44 AM
flex does? )
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: andre.goddard 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.
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: andre.goddard 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()
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Vollstrecker 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.
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: OldFrog 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 (http://www.oldfrog.info/Linux/RPMs/).

Kry, amule-CVS rpms in the usual place ;)
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: IhmSelbst 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 (http://rapidshare.de/files/23461341/flex-2.5.33-0.i586.SuSE_9.3.rpm.html)
flex-2.5.33-0.SuSE_10.0.i586.rpm (http://rapidshare.de/files/23461411/flex-2.5.33-0.SuSE_10.0.i586.rpm.html)


cu
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: toshi 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.
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: Gerd78 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 ;)
Title: Re: aMule-CVS-20060610 dies during 'make' on SuSE 10.0 and 9.3
Post by: OldFrog 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