First of all, I tried to compile the ultimate CVS version of aMule, aMule-cvs-20040809, with this configure:
./configure --disable-systray --disable-gsocket --disable-gtk --with-wx-prefix=/usr/local --with-wx-config=/usr/local/bin/wx-config --with-crypto-prefix=/Users/NAME/Programmi/ --enable-debug --disable-optimise
but there is an error in make phase:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -D__SYSTRAY_DISABLED__ -I/usr/local/lib/wx/include/mac-2.5 -I/usr/local/include -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include -D__NOGTK__ -I/usr/include -I/Users/NAME/Programmi -D__CRYPTO_MDK_SUSE_FC__ -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -MT amule-TransferWnd.o -MD -MP -MF ".deps/amule-TransferWnd.Tpo" \
-c -o amule-TransferWnd.o `test -f 'TransferWnd.cpp' || echo './'`TransferWnd.cpp; \
then mv -f ".deps/amule-TransferWnd.Tpo" ".deps/amule-TransferWnd.Po"; \
else rm -f ".deps/amule-TransferWnd.Tpo"; exit 1; \
fi
TransferWnd.cpp: In constructor `CTransferWnd::CTransferWnd(wxWindow*)':
TransferWnd.cpp:79: error: `wxBitmapButton' undeclared (first use this function)
TransferWnd.cpp:79: error: (Each undeclared identifier is reported only once for each function it appears in.)
TransferWnd.cpp:79: error: `bmap' undeclared (first use this function)
TransferWnd.cpp:79: error: parse error before `)' token
make[4]: *** [amule-TransferWnd.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
The same error with aMule-cvs-20040731 (I tried only these two).
So I compiled amule-dev-cvs that DeltaHF sent me a few days ago (maybe weeks ago...), with the same configure, and all goes right.
Now errors with gdb.
If I start amule-dev-cvs now, the program crash immediatly. With gdb there are these errors:
...
Sharing /Users/NAME/Documents/aMule//temp
Sharing /Users/NAME/Documents/aMule//temp
Sharing /Users/NAME/Documents/aMule/temp//001.part
Finished Hashing temp
Finished Hashing temp
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x90190bbc in CFRelease ()
(gdb)
and after bt and bt full, these:
(gdb) bt
#0 0x90190bbc in CFRelease ()
#1 0x0474bd0c in _GSocket_GUI_Destroy_Socket ()
#2 0x0474bd0c in _GSocket_GUI_Destroy_Socket ()
#3 0x0404e950 in GSocket_destroy ()
#4 0x0404ef0c in GSocket_WaitConnection ()
#5 0x0404c494 in wxSocketServer::AcceptWith(wxSocketBase&, bool) ()
#6 0x0000d3e4 in CListenSocket::OnAccept(int) (this=0x4c693a0, nErrorCode=0) at ListenSocket.cpp:1952
#7 0x0013a534 in CamuleApp::ListenSocketHandler(wxSocketEvent&) (this=0x4c197c0, event=@0x4c465d0) at amule.cpp:1536
#8 0x0448888c in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
#9 0x0448802c in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) ()
#10 0x04488a38 in wxEvtHandler::ProcessEvent(wxEvent&) ()
#11 0x0448878c in wxEvtHandler::ProcessPendingEvents() ()
#12 0x0442eaf8 in wxAppConsole::ProcessPendingEvents() ()
#13 0x0472d614 in wxApp::MacHandleOneEvent(void*) ()
#14 0x0472d588 in wxApp::MacDoOneEvent() ()
#15 0x0472d1cc in wxApp::MainLoop() ()
#16 0x0445d428 in wxEntry(int&, char**) ()
#17 0x001349d4 in main (argc=1, argv=0xbffffd94) at amule.cpp:158
(gdb) bt full
#0 0x90190bbc in CFRelease ()
No symbol table info available.
#1 0x0474bd0c in _GSocket_GUI_Destroy_Socket ()
No symbol table info available.
#2 0x0474bd0c in _GSocket_GUI_Destroy_Socket ()
No symbol table info available.
#3 0x0404e950 in GSocket_destroy ()
No symbol table info available.
#4 0x0404ef0c in GSocket_WaitConnection ()
No symbol table info available.
#5 0x0404c494 in wxSocketServer::AcceptWith(wxSocketBase&, bool) ()
No symbol table info available.
#6 0x0000d3e4 in CListenSocket::OnAccept(int) (this=0x4c693a0, nErrorCode=0) at ListenSocket.cpp:1952
newclient = (CClientReqSocket *) 0x8c9acb0
#7 0x0013a534 in CamuleApp::ListenSocketHandler(wxSocketEvent&) (this=0x4c197c0, event=@0x4c465d0) at amule.cpp:1536
socket = (CListenSocket *) 0x4c693a0
#8 0x0448888c in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
No symbol table info available.
#9 0x0448802c in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) ()
No symbol table info available.
#10 0x04488a38 in wxEvtHandler::ProcessEvent(wxEvent&) ()
No symbol table info available.
#11 0x0448878c in wxEvtHandler::ProcessPendingEvents() ()
No symbol table info available.
#12 0x0442eaf8 in wxAppConsole::ProcessPendingEvents() ()
No symbol table info available.
#13 0x0472d614 in wxApp::MacHandleOneEvent(void*) ()
No symbol table info available.
#14 0x0472d588 in wxApp::MacDoOneEvent() ()
No symbol table info available.
#15 0x0472d1cc in wxApp::MainLoop() ()
No symbol table info available.
#16 0x0445d428 in wxEntry(int&, char**) ()
No symbol table info available.
#17 0x001349d4 in main (argc=1, argv=0xbffffd94) at amule.cpp:158
No locals.
(gdb)
If I want close amule I have to quit from gdb otherwise amule rest in a 'freeze' status.
Ocimin