aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2] 3

Author Topic: aMule-2.0.0 RC3 compilation problems with GCC 3.4  (Read 13046 times)

Avi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 35
Re: aMule-2.0.0 RC3 compilation problems with GCC 3.4
« Reply #15 on: May 20, 2004, 11:46:53 PM »

Quote
Originally posted by linuxuser
Avi sorry for asking this but ! how do i aply the patch ? "name of te patch"  patch -pl "file to wich the patch should be aplyed  ?
thanks for the help  :baby:
First, don't be sorry for asking. :)
I'm far from being a Linux guru (I'm a Windows user), but I believe you can apply it by using: patch -p0 < crypto++-gcc-3.4.diff
I didn't check it by myself, but I think that's the correct way...
Someone please correct me if I'm wrong.

Kind regards,
Avi

P.S: For those who wonder... I simply found this patch by using google... I hope it will work.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: aMule-2.0.0 RC3 compilation problems with GCC 3.4
« Reply #16 on: May 21, 2004, 12:37:07 AM »

Thanks Avi. Looking forward for reports :)
Logged

linuxuser

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 37
Re: aMule-2.0.0 RC3 compilation problems with GCC 3.4
« Reply #17 on: May 21, 2004, 07:24:26 PM »

it didnt work !!
I've aplyed the patch and tryed make but it gives an error with the libcrypto.cpp
im not if this is the correctc file but i will post the error tonight !
however the error is on a file the patch is not aplyed too !
Logged

Cthulhu

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Re: aMule-2.0.0 RC3 compilation problems with GCC 3.4
« Reply #18 on: May 22, 2004, 08:45:20 PM »

I managed to compile aMule 2.0rc3 and crypto++ with this gentoo patch with GCC 3.4 but it segfault right after i start it. Next I compiled earlier version (aMule 2.0.0rc2) with the same flags/options  and it works.. at least for now.

Oh, yes - I had to unset my CXXFLAGS before compiling crypto++ because of problems with asm in integer.cpp
« Last Edit: May 22, 2004, 08:46:48 PM by Cthulhu »
Logged

Avi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 35
Re: aMule-2.0.0 RC3 compilation problems with GCC 3.4
« Reply #19 on: May 24, 2004, 08:49:01 AM »

Quote
Originally posted by Cthulhu
I managed to compile aMule 2.0rc3 and crypto++ with this gentoo patch with GCC 3.4 but it segfault right after i start it. Next I compiled earlier version (aMule 2.0.0rc2) with the same flags/options  and it works.. at least for now.

Oh, yes - I had to unset my CXXFLAGS before compiling crypto++ because of problems with asm in integer.cpp
Could you post a gdb backtrace here?
Logged

eric666

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: aMule-2.0.0 RC3 compilation problems with GCC 3.4
« Reply #20 on: May 25, 2004, 10:13:59 AM »

Quote
Originally posted by Cthulhu
I managed to compile aMule 2.0rc3 and crypto++ with this gentoo patch with GCC 3.4 but it segfault right after i start it.

Yups, I've the same problem, crypto++ (with gentoo patch) and amule compiles with gcc-3.4, but amule segfaults right after the message "this is a new version, locales are reset".

I've played around with compilation flags and now amule works! :D
crypto++: I've unset CFLAGS and CXXFLAGS;
amule: I've add '-fno-unit-at-a-time' to the CFLAGS and CXXFLAGS
I don't know which change makes compilation works.
« Last Edit: May 25, 2004, 10:39:13 AM by eric666 »
Logged

kriztofo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
you got it to compile?
« Reply #21 on: May 30, 2004, 05:48:09 AM »

I still can't get RC3 to compile with gcc 3.4. Now its giving me this error:

In file included from PrefsUnifiedDlg.h:38,
                 from Preferences.h:34,
                 from ListenSocket.cpp:36:
DirectoryTreeCtrl.h:86:3: warning: #warning FIXME!!!!!!!!!!!!!
In file included from Preferences.h:34,
                 from ListenSocket.cpp:36:
