aMule Forum

English => aMule Help => Topic started by: Mon on July 13, 2004, 12:57:29 AM

Title: cant make on debian woody machine
Post by: Mon on July 13, 2004, 12:57:29 AM
configured with:
Code: [Select]
./configure --enable-optimise --disable-systray --enable-amulecmdgui --disable-debug --disable-wxcas --disable-alc
then did a "make" which eventually lead to:
Code: [Select]
g++ -DHAVE_CONFIG_H -I. -I. -I..    -D__SYSTRAY_DISABLED__ -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/X11R6/include   -I/usr/include -I/usr/include/ -D__CRYPTO_MDK_SUSE_FC__  -O2  -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] Error 1

guess i'll have to wait for thermoman to make the .debs? :)
Title: Re: cant make on debian woody machine
Post by: Jacobo221 on July 13, 2004, 01:30:24 AM
Yes, that's a way ;-)
But should compile fine there anyway...
Make sure followed all the steps and ask whatever you need.
Greetings!
Title: Re: cant make on debian woody machine
Post by: thermoman on July 13, 2004, 03:54:28 AM
See http://www.amule.org/amule/thread.php?threadid=2868

thermoman
Title: Re: cant make on debian woody machine
Post by: Mon on July 13, 2004, 12:37:50 PM
Ok, so i'm not the only one with these problems.
Could this mean another quick (bugfix) release will be made ?
Title: Re: cant make on debian woody machine
Post by: thermoman on July 13, 2004, 12:46:25 PM
It's only about 5 substitutions :)

look at the lines where make reports the error and do wxT -> wxString

thermoman
Title: Re: cant make on debian woody machine
Post by: Mon on July 13, 2004, 08:24:04 PM
Alright, after that was fixed i got something better :p :
Code: [Select]
g++ -DHAVE_CONFIG_H -I. -I. -I..    -D__SYSTRAY_DISABLED__ -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/X11R6/include   -I/usr/include -O2 -Wall -DWXUSINGDLL -I/usr/include/ -D__CRYPTO_DEBIAN_GENTOO__  -O2  -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 `vector >::at (unsigned int &)'
make[4]: *** [amule-SearchList.o] Error 1


Another easy-fix for this one?
Title: Re: cant make on debian woody machine
Post by: thermoman on July 13, 2004, 09:51:53 PM
http://test.thermoman.de/amule/debian_2.0.0rc4.patch

:)

thermoman
Title: Re: cant make on debian woody machine
Post by: Mon on July 13, 2004, 10:01:20 PM
You tha man Thermoman :) i'll be back tomorrow if it still doesn't work.
Title: Re: cant make on debian woody machine
Post by: Jacobo221 on July 13, 2004, 10:29:31 PM
Come back ALSO if it works, to report it does ;-)
Greetings!
Title: Re: cant make on debian woody machine
Post by: thermoman on July 13, 2004, 10:34:45 PM
Here it compiled fine - rearranging some things then i will upload new debian woody package.

thermoman
Title: Re: cant make on debian woody machine
Post by: shinobee on July 13, 2004, 10:40:34 PM
great! thanks thermoman
Title: Re: cant make on debian woody machine
Post by: Mon on July 14, 2004, 01:12:29 AM
Patch applied just fine. Amule then compiled fine too. I'll start testing it :)
Maybe i'll try the .deb too later.

Thanks all.

Oh and Thermoman: i was wondering how you compile your debian files? (configure command)
Title: Re: cant make on debian woody machine
Post by: thermoman on July 14, 2004, 10:50:05 AM
Code: [Select]
# Add here commands to configure the package.
PATH=$(CURDIR)/debian:$(PATH) ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
--with-wx-config=/usr/bin/wx-config --enable-optimise --disable-debug --enable-amulecmd \
--enable-amulecmdgui --enable-webserver --enable-webservergui

Since libgd 2.0.1 in debian woody has no gdlib-config i took it from unstable and modified it so it fits.

thermoman