Hi.
When compiling aMule CVS, I get the following error message:
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__SYSTRAY_DISABLED__ -I/usr/lib/wx/inc
lude/gtk2u-2.5 -I/usr/include/wx-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OF
FSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/in
clude/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib
-2.0/include -D__GTK2__ -O2 -pipe -march=athlon-xp -O2 -MT amule-gsocket-2
.5.o -MD -MP -MF ".deps/amule-gsocket-2.5.Tpo" -c -o amule-gsocket-2.5.o `test -
f 'gsocket-2.5.c' || echo './'`gsocket-2.5.c; \
then mv -f ".deps/amule-gsocket-2.5.Tpo" ".deps/amule-gsocket-2.5.Po"; else rm -
f ".deps/amule-gsocket-2.5.Tpo"; exit 1; fi
In file included from /usr/include/wx-2.5/wx/unix/gsockunx.h:19,
from gsocket-2.5.c:168:
/usr/include/wx-2.5/wx/gsocket.h:39: error: parse error before "GSocket"
/usr/include/wx-2.5/wx/gsocket.h:39: warning: data definition has no type or sto
rage class
/usr/include/wx-2.5/wx/gsocket.h:92: error: parse error before '*' token
/usr/include/wx-2.5/wx/gsocket.h:100: error: parse error before "GSocketGUIFunct
ionsTable"
...
The problems seems to be, that amules Makefile tries to compile gsocket.c with gcc, but the files and its includes are C++ files. It seems to be a bug in aMules Makefile.in.
Does anybody have a solution for this problem?
Thanks,
Jens