aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: problem with RedHat9  (Read 4297 times)

Frisey

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
problem with RedHat9
« on: May 07, 2005, 01:14:04 PM »

I tried to install aMule on my RedHat9.
wxBase-2.4.2-1.i586.rpm , wxGTK-2.4.2-1.i386.rpm , wxGTK-devel-2.4.2-1.i386.rpm have been successfully installed but then I get:

[root@localhost root]# rpm -Uvh aMule-2.0.0-1.FC3.i386.rpm
error: Failed dependencies:
        libstdc++.so.6 is needed by aMule-2.0.0-1
        libstdc++.so.6(CXXABI_1.3) is needed by aMule-2.0.0-1
        libstdc++.so.6(GLIBCXX_3.4) is needed by aMule-2.0.0-1

I know that this problem depends upon the fact that my rpm is a FC3 rpm and I have gcc-3.2.2-5.
I tried to compile the sources but I got a lots of errors...  (I'm still a beginner with linux)

Can someone help me? Thanks to all
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
RE: problem with RedHat9
« Reply #1 on: May 07, 2005, 02:32:40 PM »

Quote
Originally posted by Frisey
I know that this problem depends upon the fact that my rpm is a FC3 rpm and I have gcc-3.2.2-5.

As you already know, that's exactly the problem.
Quote
I tried to compile the sources but I got a lots of errors...  (I'm still a beginner with linux)

Can someone help me? Thanks to all

Sure, if you can provide us the error messages ;)
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

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: problem with RedHat9
« Reply #2 on: May 07, 2005, 02:43:32 PM »

post the output of:

ls -l /usr/bin/wx*

i bet you lack some symlink ;)

Frisey

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: problem with RedHat9
« Reply #3 on: May 07, 2005, 05:03:53 PM »

Ok, that's the output of ls -l /usr/bin/wx*

[root@localhost frisey]# ls -l /usr/bin/wx*
-rwxr-xr-x       1 root     root         4864 Nov 28  2003 /usr/bin/wxbase-2.4-config
lrwxrwxrwx    1 root     root           26 May  7 11:54 /usr/bin/wxbase-config -> /usr/bin/wxbase-2.4-config
lrwxrwxrwx    1 root     root           25 May  7 11:53 /usr/bin/wx-config -> /usr/bin/wxgtk-2.4-config
-rwxr-xr-x    1 root     root         5159 Sep 21  2003 /usr/bin/wxgtk-2.4-config

If I don't fix this problem with the rpms, I'll open a new post in the Compilation Problem section of the forum in which I'll post all the errors!
Thank you all guys!!!
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: problem with RedHat9
« Reply #4 on: May 07, 2005, 05:20:20 PM »

looks ok so far.. does the compilation still fails?

ps. don't open a new thread, i'll just move this one to the right forum

Frisey

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: problem with RedHat9
« Reply #5 on: May 08, 2005, 11:56:56 AM »

Ok!
So,  ./configure seems to be ok; errors come when I type "gmake".
Here's what I get (there are only the last lines of the output):

Code: [Select]
/usr/include/wx/window.h:1045: `void DoSetSize(int, int, int, int, int = 3)' used prior to declaration
/usr/include/wx/window.h:1048: virtual outside class declaration
/usr/include/wx/window.h:1048: function `void DoSetClientSize(int, int)' is initialized like a variable
/usr/include/wx/window.h:1048: `void DoSetClientSize(int, int)' used prior to declaration
/usr/include/wx/window.h:1054: virtual outside class declaration
/usr/include/wx/window.h:1054: function `void DoMoveWindow(int, int, int, int)' is initialized like a variable
/usr/include/wx/window.h:1066: virtual outside class declaration
/usr/include/wx/window.h:1066: non-member function `void AdjustForParentClientOrigin(int&, int&, int)' cannot have `const' method qualifier
/usr/include/wx/window.h:1069: parse error before `private'
/usr/include/wx/window.h:1077: parse error before `public'
/usr/include/wx/window.h:1077: virtual outside class declaration
/usr/include/wx/window.h:1077: non-member function `wxClassInfo* GetClassInfo()' cannot have `const' method qualifier
/usr/include/wx/window.h:1078: parse error before `private'
/usr/include/wx/window.h:1078: `wxWindowBase& operator=(const wxWindowBase&)' must be a nonstatic member function
/usr/include/wx/window.h:1078: `wxWindowBase& operator=(const wxWindowBase&)' must take exactly two arguments
/usr/include/wx/window.h:1079: parse error before `private'
/usr/include/wx/window.h:1079: virtual outside class declaration
/usr/include/wx/window.h:1079: non-member function `const wxEventTable* GetEventTable()' cannot have `const' method qualifier
/usr/include/wx/window.h:1079: virtual outside class declaration
/usr/include/wx/window.h:1079: non-member function `wxEventHashTable& GetEventHashTable()' cannot have `const' method qualifier/usr/include/wx/window.h:1080: parse error before `}' token
/usr/include/wx/window.h:1155: no `wxWindow* wxWindowBase::GetGrandParent() const' member function declared in class `wxWindowBase'
/usr/include/wx/window.h: In member function `wxWindow* wxWindowBase::GetGrandParent() const':
/usr/include/wx/window.h:1156: invalid use of undefined type `struct wxWindow'
/usr/local/include/wx-2.6/wx/containr.h:22: forward declaration of `struct wxWindow'
/usr/local/include/wx-2.6/wx/hash.h:272: confused by earlier errors, bailing out
gmake[3]: *** [amule-AddFriend.o] Error 1
gmake[3]: Leaving directory `/usr/local/aMule-2.0.0/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/local/aMule-2.0.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/aMule-2.0.0'
gmake: *** [all] Error 2
Can this depend on the fatct that wxBase and wxGTK have been installed with "rpm - technique" instead of the manual installation ?
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: problem with RedHat9
« Reply #6 on: May 08, 2005, 12:07:17 PM »