PrefsUnifiedDlg.h:81: warning: ISO C++ forbids declaration of `wxChoice' with no type
PrefsUnifiedDlg.h:81: error: expected `;' before '*' token
PrefsUnifiedDlg.h:82: warning: ISO C++ forbids declaration of `wxButton' with no type
PrefsUnifiedDlg.h:82: error: expected `;' before '*' token
PrefsUnifiedDlg.h: In member function `int PrefsUnifiedDlg::GetColorIndex()':
PrefsUnifiedDlg.h:73: error: `pchoiceColor' undeclared (first use this function)
PrefsUnifiedDlg.h:73: error: (Each undeclared identifier is reported only once for each function it appears in.)
ListenSocket.cpp:712:8: warning: #warning Here should be the IDHybrid, but we don't use it yet and I'm afraid it will break a lot ;)
ListenSocket.cpp:718:7: warning: #warning Here should be the IDHybrid, but we don't use it yet and I'm afraid it will break a lot ;)
ListenSocket.cpp:770:6: warning: #warning TODO: CHECK MESSAGE FILTERING!
ListenSocket.cpp:1054:7: warning: #warning We need a new ProcessSharedFileList that can handle dirs.
ListenSocket.cpp:1636:2: warning: #warning OnConnect? ;)
make[2]: *** [amule-ListenSocket.o] Error 1
make[2]: Leaving directory `/usr/local/home/kriztofo/src/aMule-2.0.0rc3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/home/kriztofo/src/aMule-2.0.0rc3'
make: *** [all] Error 2


I am guessing I just need to set some compiler flags but I am unsure which ones. Any ideas?
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: aMule-2.0.0 RC3 compilation problems with GCC 3.4
« Reply #22 on: May 30, 2004, 06:53:19 AM »

you're using wx 2.5 with rc3, which is not allowed to work at all.
Logged

kriztofo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Oops, but also...
« Reply #23 on: May 30, 2004, 10:21:18 AM »

I get a very similar error with the latest cvs, checked out from berlios about 4 hours ago.

In file included from PrefsUnifiedDlg.h:38,
                 from Preferences.h:34,
                 from ListenSocket.cpp:36:
DirectoryTreeCtrl.h:86:3: warning: #warning FIXME!!!!!!!!!!!!!
In file included from Preferences.h:34,
                 from ListenSocket.cpp:36:
PrefsUnifiedDlg.h:81: error: ISO C++ forbids declaration of `wxChoice' with no type
PrefsUnifiedDlg.h:81: error: expected `;' before '*' token
PrefsUnifiedDlg.h:82: error: ISO C++ forbids declaration of `wxButton' with no type
PrefsUnifiedDlg.h:82: error: expected `;' before '*' token
PrefsUnifiedDlg.h: In member function `int PrefsUnifiedDlg::GetColorIndex()':
PrefsUnifiedDlg.h:73: error: `pchoiceColor' undeclared (first use this function)
PrefsUnifiedDlg.h:73: error: (Each undeclared identifier is reported only once for each function it appears in.)
ListenSocket.cpp:585:6: warning: #warning TODO: CHECK MESSAGE FILTERING!
make[2]: *** [amule-ListenSocket.o] Error 1
make[2]: Leaving directory `/usr/local/home/kriztofo/src/amule-cvs/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/home/kriztofo/src/amule-cvs/amule-cvs'
make: *** [all] Error 2
« Last Edit: May 30, 2004, 10:29:20 AM by kriztofo »
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: aMule-2.0.0 RC3 compilation problems with GCC 3.4
« Reply #24 on: May 30, 2004, 08:49:39 PM »

And are you using wxWdigets 2.4.2 ?
run `wx-config --basename --version` to know.
Greetings!
Logged

kriztofo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Wx
« Reply #25 on: May 31, 2004, 01:02:30 AM »

