aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Compilation Error on RH 9.0  (Read 7300 times)

aamoruso

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Compilation Error on RH 9.0
« on: December 29, 2003, 03:24:39 PM »

Hi All,
I'm encountering some issues compiling amule 1.2.1 on a RH 9.0 box.


I've upgraded the wx* packages using the RPMs available on the aMule site,
via the "rpm -Uhv *.rpm" command line as root:


[root@atlas amule]# ls *.rpm -l
-rw-r--r--    1 root     root         1.1M Dec 29 15:03 wxBase-2.4.2-1.i586.rpm
-rw-r--r--    1 root     root         2.4M Dec 29 15:05 wxGTK-2.4.2-1.i386.rpm
-rw-r--r--    1 root     root         564K Dec 29 15:04 wxGTK-devel-2.4.2-1.i386.rpm

After unpacking the source tarball, I ran configure and got this output:

  Configure script has finished system check.

  Configured aMule 1.2.1 for `i686-pc-linux-gnu'.

  Should aMule be compiled in debug mode?                  no
  Should aMule be compiled without debug reporting?        yes
  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 amulecmd be built?                                yes
  Should amulecmd (TextClient) be linked against wxbase?   yes

  Which libraries should aMule use?
                                       wxWindows          2.4.2
                                       GTK                1.2.10

Then I finally ran "make" but I got some errors:

[root@atlas aMule-1.2.1]# make
make  all-recursive
make[1]: Entering directory `/root/aMule-1.2.1'
Making all in m4
make[2]: Entering directory `/root/aMule-1.2.1/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/aMule-1.2.1/m4'
Making all in src
make[2]: Entering directory `/root/aMule-1.2.1/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/lib/wx/include/base-2.4 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DAMULECMDDLG  -g   -MT amulecmdDLG-TextClient.o -MD -MP -MF ".deps/amulecmdDLG-TextClient.Tpo" \
  -c -o amulecmdDLG-TextClient.o `test -f 'TextClient.cpp' || echo './'`TextClient.cpp; \
then mv ".deps/amulecmdDLG-TextClient.Tpo" ".deps/amulecmdDLG-TextClient.Po"; \
else rm -f ".deps/amulecmdDLG-TextClient.Tpo"; exit 1; \
fi
In file included from /usr/include/wx/window.h:27,
                 from /usr/include/wx/toplevel.h:25,
                 from /usr/include/wx/dialog.h:21,
                 from /usr/include/wx/generic/textdlgg.h:21,
                 from /usr/include/wx/textdlg.h:4,
                 from TextClient.h:25,
                 from TextClient.cpp:26:
/usr/include/wx/cursor.h: In constructor
   `wxBusyCursorSuspender::wxBusyCursorSuspender()':
/usr/include/wx/cursor.h:46: `wxIsBusy' undeclared (first use this function)
/usr/include/wx/cursor.h:46: (Each undeclared identifier is reported only once
   for each function it appears in.)
/usr/include/wx/cursor.h:48: `wxBusyCursor' undeclared (first use this
   function)
/usr/include/wx/cursor.h:48: parse error before `;' token
/usr/include/wx/cursor.h: In destructor
   `wxBusyCursorSuspender::~wxBusyCursorSuspender()':
/usr/include/wx/cursor.h:55: parse error before `;' token
In file included from /usr/include/wx/window.h:28,
                 from /usr/include/wx/toplevel.h:25,
                 from /usr/include/wx/dialog.h:21,
                 from /usr/include/wx/generic/textdlgg.h:21,
                 from /usr/include/wx/textdlg.h:4,
                 from TextClient.h:25,
                 from TextClient.cpp:26:
/usr/include/wx/font.h: At global scope:
/usr/include/wx/font.h:82: parse error before `{' token
/usr/include/wx/font.h:104: non-member function `bool Ok()' cannot have `const'
   method qualifier
/usr/include/wx/font.h: In function `bool Ok()':
/usr/include/wx/font.h:104: `m_refData' undeclared (first use this function)
/usr/include/wx/font.h: At global scope:
/usr/include/wx/font.h:107: non-member function `bool operator==(const wxFont&)
   ' cannot have `const' method qualifier