no, the problem is that you have 2 different wx versions on your pc ..

Code: [Select]
/usr/include/wx/window.h:1156: invalid use of undefined type `struct wxWindow'
/usr/local/include/wx-2.6/wx/containr.h:22: forward declaration of `struct wxWindow'

Frisey

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: problem with RedHat9
« Reply #7 on: May 08, 2005, 12:43:31 PM »

This is true! Before installing wxGTK-2.4.2 I installed wxGTK-2.6 with a manual installation! But now I don't know how I can unistall it...
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: problem with RedHat9
« Reply #8 on: May 08, 2005, 12:45:42 PM »

rm -f  /usr/local/bin/wx*
rm -rf /usr/local/lib/wx
rm -f  /usr/local/lib/libwx*
ldconfig

Frisey

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: problem with RedHat9
« Reply #9 on: May 08, 2005, 01:03:39 PM »

ok, thanks! Now I get this :-( :

Code: [Select]
/usr/include/wx/app.h:131:      virtual int wxAppBase::OnRun()
amule-gui.cpp: At global scope:
amule-gui.cpp:153: syntax error before `::' token
amule-gui.cpp:154: syntax error before `::' token
amule-gui.cpp: In constructor `CamuleGuiBase::CamuleGuiBase()':
amule-gui.cpp:166: invalid use of undefined type `struct MyTimer'
amule-gui.cpp:158: forward declaration of `struct MyTimer'
amule-gui.cpp: In member function `virtual void CamuleGuiBase::ShowAlert(wxString, wxString, int)':
amule-gui.cpp:179: `wxMessageBox' undeclared (first use this function)
amule-gui.cpp:253:18: warning: #warning Need to parse the geometry for non-GTK/WIN platforms
amule-gui.cpp: In member function `virtual int CamuleGuiBase::InitGui(bool, wxString&)':
amule-gui.cpp:184: warning: unused parameter `wxString&geom_string'
amule-gui.cpp: In member function `bool CamuleGuiBase::CopyTextToClipboard(wxString)':
amule-gui.cpp:278: `wxTheClipboard' undeclared (first use this function)
amule-gui.cpp:281: parse error before `(' token
amule-gui.cpp:277: warning: unused parameter `wxString strText'
amule-gui.cpp: In member function `virtual int CamuleGuiApp::InitGui(bool, wxString&)':
amule-gui.cpp:300: `SetTopWindow' undeclared (first use this function)
amule-gui.cpp: In member function `virtual int CamuleGuiApp::OnExit()':
amule-gui.cpp:315: invalid use of undefined type `struct wxTimer'
amule.h:82: forward declaration of `struct wxTimer'
amule-gui.cpp: In member function `void CamuleGuiApp::ShutDown()':
amule-gui.cpp:323: no matching function for call to `CamuleDlg::Destroy()'
amule-gui.cpp:158: `mytimer' has incomplete type
amule-gui.cpp:158: forward declaration of `struct MyTimer'
amule-gui.cpp: In member function `virtual bool CamuleGuiApp::OnInit()':
amule-gui.cpp:342: invalid use of undefined type `struct wxTimer'
amule.h:82: forward declaration of `struct wxTimer'
amule-gui.cpp:358: invalid use of undefined type `struct wxTimer'
amule.h:82: forward declaration of `struct wxTimer'
/usr/include/c++/3.2.2/bits/stl_multimap.h: At top level:
/usr/include/wx/font.h:95: warning: `wxFont* New(int, int, int, int, bool, const wxString&, wxFontEncoding)' declared `static' but never defined
/usr/include/wx/font.h:98: warning: `wxFont* New(const wxNativeFontInfo&)' declared `static' but never defined
/usr/include/wx/font.h:101: warning: `wxFont* New(const wxString&)' declared `static' but never defined
/usr/include/wx/font.h:151: warning: `void SetDefaultEncoding(wxFontEncoding)' declared `static' but never defined
make[3]: *** [amule-amule-gui.o] Error 1
make[3]: Leaving directory `/usr/local/aMule-2.0.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/aMule-2.0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/aMule-2.0.0'
make: *** [all] Error 2
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: problem with RedHat9
« Reply #10 on: May 08, 2005, 01:05:27 PM »

amule-gui (the remote) does not compile with wxGTK-2.4.2 ;)

Frisey

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: problem with RedHat9
« Reply #11 on: May 08, 2005, 01:12:53 PM »

ok, I' going to uninstall wxGTK-2.4.2. I'll try with wxGTK-2.6.0
Logged