aMule Forum
English => en_Bugs => Topic started by: Shad on December 28, 2003, 03:28:46 AM
-
Hello,
I don't make a amule client in freebsd 4.9 with gcc 3.3.3, I have patched with other post and this part work, but I have another bug of compilation with this message :
WebServer.cpp:172: warning: #warning implementation still old one..
WebServer.cpp:178: warning: #warning implementation still old one..
WebServer.cpp:1188: warning: #warning this will need totally new PartFile and Knownfile to wo
WebServer.cpp:1325: warning: #warning wxPostEvent here
WebServer.cpp:1406: warning: #warning logtext is private
WebServer.cpp:1459: warning: #warning Wonder what IsAutoUpPriority is.. needs newer knownfile
WebServer.cpp:1756: warning: #warning logtext is private
WebServer.cpp:1766: warning: #warning FATAL. Trying to call main threads method
WebServer.cpp:1768: warning: #warning logtext is private
WebServer.cpp:1839: warning: #warning logtext is private
WebServer.cpp:1858: warning: #warning cant do this
WebServer.cpp:1862: warning: #warning cant do this
WebServer.cpp:1871: warning: #warning We dont even have decent debug log
WebServer.cpp:2360: warning: #warning no insert in wxstring
WebServer.cpp:2377: warning: #warning PartFile needs work.
WebServer.cpp: In function `static void CWebServer::_SetSharedFilePriority(wxString, unsigned
WebServer.cpp:170: warning: comparison is always true due to limited range of data type
WebServer.cpp: In function `static class wxString CWebServer::_GetGraphs(ThreadData)':
WebServer.cpp:1684: warning: assignment to `int' from `float'
WebServer.cpp:1693: warning: assignment to `int' from `float'
WebServer.cpp: In function `static bool CWebServer::IsSessionAdmin(ThreadData, wxString)':
WebServer.cpp:2262: implicit declaration of function `int atoll(...)'
WebServer.cpp:2262: warning: cannot pass objects of type `wxString' through `...'
WebServer.cpp: In function `static class wxString CWebServer::_GetDownloadGraph(ThreadData, w
WebServer.cpp:2348: warning: initialization to `int' from `float'
WebServer.cpp:2350: warning: initialization to `int' from `float'
gmake[2]: *** [amule-WebServer.o] Error 1
gmake[2]: Leaving directory `/usr/home/olivier/aMule-1.2.1/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/olivier/aMule-1.2.1'
gmake: *** [all] Error 2
Thanks for a fix
-
Are before this part errors too?
-
I see no error there. Just warnings.
Need the lines before.
-
Original von Kry
I see no error there. Just warnings.
Need the lines before.
My compilation also stops at WebServer.cpp:
make[2]: Entering directory `/tmp/aMule-1.2.3/src'
source='WebServer.cpp' object='amuleweb-WebServer.o' libtool=no \
depfile='.deps/amuleweb-WebServer.Po' tmpdepfile='.deps/amuleweb-WebServer.TPo' \
depmode=gcc /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/wx/include/base-2.4 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DRELEASE_GROUP_MODE -I/usr/local/include -g -c -o amuleweb-WebServer.o `test -f 'WebServer.cpp' || echo './'`WebServer.cpp
WebServer.cpp:698: warning: #warning TODO: _SetSharedFilePriority
WebServer.cpp:1944: warning: #warning FIXME file priorities
WebServer.cpp:2243: warning: #warning wxPostEvent here
WebServer.cpp:2699: warning: #warning TODO implement this
WebServer.cpp:2711: warning: #warning TODO implement this
WebServer.cpp:2785: warning: #warning cant do this
WebServer.cpp:2832: warning: #warning cant do this
WebServer.cpp:2854: warning: #warning cant do this
WebServer.cpp:3217: warning: #warning cant do this
WebServer.cpp: In function `static class wxString CWebServer::_GetTransferList(ThreadData)':
WebServer.cpp:1962: ambiguous overload for `bool ? wxString & : const char[1]'
WebServer.cpp:1962: candidates are: operator ?:(bool, wxString, wxString)
WebServer.cpp:1962: operator ?:(bool, const wxChar *, const char *)
WebServer.cpp:1962: operator ?:(bool, const wxChar *, const char *)
make[2]: *** [amuleweb-WebServer.o] Error 1
make[2]: Leaving directory `/tmp/aMule-1.2.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/aMule-1.2.3'
make: *** [all] Error 2
-
I've got exact the same error.
Version of GCC : "gcc (GCC) 3.3.3 20031206 (prerelease) (Debian)"
-
To be able to compile this file, you should replace the line 1962 by :
Out.Replace("[ClearCompletedButton]",(completedAv && IsSessionAdmin(Data,sSession))?pThis->m_Templates.sClearCompleted :wxString(""));
I just changed the "" by wxString(""). It should work...
This error seems to come for people with gcc 3.3.3.