aMule Forum
Deutsch => aMule Hilfe => Topic started by: JanG on July 12, 2004, 09:38:49 PM
-
Ich habe zu folgedem Problem noch keine Lösung finden können. Ist wahrscheinlich wieder nu ne dumme Kleinigkeit. aMule lässt sich nicht kompilieren, der Vorgang brichtmit folgenden Meldungen ab :
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/ -D__CRYPTO_DEBIAN_GENTOO__ -Wall -g -ggdb -fno-inline -D__DEBUG__ -c -o amule-DownloadClient.o `test -f 'DownloadClient.cpp' || echo './'`DownloadClient.cpp
DownloadClient.cpp: In method `void CUpDownClient::ProcessBlockPacket(const char *, unsigned int, bool = false)':
DownloadClient.cpp:872: ambiguous overload for `CPartFile *& ? const wxString & : const char[2]'
DownloadClient.cpp:872: candidates are: operator ?:(bool, wxString, wxString)
DownloadClient.cpp:872: operator ?:(bool, const wxChar *, const char *)
DownloadClient.cpp:872: operator ?:(bool, const wxChar *, const char *)
DownloadClient.cpp: In method `int CUpDownClient::unzip(Pending_Block_Struct *, BYTE *, unsigned int, BYTE **, uint32 *, int = 0)':
DownloadClient.cpp:967: ambiguous overload for `CPartFile *& ? const wxString & : const char[2]'
DownloadClient.cpp:967: candidates are: operator ?:(bool, wxString, wxString)
DownloadClient.cpp:967: operator ?:(bool, const wxChar *, const char *)
DownloadClient.cpp:967: operator ?:(bool, const wxChar *, const char *)
DownloadClient.cpp:974: ambiguous overload for `CPartFile *& ? const wxString & : const char[2]'
DownloadClient.cpp:974: candidates are: operator ?:(bool, wxString, wxString)
DownloadClient.cpp:974: operator ?:(bool, const wxChar *, const char *)
DownloadClient.cpp:974: operator ?:(bool, const wxChar *, const char *)
make[4]: *** [amule-DownloadClient.o] Fehler 1
make[4]: Leaving directory `/root/aMule-2.0.0rc4/aMule-2.0.0rc4/src'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/root/aMule-2.0.0rc4/aMule-2.0.0rc4/src'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/root/aMule-2.0.0rc4/aMule-2.0.0rc4/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/root/aMule-2.0.0rc4/aMule-2.0.0rc4'
make: *** [all] Fehler 2
Ich habe wxGTK und wxBase beide schon mehrmals neu kompiliert und auch wie im howto beschrieben die symlinks gesetzt usw.
Distribution ist Debian sarge
Ich habs mit gcc 3.3 und 2.95 versucht
Ich hoffe mir kann jemand helfen ;)
-
Guck Dir mal http://www.amule.org/amule/thread.php?threadid=2868 an da steht die Lösung.
thermoman
-
es scheint zu funktionieren ...zumindest macht er weiter....
aber bei der webserver.cpp hat er über 1000 stellen ersetzt....is das korrekt ???
-
Ok....es lief weiter aber nicht durch :
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/wx/include/gtk-2.4 -DGTK_NO_CHEC
K_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/ -D__CRYPTO_D
EBIAN_GENTOO__ -Wall -g -ggdb -fno-inline -D__DEBUG__ -c -o amule-SearchList.o
`test -f 'SearchList.cpp' || echo './'`SearchList.cpp
SearchList.cpp: In method `CSearchFile::CSearchFile(CSearchFile *)':
SearchList.cpp:91: no matching function for call to `vectorg *> >::at (unsigned int &)'
make[4]: *** [amule-SearchList.o] Fehler 1
make[4]: Leaving directory `/root/aMule-2.0.0rc4/aMule-2.0.0rc4/src'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/root/aMule-2.0.0rc4/aMule-2.0.0rc4/src'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/root/aMule-2.0.0rc4/aMule-2.0.0rc4/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/root/aMule-2.0.0rc4/aMule-2.0.0rc4'
make: *** [all] Fehler 2
-
Du hättest nicht alles ersetzen brauchen sondern nur die 3 oder 4 Stellen wo er gemeckert hat.
Bzgl. dem anderen Problem:
http://www.amule-project.net/amule/thread.php?goto=lastpost&threadid=2869
thermoman
-
Also die downloadclient.cpp hat er jetzt ohne Probleme kompiliert
Ich habe die SearchList.cpp so verändert :
// taglist.push_back(new CTag(*copyfrom->taglist.at(i)));
taglist.push_back(new CTag(*copyfrom->taglist[i]));
die lies sich dann auch kompilieren...aber ist das so richtig ? Hab nicht viel Ahnung von cpp ...
Mir kams komisch vor, dass ich den Fehler hatte. Ich habe nämlich nicht mit gcc-2.xx versucht sondern mit gcc-3.3.
Danach kam außerdem direkt das nächste Problem :
SharedFileList.cpp: In method `void CSharedFileList::AddFilesFromDirectory(wxString)':
SharedFileList.cpp:119: `O_LARGEFILE' undeclared (first use this function)
SharedFileList.cpp:119: (Each undeclared identifier is reported only once
SharedFileList.cpp:119: for each function it appears in.)
make[4]: *** [amule-SharedFileList.o] Fehler 1
make[4]: Leaving directory `/root/aMule-2.0.0rc4/src'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/root/aMule-2.0.0rc4/src'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/root/aMule-2.0.0rc4/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/root/aMule-2.0.0rc4'
make: *** [all] Fehler 2
Was ist denn an meinem System falsch, dass ich so viele Probleme habe ? Ist das ein Debian Problem ? Kann ich das durch irgendwelche Updates oÄ ändern ?
Vielen dank schonmal für die Hilfe bisher...
-
Ich probiers heute Abend wenn ich Zeit habe mal.
thermoman
-
Alles klar. Danke schonmal. :baby:
-
Siehe http://test.thermoman.de/amule/debian_2.0.0rc4.patch
Du musst -lpthread hinzufügen damit die Lib mit dazugelinkt wird. Das sollten die devs eigentlich mal generell fixen :]
thermoman
-
Auf die Gefahr hin ausgelacht zu werden....wo hinzufügen...und was mach ich mit dme patch ? ?(
-
*smile*
cd /tmp
wget http://test.thermoman.de/amule/debian_2.0.0rc4.patch
cd /usr/src/amule (oder wo auch immer dein amule source liegt)
patch -p1 < /tmp/debian_2.0.0rc4.patch
so in etwa :)
thermoman
-
Bin leider erst heute dazu gekommen weiter zu probieren. Hat schon was gebracht, aber leider kommt wieder ein neuer Fehler :
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/wx/include/gtk-2.4 -DGTK_NO_CHEC
K_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/ -D__CRYPTO_D
EBIAN_GENTOO__ -Wall -g -ggdb -fno-inline -D__DEBUG__ -c -o amule-StatisticsDl
g.o `test -f 'StatisticsDlg.cpp' || echo './'`StatisticsDlg.cpp
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_relops.h: In fu
nction `bool operator !=(const POSITION &, const POSITION &)':
StatisticsDlg.cpp:480: instantiated from here
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_relops.h:38: no
match for `const POSITION & == const POSITION &'
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_relops.h:38: ca
ndidates are: operator ==(void *, void *)
/usr/include/wx/string.h:1179: bool operator ==(const wxString &
, const wxString &)
/usr/include/wx/string.h:1181: bool operator ==(const wxString &
, const wxChar *)
/usr/include/wx/string.h:1183: bool operator ==(const wxChar *,
const wxString &)
/usr/include/wx/string.h:1216: bool operator ==(char, const wxSt
ring &)
/usr/include/wx/string.h:1217: bool operator ==(const wxString &
, char)
/usr/include/wx/string.h:1232: bool operator ==(const wxString & , const wxCharBuffer &)
/usr/include/wx/string.h:1234: bool operator ==(const wxCharBuff er &, const wxString &)
/usr/include/wx/longlong.h:918: bool operator ==(long int, const wxLongLong &)
/usr/include/wx/longlong.h:931: bool operator ==(long unsigned i nt, const wxULongLong &)
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_tree.h:188: bool operator ==(const _Rb_tree_base_iterator &, const _Rb_tree_bas e_iterator &)
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_relops.h:38: wa rning: control reaches end of non-void function `operator !=(const POS ITION &, const POSITION &)'
make[4]: *** [amule-StatisticsDlg.o] Fehler 1
make[4]: Verlasse Verzeichnis »/root/aMule-2.0.0rc5/aMule-2.0.0rc5/src«
make[3]: *** [all-recursive] Fehler 1
make[3]: Verlasse Verzeichnis »/root/aMule-2.0.0rc5/aMule-2.0.0rc5/src«
make[2]: *** [all] Fehler 2
make[2]: Verlasse Verzeichnis »/root/aMule-2.0.0rc5/aMule-2.0.0rc5/src«
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis »/root/aMule-2.0.0rc5/aMule-2.0.0rc5«
make: *** [all] Fehler 2
linux:~/aMule-2.0.0rc5/aMule-2.0.0rc5#
was also nun ? :]