/usr/include/wx/font.h:107: `bool operator==(const wxFont&)' must take exactly
   two arguments

The aMule RPM file for RH, SUSE and MDK fails with a unresolved dependancy
on libcripto shared libraries.


Here follows the get-info.sh output:

[root@atlas amule]# ./get-info.sh
I.   Development Environment

     A. Compiler Info
        Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs Config
ured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/sha
re/info --enable-shared --enable-threads=posix --disable-checking --with-system-
zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc vers
ion 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

     B. wxWindows Info
        Version: 2.4.2
        -pthread -lwx_base-2.4

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

II.  System Environment

     A. CPU Info
        Type:  AuthenticAMD
        Model: AMD Athlon(tm) Processor
        Speed: 857.651
        BMips: 1710.48
        Flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse3                                                            6 mmx fxsr syscall mmxext 3dnowext 3dnow

     B. Memory Info
        Total:   643100 kB
        Unused:

     C. Kernel Info
        Version: 2.4.20-8

     D. Library Info
        wxWindows library: libwx_gtk-2.4.so (libc6) => /usr/lib/libwx_gtk-2.4.so                                                             libwx_base-2.4.so (libc6) => /usr/lib/libwx_base-2.4.so

Any clue?

Thanks
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Compilation Error on RH 9.0
« Reply #1 on: December 29, 2003, 03:29:35 PM »

yes, look into help forum -> wxBase howto's or latest compilation problem thread <-

greets
delta

sepahewe

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
    • http://www.wejdmark.org/
Re: Compilation Error on RH 9.0
« Reply #2 on: February 09, 2004, 04:21:14 PM »

Hi!

I have the same error (complaining at wxIsBusy) and I have read the HOWTO without getting any smarter....

I have installed wx and wxBase from the RPM:s on aMules homepage but I'm compiling aMule 1.2.4 from the .tar.gz.

I have checked my links....

Any clue? Any more info needed?

//Cheers
      H
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Compilation Error on RH 9.0
« Reply #3 on: February 09, 2004, 04:33:41 PM »

ls -l /usr/bin/wx*

please

sepahewe

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
    • http://www.wejdmark.org/
Re: Compilation Error on RH 9.0
« Reply #4 on: February 09, 2004, 05:08:38 PM »

Code: [Select]
[root@maya root]# ls -l /usr/bin/wx*
-rwxr-xr-x    1 root     root         4864 Nov 28 13:08 /usr/bin/wxbase-2.4-config
lrwxrwxrwx    1 root     root           26 Feb  9 15:49 /usr/bin/wxbase-config -> /usr/bin/wxbase-2.4-config
lrwxrwxrwx    1 root     root           25 Feb  9 17:02 /usr/bin/wx-config -> /usr/bin/wxgtk-2.4-config
-rwxr-xr-x    1 root     root         5159 Sep 21 15:14 /usr/bin/wxgtk-2.4-config
[root@maya root]#

//Cheers
      H
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Compilation Error on RH 9.0
« Reply #5 on: February 09, 2004, 05:32:15 PM »

mh, looks fine

post plz the configure output (the part of wxwindows, wxbase, curl etc)

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Compilation Error on RH 9.0
« Reply #6 on: February 09, 2004, 06:59:54 PM »

ok, try to compile with ./configure --disable-debug --enable-optimise --with-wx-config=/usr/bin/wx-config --with-wxbase-config=/usr/bin/wxbase-config

thx bootstrap for this hint :)

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Compilation Error on RH 9.0
« Reply #7 on: February 09, 2004, 08:47:32 PM »

well as what I can say from my experience is that installing wxbase und wxgtk from rpm and then compiling amule from source never worked on my system.
if you compile wxbase and wxgtk from hand and don't use the rpms it definatly should work.
as it seams mixing rpm and then doing a source compilation of amule does net seam to work?  ?(

so try comping wxbase and wxgtk again from source and see if the make runs good then.

bybye
stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

bootstrap

  • Guest
Re: Compilation Error on RH 9.0
« Reply #8 on: February 09, 2004, 09:34:19 PM »

Quote
ok, try to compile with ./configure --disable-debug --enable-optimise --with-wx-config=/usr/bin/wx-config --with-wxbase-config=/usr/bin/wxbase-config

thx bootstrap for this hint

I used --with-wxbase-config=/usr/bin/wxbase-2.4-config and --with-wx-config=/usr/binwxgtk-2.4-config to avoid making symlinks. That worked for me.
If my memories are right the compile problems with amulecmd where solved with installing wxbase from the amule site instead of the original rpm. Maybe the wxwindows wxbase-devel will also work, but i did not test that, as the problem was solved with the amule wxbase rpm.
Logged

bootstrap

  • Guest
Re: Compilation Error on RH 9.0
« Reply #9 on: February 10, 2004, 09:31:29 AM »

Ok ... i tested the wxwindows rpms and it looks like everything is ok.
- --disable-amulecmd works with wxGTK, wxGTK-devel and wxBase.
If you want to compile with amulecmd and don't use the amule supplied rpm you also need to install wxBase-devel to get it compiled.
Works for me on rh9 and fedora core 1.
Logged

sepahewe

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
    • http://www.wejdmark.org/
Re: Compilation Error on RH 9.0
« Reply #10 on: February 10, 2004, 09:50:43 AM »

Hi!

I deleted my /usr/src/aMule... and untared it again, rerun configure and now it worked.....

I don't know if it could have been that I ran configure the first time before I had wxBase.rpm installed.

Thanks for the help and input.

//Cheers
      H
Logged