aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Can't compile with --enable-gsocket  (Read 1940 times)

ecforum

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 105
Can't compile with --enable-gsocket
« on: December 25, 2004, 01:24:25 PM »

Hello,

Before writing about the compilation problem, I have 2 good news :
 - for the first time I can compile with the --enable-optimize option
 - I can compile with the option --disable-gsocket


Here are the errors with the option --disable-gsocket :

make[4]: Leaving directory  `/home/user/Soft/Mp3/Amule/aMule-2.0.0rc8/src/kademlia'
make[4]: Entering directory `/home/user/Soft/Mp3/Amule/aMule-2.0.0rc8/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I..     -D__SYSTRAY_DISABLED__ -I/usr/local/wxGTK/lib/wx/include/gtk-2.5 -I/usr/local/wxGTK/include -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   -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 types.h:26,
                 from gsocket-fix.h:23,
                 from gsocket-2.5.c:176:
/usr/local/wxGTK/include/wx/dynarray.h:73: error: erreur d'analyse syntaxique before string constant
/usr/local/wxGTK/include/wx/dynarray.h:808: error: erreur d'analyse syntaxique before "wxBaseArrayPtrVoid"
/usr/local/wxGTK/include/wx/dynarray.h:808: error: erreur de syntaxe before '{' token
/usr/local/wxGTK/include/wx/dynarray.h:808: error: erreur d'analyse syntaxique before '&' token
/usr/local/wxGTK/include/wx/dynarray.h:808: attention : data definition has no type or storage class
......


I compiled with this configure options :
./configure --prefix=/usr/local/aMule-2.0rc8 --disable-debug --disable-systray --with-wx-prefix=/usr/local/wxGTK --with-curl-prefix=/usr/local/Curl --enable-optimise


Here are some informations on my Linux/Slackware-10 system :
I.   Development Environment

     A. Compiler Info
        Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/specs Configured with: ../gcc-3.3.4/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux Thread model: posix gcc version 3.3.4

     B. wxWindows Info
        Version: 2.5.2
        -L/usr/local/wxGTK-2.5.2/lib -pthread -L/usr/X11R6/lib -lwx_gtk_html-2.5 -lwx_gtk_adv-2.5 -lwx_gtk_core-2.5 -lwx_base_xml-2.5 -lwx_base_net-2.5 -lwx_base-2.5

     C. GTK Info
        GTK 1: 1.2.10
        GTK 2: 2.4.3

II.  System Environment

     C. Kernel Info
        Version: 2.4.28

     D. Library Info
        wxWindows library: libwx_gtk_html-2.5.so (libc6) => /usr/local/wxGTK/lib/libwx_gtk_html-2.5.so libwx_gtk_gl-2.5.so (libc6) => /usr/local/wxGTK/lib/libwx_gtk_gl-2.5.so libwx_gtk_core-2.5.so (libc6) => /usr/local/wxGTK/lib/libwx_gtk_core-2.5.so libwx_gtk_adv-2.5.so (libc6) => /usr/local/wxGTK/lib/libwx_gtk_adv-2.5.so libwx_base_xml-2.5.so (libc6) => /usr/local/wxGTK/lib/libwx_base_xml-2.5.so libwx_base_net-2.5.so (libc6) => /usr/local/wxGTK/lib/libwx_base_net-2.5.so libwx_base-2.5.so (libc6) => /usr/local/wxGTK/lib/libwx_base-2.5.so
Logged

ecforum

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 105
RE: Can't compile with --enable-gsocket
« Reply #1 on: December 25, 2004, 10:49:29 PM »

It's ok with wxGTK-2.5.3.

Thanks to Thepolish.
Logged