aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule fails to compile  (Read 1840 times)

lje

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
aMule fails to compile
« on: October 12, 2004, 10:53:16 PM »

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
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: aMule fails to compile
« Reply #1 on: October 13, 2004, 01:41:57 AM »

lje,

If you want to use 2.5 stuff, use wx-2.5.3. With this version of wxWidgets, aMule does not use gsocket.c. That may solve your problem.

Cheers!
Logged