aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: [SOLVED] Gentoo emerge (-* +amuled +remote) problem  (Read 5040 times)

DigitoErgoSum

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
[SOLVED] Gentoo emerge (-* +amuled +remote) problem
« on: July 13, 2005, 06:08:01 PM »

I'm trying to install amule on my router without X installed.
I tried the ebuilds (61767 and 61794) found at LINK but, emerging, i receive an error.

Quote
verbo ~ # emerge -pv amule

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] net-p2p/amule-2.0.3  +amuled -debug -gtk2 -nls -nosystray -optimize +remote -remotegui -stats -unicode -wxgtk1 0 kB [1]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/overlays/portage
Quote
... ... ... ... ... ...
In file included from amule-gui.cpp:95:
ChatWnd.h:33:54: wx/panel.h: No such file or directory
ChatWnd.h:34:70: wx/notebook.h: No such file or directory
In file included from amule-gui.cpp:95:
ChatWnd.h:44: error: parse error before `{' token
ChatWnd.h:47: error: destructors must be member functions
ChatWnd.h:61: error: parse error before `protected'
ChatWnd.h:67: error: parse error before `private'
ChatWnd.h:67: error: virtual outside class declaration
ChatWnd.h:67: error: non-member function `const wxEventTable* GetEventTable()' cannot have `const' method qualifier
ChatWnd.h:67: error: redefinition of `wxEventHashTable sm_eventHashTable'
extern/listctrl.260.h:258: error: `wxEventHashTable sm_eventHashTable' previously declared here
ChatWnd.h:67: error: no matching function for call to `wxEventHashTable::wxEventHashTable()'
/usr/include/wx-2.6/wx/event.h:2286: error: candidates are: wxEventHashTable::wxEventHashTable(const wxEventHashTable&)
/usr/include/wx-2.6/wx/event.h:2250: error:                 wxEventHashTable::wxEventHashTable(const wxEventTable&)
ChatWnd.h:67: error: virtual outside class declaration
ChatWnd.h:67: error: non-member function `wxEventHashTable& GetEventHashTable()' cannot have `const' method qualifier
ChatWnd.h:71: error: parse error before `}' token
amule-gui.cpp:153: error: syntax error before `::' token
amule-gui.cpp:154: error: syntax error before `::' token
amule-gui.cpp: In constructor `CamuleGuiBase::CamuleGuiBase()':
amule-gui.cpp:166: error: invalid use of undefined type `struct MyTimer'
amule-gui.cpp:158: error: forward declaration of `struct MyTimer'
amule-gui.cpp: In member function `virtual void CamuleGuiBase::ShowAlert(wxString, wxString, int)':
amule-gui.cpp:179: error: `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:265: error: invalid use of undefined type `struct wxPoint'
/usr/include/wx-2.6/wx/utils.h:55: error: forward declaration of `struct wxPoint'
amule-gui.cpp:266: error: `wxSize' undeclared (first use this function)
amule-gui.cpp:268: error: no matching function for call to `CamuleDlg::CamuleDlg(NULL, wxString&)'
amuleDlg.h:74: error: candidates are: CamuleDlg::CamuleDlg()
amuleDlg.h:74: error:                 CamuleDlg::CamuleDlg(const CamuleDlg&)
amule-gui.cpp:184: warning: unused parameter `wxString&geom_string'
amule-gui.cpp: In member function `bool CamuleGuiBase::CopyTextToClipboard(wxString)':
amule-gui.cpp:278: error: `wxTheClipboard' undeclared (first use this function)
amule-gui.cpp:281: error: parse error before `(' token
amule-gui.cpp:277: warning: unused parameter `wxString strText'
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.5-20050130/include/g++-v3/bits/stl_multimap.h: At top level:
StatisticsDlg.h:64: warning: `COLORREF getColors(int)' declared `static' but never defined
{standard input}: Assembler messages:
{standard input}:210: Error: symbol `sm_eventHashTable' is already defined
{standard input}:236: Error: symbol `sm_eventHashTable' is already defined
{standard input}:244: Error: symbol `sm_eventHashTable' is already defined
{standard input}:270: Error: symbol `sm_eventHashTable' is already defined
{standard input}:306: Error: symbol `sm_eventHashTable' is already defined
{standard input}:354: Error: symbol `sm_eventHashTable' is already defined
{standard input}:356: Error: symbol `sm_eventHashTable' is already defined
make[3]: *** [amulegui-amule-gui.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/amule-2.0.3/work/aMule-2.0.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/amule-2.0.3/work/aMule-2.0.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/amule-2.0.3/work/aMule-2.0.3'
make: *** [all] Error 2

!!! ERROR: net-p2p/amule-2.0.3 failed.
!!! Function src_compile, Line 142, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Dependencies:

Quote
verbo ~ # emerge -pv wxGTK zlib libpng

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] x11-libs/wxGTK-2.6.0-r1  -debug -doc -gnome -gtk2 -joystick -jpeg -odbc -opengl -png -sdl -tiff -unicode -wxgtk1 0 kB
[ebuild   R   ] sys-libs/zlib-1.2.2-r1  -build 0 kB
[ebuild   R   ] media-libs/libpng-1.2.8  -doc 0 kB
« Last Edit: July 17, 2005, 07:09:31 PM by DigitoErgoSum »
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: [SOLVED] Gentoo emerge (-* +amuled +remote) problem
« Reply #1 on: July 13, 2005, 07:20:29 PM »

I don't know much about gentoo, nor this ebuild, but you're trying to build the monolithic amule application. If there is an option to disable it, then it should resolve your problem. Otherwise you have to build it from the tarball yourself.
Logged
concordia cum veritate

DigitoErgoSum

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
Re: [SOLVED] Gentoo emerge (-* +amuled +remote) problem
« Reply #2 on: July 13, 2005, 08:03:03 PM »

so something like --enable-amule-daemon --enable-amule-gui --disable-systray don't work ???
What do i need ??? --disable-monolithic ?
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: [SOLVED] Gentoo emerge (-* +amuled +remote) problem
« Reply #3 on: July 13, 2005, 08:25:10 PM »

Quote
so something like --enable-amule-daemon --enable-amule-gui --disable-systray don't work ???
They do work.

Quote
What do i need ??? --disable-monolithic ?
Exactly.
Logged
concordia cum veritate

Rafal_Glazar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
Re: [SOLVED] Gentoo emerge (-* +amuled +remote) problem
« Reply #4 on: July 14, 2005, 05:47:03 PM »

It looks like it is problem with your wxGTK install. You just install wxbase package and not wxGTK. Look at your USE flags. You have -gtk2 and -wxgtk1 so it does not compile against gtk2 nor gtk1. Compile your wxGTK package with one of those flags (or both if you like) and see what happen.
Logged

Rafal_Glazar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
Re: [SOLVED] Gentoo emerge (-* +amuled +remote) problem
« Reply #5 on: July 14, 2005, 05:54:02 PM »

Oh. I did not notice you want just amule deamon. Forget what I have said in my previous post.
Logged

DigitoErgoSum

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
Re: [SOLVED] Gentoo emerge (-* +amuled +remote) problem
« Reply #6 on: July 15, 2005, 11:51:49 AM »

I made it works modifying the ebuild from
Quote
if use amuled && use nosystray; then EXTRA_ECONF="--enable-amule-daemon --enable-amule-gui --disable-systray"
into
Quote
if use amuled && use nosystray; then EXTRA_ECONF="--enable-amule-daemon --disable-systray --disable-monolithic"
Now I have problems making it works with /etc/init.d. Here is the code of initscript.
I ran amuled as root and it works without problems, i copied the config files into p2p home dir and i tried /etc/init.d/amuled start.
Quote
verbo ~ # /etc/init.d/amuled start
 * Starting aMule Daemon ...
 * aMule daemon can't be started! Check logfile: /var/log/amuled.log                                   [ ok ]
Logfile is empty :(
Do you have any idea ????

Bye & thx
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: [SOLVED] Gentoo emerge (-* +amuled +remote) problem
« Reply #7 on: July 15, 2005, 01:11:04 PM »

Try changing the key "AcceptExternalConnections" in ~/.aMule/amule.conf to "AcceptExternalConnections=1". Or if you copied the amule.conf file (I'm not sure from your post), check that the paths in the file are correct and that amuled has access to them.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: [SOLVED] Gentoo emerge (-* +amuled +remote) problem
« Reply #8 on: July 15, 2005, 01:12:27 PM »

also since you are not the first one with this problem we have a wiki page
check
http://wiki.amule.org
and read the webserver setup since it covers everything you need to know for this stuff
http://www.amule.org/wiki/index.php/Webserver

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."

DigitoErgoSum

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
Re: [SOLVED] Gentoo emerge (-* +amuled +remote) problem
« Reply #9 on: July 17, 2005, 07:07:39 PM »

:tongue: ehm ehm :)
It was a permission problem... I ran amuled as root and after i copied all configuration files to /home/p2p/ without changing the owner :D :D :D
There's always something to learn or to check :D
Thx to all of you.
Logged