aMule Forum
English => Compilation problems => Topic started 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:
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
-
That's because of the new UPnP support. It doesn't seem to have autoconf integration yet.
-
evil phoenix :rolleyes:
-
Install libupnp-1.4.0.tar.gz from
http://sourceforge.net/projects/pupnp/
and try again.
-
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.
-
thedude0001, look at the error:
UPnP.h:38:23: upnp/upnp.h: No such file or directory
It 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.
-
Same punishment on Mandriva 2006.0 :
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
-
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.
-
Same her on debian.
-
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 :
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'
-
*yawn*
Do I have to do EVERYTHING for you, guys? :P
-
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.
-
There's no real need for libupnp for building (as of tomorrow), but yes for USING UPnP. just a warning.
-
Well, after all, only the errors changed a bit with today´s cvs:
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:
... 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
-
And I get this one (With UPnp-devel from PLF):
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
-
Hi,
I've got a similar error when crosscompiling - here the output from the 20060611-tarball:
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
...
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
-
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.
-
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.
-
Same problem with today's release on Scanner.cpp.
Tried touch Scanner.* no way
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
-
@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
-
Instead of
touch Scanner.*
try this, in exactly this order:
touch Parser.y
sleep 1
touch Scanner.l
sleep 1
touch Parser.cpp Parser.hpp
sleep 1
touch Scanner.cpp Scanner.h
-
Same problems in 'Scanner.cpp' (aMule-CVS-20060612, aMule-CVS-20060611), but on Fedora Core 5... "Touching" didn't help.
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.
-
toshi, what exactly did you touch and in which order?
Btw, there is an alternate approach:
rm -f Parser.cpp Parser.hpp Scanner.cpp Scanner.h
This 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).
-
Gerd78, thanks! I'll try now.
[some time passed]
Didn't help too ?(
Could this be the result of incorrect flex operation?
configure: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended
Thought iit IS critical if so -)
PS:
gcc-4.1.1-1.fc5
bison-2.1-2.FC5
flex-2.5.4a-37.4
-
flex dont matter, kry has a debian specific flex version which most other distros dont have
-
So, all aMulers should move to deb.? :D
I don't want to!
-
compiles fne here, and I get the same flex error, its nothing todo with it ;)
gentoo ftw!!!
-
Gave a try to rm -f Parser.h Parser.cpp Scanner.h Scanner.cpp
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
-
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.
-
$ flex --version
flex 2.5.33
-
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
-
It's fixed on tomorow's tarball.
You should all use debian anyway :P
-
It's meanly! I don't want to use deb.! X(
-
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
-
it worked on gentoo aswell :P
go gentoo go :rolleyes:
-
Ah ) Waiting for aMule-CVS-20060614 :rolleyes:
-
Nice. (http://bilder.parsimony.net/smilies/feuer.gif) But it stays useless on my SuSE9.3 and 10.0 systems anyway:
...
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
-
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?
-
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
-
Hey, I gave it to testers and they tested! Not my fault!
-
Same here. -)
./Scanner.l:191: error: ‘yylex_destroy’ was not declared in this scope
-
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)
-
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
-
Any remedy for this??
todays 20060616 dies on same error.
SuSe 10.0 x86_64
-
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.
-
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 :
./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
-
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. ;)
-
Still can't compile aMule-CVS-20060617:
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"'
./libmuleappcore.a(libmuleappcore_a-Scanner.o): In function `LexFree()':
Scanner.cpp:(.text+0x247): undefined reference to `yylex_destroy()'
-
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!
-
flex does? )
-
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.
-
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()
-
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.
-
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 ;)
-
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
-
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.
-
- 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 ;)
-
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