I am running WxWidgets 2.5.1, which I thought cvs was ready to support.
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: aMule-2.0.0 RC3 compilation problems with GCC 3.4
« Reply #26 on: May 31, 2004, 01:52:42 AM »

> I get a very similar error with the latest cvs
sorry I missed that part :-(
Well, CVS works fine with wx2.5.1 everywhere it's been tried to compile, AFAIK. So maybe the CVS you're trying to compile just doesn't compile :-/ Although that sounds quite strange to me. You could paste the output of this script http://download.berlios.de/amule/get-info.sh and the configure output to give some clues.
Greetings!
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: aMule-2.0.0 RC3 compilation problems with GCC 3.4
« Reply #27 on: May 31, 2004, 02:16:34 AM »

Are you compiling on mac?
Logged

kriztofo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Info dumps
« Reply #28 on: May 31, 2004, 02:31:01 AM »

*Trying to compile on my linux box, running some Slack 8.1 I think.

Get info dump:

I.   Development Environment

     A. Compiler Info
        Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/specs Configured with: ../gcc-3.4.0/configure Thread model: posix gcc version 3.4.0

     B. wxWindows Info
        Version: 2.5.1
        -L/usr/local/lib -pthread -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.2.2

II.  System Environment

     A. CPU Info
        Type:  GenuineIntel
        Model: Intel(R) Pentium(R) 4 CPU 1400MHz
        Speed: 1395.790
        BMips: 2719.74
        Flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm

     B. Memory Info
        Total:   513936 kB
        Unused:  251276 kB

     C. Kernel Info
        Version: 2.4.25

     D. Library Info
        wxWindows library: libwx_gtk_xrc-2.5.so (libc6) => /usr/local/lib/libwx_gtk_xrc-2.5.so libwx_gtk_svg-2.5.so (libc6) => /usr/local/lib/libwx_gtk_svg-2.5.so libwx_gtk_stc-2.5.so (libc6) => /usr/local/lib/libwx_gtk_stc-2.5.so libwx_gtk_plot-2.5.so (libc6) => /usr/local/lib/libwx_gtk_plot-2.5.so libwx_gtk_ogl-2.5.so (libc6) => /usr/local/lib/libwx_gtk_ogl-2.5.so libwx_gtk_mmedia-2.5.so (libc6) => /usr/local/lib/libwx_gtk_mmedia-2.5.so libwx_gtk_html-2.5.so (libc6) => /usr/local/lib/libwx_gtk_html-2.5.so libwx_gtk_gizmos-2.5.so (libc6) => /usr/local/lib/libwx_gtk_gizmos-2.5.so libwx_gtk_fl-2.5.so (libc6) => /usr/local/lib/libwx_gtk_fl-2.5.so libwx_gtk_deprecated-2.5.so (libc6) => /usr/local/lib/libwx_gtk_deprecated-2.5.so libwx_gtk_core-2.5.so (libc6) => /usr/local/lib/libwx_gtk_core-2.5.so libwx_gtk_animate-2.5.so (libc6) => /usr/local/lib/libwx_gtk_animate-2.5.so libwx_gtk_adv-2.5.so (libc6) => /usr/local/lib/libwx_gtk_adv-2.5.so libwx_base_xml-2.5.so (libc6) => /usr/local/lib/libwx_base_xml-2.5.so libwx_base_net-2.5.so (libc6) => /usr/local/lib/libwx_base_net-2.5.so libwx_base-2.5.so (libc6) => /usr/local/lib/libwx_base-2.5.so

Configure dump:

kriztofo@bubbles:~/src/amule-cvs/amule-cvs$ ./configure --disable-debug
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for msgfmt... /usr/local/bin/msgfmt
checking for gmsgfmt... /usr/local/bin/msgfmt
checking for xgettext... /usr/local/bin/xgettext
checking for msgmerge... /usr/local/bin/msgmerge
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ranlib... ranlib
checking for strerror in -lcposix... no
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for feof_unlocked... yes
checking for fgets_unlocked... yes
checking for getc_unlocked... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 1.35, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking for wx-config... /usr/local/bin/wx-config
checking for wxWidgets version >= 2.4.0... yes (version 2.5.1)
checking for wxbase-2.4-config... no
configure:
        WARNING: libwx_base >= 2.4.0 is not found.
        This is not needed for compiling aMule, but it is for compiling amulecmd.
        If you have no wxbase, amulecmd will be linked against wxgtk, thus removing
        all the non-graphical client meaning at all.
        Please check that wxbase-2.4-config is in path, the directory
        where wxWidgets base libraries are installed (returned by
        'wxbase-2.4-config --libs' command) is in LD_LIBRARY_PATH or
        equivalent variable and wxWidgets base is version 2.4.0 or above.
        Or this might also be that your wxbase-config has other name.
        Please try again with --with-wxbase-config=/usr/bin/wxbase-config
        (replace /usr/bin/wxbase-config with a valid path to your wxbase-config)
        * Note:
        Most probably, either one of the above aren't correct, you don't
        have wxbase installed, or are missing wxbase-devel (or equivalent) package.
   
checking for curl >= 7.9.5... yes (version 7.10)
checking if wxWidgets was linked with GTK2... no
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.2.0... yes
checking if wxWidgets version >=2.5.0 ... yes
checking for crypto++ version >= 5.1... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking whether SysTray should be compiled... yes
checking whether SysTray should be compiled in safe mode... no
checking whether pure GTK code should be compiled... yes
checking whether progress bar drawing should be disabled... no
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for locale.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for an ANSI C-conforming const... (cached) yes
checking for inline... (cached) inline
checking for off_t... (cached) yes
checking for size_t... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... yes
checking return type of signal handlers... void
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for floor... no
checking for ftruncate... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for putenv... (cached) yes
checking for select... yes
checking for setlocale... (cached) yes
checking for sqrt... no
checking for strcasecmp... (cached) yes
checking for strchr... yes
checking for strdup... (cached) yes
checking for strrchr... yes
checking for strstr... yes
checking for strtoul... (cached) yes
checking for getrlimit... yes
checking for setrlimit... yes
checking whether ccache support should be added... no
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating intl/Makefile
config.status: creating po/Makefile.in
config.status: creating m4/Makefile
config.status: creating Makefile
config.status: creating Compilation.flags
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile


  Configure script has finished system check.

  Configured aMule CVS for 'i686-pc-linux-gnu'.

  Should aMule be compiled in debug mode?                  no
  Should aMule be compiled with release grp code?          no
  Should aMule be compiled without debug reporting?        no
  Should aMule be compiled with profiling?                 no
  Should aMule be compiled with optimizations?             no
  Should aMule be compiled with systray?                   yes
  Should aMule be compiled with safe systray?              no
  Should aMule be compiled with pure GTK code?             yes
  Should aMule be compiled without bar drawing?            no
  Should aMule be linked against patched gsocket?          yes
  Should ccache support be enabled?                        no
  Should aMule command line client be built?               no
  Should aMule GUI client be build?                        no
  Should aMule WebServer be build?                         no
  Should aMule WebServer GUI be build?                     no
  Should aMule ed2k links handler be build?                yes
  Should C aMule Statistics (CAS) be build?                yes
  Crypto++ library/headers style?                          mdk_suse_fc

  Which libraries should aMule use?
                                       wxWidgets          2.5.1
                                       GTK                1.2.10
« Last Edit: May 31, 2004, 02:33:01 AM by kriztofo »
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: aMule-2.0.0 RC3 compilation problems with GCC 3.4
« Reply #29 on: May 31, 2004, 02:42:14 AM »

Quote
I get a very similar error with the latest cvs, checked out from berlios about 4 hours ago.

Ah, damm, berlios is not up-to-date. Use the tarballs that are linked on download page.
Logged
Pages: 1 [2] 3