I tried to compile this on Mac OS X 10.2.6, with Dec2002 Developer Tools and a current Fink install with gtk+-1.2.10, gtk+-2.2.1, and wxgtk-2.4.1.2-2. I'm a total newbie at this, so if someone could help fixing these compile errors just to see if this really even works. Tried to compile amule 1.08:
my config script was
./configure --prefix=/sw --infodir=/sw/share/info
1st error:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/sw/include -g -I/sw/lib/wx/include/gtkd-2.4 -I/sw/include -D__WXDEBUG__ -D__WXGTK__ -DWXMAKINGDLL -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include -Isrc -MT Preferences.o -MD -MP -MF ".deps/Preferences.Tpo" \
-c -o Preferences.o `test -f 'Preferences.cpp' || echo './'`Preferences.cpp; \
then mv ".deps/Preferences.Tpo" ".deps/Preferences.Po"; \
else rm -f ".deps/Preferences.Tpo"; exit 1; \
fi
Preferences.cpp:57:1: warning: "MAX_PATH" redefined
In file included from Preferences.cpp:37:
Preferences.h:27:1: warning: this is the location of the previous definition
Preferences.cpp: In member function `void CPreferences::LoadPreferences()':
Preferences.cpp:997: `atoll' undeclared (first use this function)
Preferences.cpp:997: (Each undeclared identifier is reported only once for each
function it appears in.)
make[3]: *** [Preferences.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
On Mac OS X, we don't have MAX_PATH, we do have PATH_MAX, so I changed MAX_PATH to PATH_MAX (in Preferences.cpp & .h, CatDialog.cpp, KnownFileList.cpp, PartFile.cpp); make again, then this minor error (which it compile right past, so I figured it was fixed)
then mv ".deps/CatDialog.Tpo" ".deps/CatDialog.Po"; \
else rm -f ".deps/CatDialog.Tpo"; exit 1; \
fi
In file included from ServerList.h:24,
from ServerListCtrl.h:4,
from sockets.h:27,
from amuleDlg.h:24,
from amule.h:30,
from CatDialog.cpp:23:
Preferences.h:27:1: warning: "PATH_MAX" redefined
In file included from /usr/include/limits.h:63,
from /sw/include/wx/debug.h:16,
from /sw/include/wx/defs.h:398,
from /sw/include/wx/list.h:36,
from mfc.h:7,
from wintypes.h:44,
from CatDialog.cpp:21:
then
Preferences.h:28:1: warning: "PATH_MAX" redefined
In file included from /usr/include/sys/param.h:88,
from Preferences.cpp:33:
/usr/include/sys/syslimits.h:73:1: warning: this is the location of the previous definition
Preferences.cpp:58:1: warning: "PATH_MAX" redefined
In file included from Preferences.cpp:37:
Preferences.h:28:1: warning: this is the location of the previous definition
Preferences.cpp: In constructor `CPreferences::CPreferences()':
Preferences.cpp:154: `PATH_MAX' undeclared (first use this function)
Preferences.cpp:154: (Each undeclared identifier is reported only once for each
function it appears in.)
Preferences.cpp: In member function `void CPreferences::LoadPreferences()':
Preferences.cpp:998: `atoll' undeclared (first use this function)
make[3]: *** [Preferences.o] Error 1
pico /usr/include/stdlib.h shows no atoll; it does include
long atol __P((const char *));
long strtol __P((const char *, char **, int));
#ifndef __STRICT_ANSI__
long long
strtoll(const char *, char **, int);
unsigned long long
strtoull(const char *, char **, int);
changing atoll to strtoll had errors, so I couldn't get any further.
I saw a webpage that I said something like define atoll against strtoll like:
#define atoll(str) strtoll(str, (char **)NULL, 10)
but that gave me errors as well (well, my attempt failed because I didn't know how to implement it correctly—str was unimplemented or something).
Any help would be appreciated.