aMule Forum

English => Compilation problems => Topic started by: einheitlix on May 31, 2005, 04:30:28 PM

Title: Problems installing amuled in $HOME
Post by: einheitlix on May 31, 2005, 04:30:28 PM
Hi,

I'm trying to install an amuled with amuleweb on my father's computer, where I don't have root access (well, I do know the password, but I'm not supposed to install anything as root).

This is a Gentoo Linux machine, and the following (possibly relevant) packages are already installed:

Quote
malte@freya malte $ qpkg -i amule
net-p2p/amule-2.0.0_rc7 *
        aMule, the all-platform eMule p2p client [ http://www.amule.org/ ]
net-p2p/amule-2.0.0_rc5
        aMule, the all-platform eMule p2p client [ http://www.amule.org/ ]
net-p2p/amule-2.0.0_rc7
        aMule, the all-platform eMule p2p client [ http://www.amule.org/ ]
net-p2p/amule-1.2.8
        aMule, the all-platform eMule p2p client [ http://www.amule.org ]
net-p2p/amule-2.0.0_rc6
        aMule, the all-platform eMule p2p client [ http://www.amule.org/ ]
malte@freya malte $ qpkg -i wxGTK
x11-libs/wxGTK-2.4.2-r3 *
        GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit [ http://www.wxwidgets.org/ ]
x11-libs/wxGTK-2.5.3
        GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit [ http://www.wxwidgets.org/ ]
x11-libs/wxGTK-2.4.2-r2
        GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit [ http://www.wxwidgets.org/ ]
x11-libs/wxGTK-2.6.0-r1
        GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit and
wxbase non-gui library [ http://www.wxwidgets.org/ ]
x11-libs/wxGTK-2.4.2-r3
        GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit [ http://www.wxwidgets.org/ ]

The * means that a package is installed. In short, the packages installed are:
amule-2.0.0_rc7
wxGTK-2.4.2-r3

The installed amule is, however, only the monolithic application without amuled or amuleweb (obviously, since there is no wxGTK >= 2.5)

So, first thing I had to do was install wxWidgets 2.6.0 in my $HOME directory.
So I did a
Quote
malte@freya wxGTK-2.6.0 $ ./configure --prefix=$HOME/wxGTK --disable-gtk2 --with-gtk
...and then compiled and installed wxWidgets, which worked great.

Maybe this is of interest:
Quote
malte@freya malte $ ls ~/wxGTK/lib
libwx_base-2.6.so            libwx_base_xml-2.6.so        libwx_gtk_core-2.6.so        libwx_gtk_media-2.6.so        libwx_gtk_xrc-2.6.so
libwx_base-2.6.so.0          libwx_base_xml-2.6.so.0      libwx_gtk_core-2.6.so.0      libwx_gtk_media-2.6.so.0      libwx_gtk_xrc-2.6.so.0
libwx_base-2.6.so.0.0.0      libwx_base_xml-2.6.so.0.0.0  libwx_gtk_core-2.6.so.0.0.0  libwx_gtk_media-2.6.so.0.0.0  libwx_gtk_xrc-2.6.so.0.0.0
libwx_base_net-2.6.so        libwx_gtk_adv-2.6.so         libwx_gtk_html-2.6.so        libwx_gtk_qa-2.6.so           wx
libwx_base_net-2.6.so.0      libwx_gtk_adv-2.6.so.0       libwx_gtk_html-2.6.so.0      libwx_gtk_qa-2.6.so.0
libwx_base_net-2.6.so.0.0.0  libwx_gtk_adv-2.6.so.0.0.0   libwx_gtk_html-2.6.so.0.0.0  libwx_gtk_qa-2.6.so.0.0.0

Now I configured amule as follows:
Quote
./configure --prefix=$HOME --enable-optimize --disable-monolithic --enable-amule-daemon --enable-amulecmd --enable-webserver --with-wx-prefix=/home/freyagard/malte/wxGTK
It compiles and install without any problems, but I get the following error when I try to run amuled:
Quote
malte@freya malte $ ~/bin/amuled
/home/freyagard/malte/bin/amuled: error while loading shared libraries: libwx_base-2.6.so.0: cannot open shared object file: No such file or directory
It looks like amuled can't find the wxWidgets libs, although I configured it with --with-wx-prefix=/home/freyagard/malte/wxGTK; what else could I do?

If anyone could help me with this, I'd be very happy :)

But wait... there's more!
I thought to myself, If amuled won't find the libraries, why don't I just link them statically? That way it's even a bit faster and I can get rid of that ~/wxGTK directory, so it can't be all that bad.

Thus, I configured amule again (after a make distclean):
Quote
malte@freya aMule-2.0.1 $ ./configure --prefix=$HOME --enable-optimize --disable-monolithic --enable-amule-daemon --enable-amulecmd --enable-webserver --with-wx-prefix=/home/freyagard/malte/wxGTK --enable-static

...

checking whether we need the GUI... no
checking for wx-config... /home/freyagard/malte/wxGTK/bin/wx-config
checking for wxWidgets version >= 2.4.2... yes (version 2.6.0)
configure: WARNING: wxWidgets >=2.5.0: Using wx-config --libs base,net

  Warning: No config found to match: /home/freyagard/malte/wxGTK/bin/wx-config --prefix=/home/freyagard/malte/wxGTK --static --libs base,net
           in /home/freyagard/malte/wxGTK/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

configure: WARNING: Disabling taskbar icon support as we have no GUI.
checking whether to use embedded Crypto... yes

...

  Configure script has finished system check.

  Configured aMule 2.0.1 for 'x86_64-unknown-linux'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /home/freyagard/malte
  Should aMule be compiled in debug mode?                    yes
  Should aMule be compiled with profiling?                   no
  Should aMule be compiled with optimizations?               yes
  Should aMule be compiled with taskbar icon support?        no
  Should aMule be compiled with old GTK taskbar icon?        no
  Should aMule be compiled with UTF-8 taskbar icon support?  no
  Should aMule be linked against patched gsocket?            no
  Should aMule monolithic application be built?              no
  Should aMule daemon version be built?                      yes
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Crypto++ library/headers style?                            embedded

  **** aMule TextClient ****
  Should aMule Command Line Client be built?                 yes
  Should aMule GUI Client be built?                          no

  **** aMule WebServer ****
  Should aMule WebServer be built?                           yes
  Should aMule WebServer GUI be built?                       no

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                  yes

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?        no
  Should aMuleLinkCreator for console (alcc) be built?       no

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                  no
  Should aMule GUI Statistics (wxCas) be built?              no

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          no
  Libraries aMule will use to build:
                                       wxWidgets             2.6.0
                                       crypto++              embedded
                                       libpng                1.2.8
                                       zlib                  1.2.2

Albeit configure does run fine, except for that little warning over there from wx-config, I get the following error when I try to compile it:

Quote
malte@freya aMule-2.0.1 $ make
make  all-recursive
make[1]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1'
Making all in m4
make[2]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/m4'
Making all in intl
make[2]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/intl'
Making all in po
make[2]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/po'
Making all in docs
make[2]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/docs'
Making all in man
make[3]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/docs/man'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/docs/man'
make[3]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/docs'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/docs'
make[2]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/docs'
Making all in src
make[2]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src'
Making all in utils
make[3]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/utils'
Making all in xas
make[4]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/utils/xas'
Making all in docs
make[5]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/utils/xas/docs'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/utils/xas/docs'
make[5]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/utils/xas'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/utils/xas'
make[4]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/utils/xas'
make[4]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/utils'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/utils'
make[3]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/utils'
Making all in pixmaps
make[3]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/pixmaps'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/pixmaps'
Making all in kademlia
make[3]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/kademlia'
Making all in io
make[4]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/kademlia/io'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/kademlia/io'
Making all in kademlia
make[4]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/kademlia/kademlia'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/kademlia/kademlia'
Making all in net
make[4]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/kademlia/net'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/kademlia/net'
Making all in routing
make[4]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/kademlia/routing'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/kademlia/routing'
Making all in utils
make[4]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/kademlia/utils'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/kademlia/utils'
make[4]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/kademlia'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/kademlia'
make[3]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/kademlia'
Making all in webserver
make[3]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/webserver'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src/webserver'
make[3]: Entering directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/freyagard/malte/wxGTK/lib/wx/include/gtk-ansi-release-2.6 -I/home/freyagard/malte/wxGTK/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -DwxUSE_GUI=0 -I/usr/include/libpng12 -DWITH_LIBPNG -DHAVE_BFD -DEC_REMOTE -DWEBSERVERDIR="\"/home/freyagard/malte/share/amule/webserver\"" -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2  -MT amuleweb-WebServer.o -MD -MP -MF ".deps/amuleweb-WebServer.Tpo" -c -o amuleweb-WebServer.o `test -f 'WebServer.cpp' || echo './'`WebServer.cpp; \
then mv -f ".deps/amuleweb-WebServer.Tpo" ".deps/amuleweb-WebServer.Po"; else rm -f ".deps/amuleweb-WebServer.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/freyagard/malte/wxGTK/lib/wx/include/gtk-ansi-release-2.6 -I/home/freyagard/malte/wxGTK/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -DwxUSE_GUI=0 -I/usr/include/libpng12 -DWITH_LIBPNG -DHAVE_BFD -DEC_REMOTE -DWEBSERVERDIR="\"/home/freyagard/malte/share/amule/webserver\"" -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2  -MT amuleweb-WebInterface.o -MD -MP -MF ".deps/amuleweb-WebInterface.Tpo" -c -o amuleweb-WebInterface.o `test -f 'WebInterface.cpp' || echo './'`WebInterface.cpp; \
then mv -f ".deps/amuleweb-WebInterface.Tpo" ".deps/amuleweb-WebInterface.Po"; else rm -f ".deps/amuleweb-WebInterface.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/freyagard/malte/wxGTK/lib/wx/include/gtk-ansi-release-2.6 -I/home/freyagard/malte/wxGTK/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -DwxUSE_GUI=0 -I/usr/include/libpng12 -DWITH_LIBPNG -DHAVE_BFD -DEC_REMOTE -DWEBSERVERDIR="\"/home/freyagard/malte/share/amule/webserver\"" -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2  -MT amuleweb-WebSocket.o -MD -MP -MF ".deps/amuleweb-WebSocket.Tpo" -c -o amuleweb-WebSocket.o `test -f 'WebSocket.cpp' || echo './'`WebSocket.cpp; \
then mv -f ".deps/amuleweb-WebSocket.Tpo" ".deps/amuleweb-WebSocket.Po"; else rm -f ".deps/amuleweb-WebSocket.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/freyagard/malte/wxGTK/lib/wx/include/gtk-ansi-release-2.6 -I/home/freyagard/malte/wxGTK/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -DwxUSE_GUI=0 -I/usr/include/libpng12 -DWITH_LIBPNG -DHAVE_BFD -DEC_REMOTE -DWEBSERVERDIR="\"/home/freyagard/malte/share/amule/webserver\"" -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2  -MT amuleweb-MD5Sum.o -MD -MP -MF ".deps/amuleweb-MD5Sum.Tpo" -c -o amuleweb-MD5Sum.o `test -f 'MD5Sum.cpp' || echo './'`MD5Sum.cpp; \
then mv -f ".deps/amuleweb-MD5Sum.Tpo" ".deps/amuleweb-MD5Sum.Po"; else rm -f ".deps/amuleweb-MD5Sum.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/freyagard/malte/wxGTK/lib/wx/include/gtk-ansi-release-2.6 -I/home/freyagard/malte/wxGTK/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -DwxUSE_GUI=0 -I/usr/include/libpng12 -DWITH_LIBPNG -DHAVE_BFD -DEC_REMOTE -DWEBSERVERDIR="\"/home/freyagard/malte/share/amule/webserver\"" -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2  -MT amuleweb-ECSocket.o -MD -MP -MF ".deps/amuleweb-ECSocket.Tpo" -c -o amuleweb-ECSocket.o `test -f 'ECSocket.cpp' || echo './'`ECSocket.cpp; \
then mv -f ".deps/amuleweb-ECSocket.Tpo" ".deps/amuleweb-ECSocket.Po"; else rm -f ".deps/amuleweb-ECSocket.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/freyagard/malte/wxGTK/lib/wx/include/gtk-ansi-release-2.6 -I/home/freyagard/malte/wxGTK/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -DwxUSE_GUI=0 -I/usr/include/libpng12 -DWITH_LIBPNG -DHAVE_BFD -DEC_REMOTE -DWEBSERVERDIR="\"/home/freyagard/malte/share/amule/webserver\"" -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2  -MT amuleweb-ExternalConnector.o -MD -MP -MF ".deps/amuleweb-ExternalConnector.Tpo" -c -o amuleweb-ExternalConnector.o `test -f 'ExternalConnector.cpp' || echo './'`ExternalConnector.cpp; \
then mv -f ".deps/amuleweb-ExternalConnector.Tpo" ".deps/amuleweb-ExternalConnector.Po"; else rm -f ".deps/amuleweb-ExternalConnector.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/freyagard/malte/wxGTK/lib/wx/include/gtk-ansi-release-2.6 -I/home/freyagard/malte/wxGTK/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -DwxUSE_GUI=0 -I/usr/include/libpng12 -DWITH_LIBPNG -DHAVE_BFD -DEC_REMOTE -DWEBSERVERDIR="\"/home/freyagard/malte/share/amule/webserver\"" -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2  -MT amuleweb-ECPacket.o -MD -MP -MF ".deps/amuleweb-ECPacket.Tpo" -c -o amuleweb-ECPacket.o `test -f 'ECPacket.cpp' || echo './'`ECPacket.cpp; \
then mv -f ".deps/amuleweb-ECPacket.Tpo" ".deps/amuleweb-ECPacket.Po"; else rm -f ".deps/amuleweb-ECPacket.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/freyagard/malte/wxGTK/lib/wx/include/gtk-ansi-release-2.6 -I/home/freyagard/malte/wxGTK/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -DwxUSE_GUI=0 -I/usr/include/libpng12 -DWITH_LIBPNG -DHAVE_BFD -DEC_REMOTE -DWEBSERVERDIR="\"/home/freyagard/malte/share/amule/webserver\"" -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2  -MT amuleweb-OtherFunctions.o -MD -MP -MF ".deps/amuleweb-OtherFunctions.Tpo" -c -o amuleweb-OtherFunctions.o `test -f 'OtherFunctions.cpp' || echo './'`OtherFunctions.cpp; \
then mv -f ".deps/amuleweb-OtherFunctions.Tpo" ".deps/amuleweb-OtherFunctions.Po"; else rm -f ".deps/amuleweb-OtherFunctions.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/freyagard/malte/wxGTK/lib/wx/include/gtk-ansi-release-2.6 -I/home/freyagard/malte/wxGTK/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -DwxUSE_GUI=0 -I/usr/include/libpng12 -DWITH_LIBPNG -DHAVE_BFD -DEC_REMOTE -DWEBSERVERDIR="\"/home/freyagard/malte/share/amule/webserver\"" -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2  -MT amuleweb-ECSpecialTags.o -MD -MP -MF ".deps/amuleweb-ECSpecialTags.Tpo" -c -o amuleweb-ECSpecialTags.o `test -f 'ECSpecialTags.cpp' || echo './'`ECSpecialTags.cpp; \
then mv -f ".deps/amuleweb-ECSpecialTags.Tpo" ".deps/amuleweb-ECSpecialTags.Po"; else rm -f ".deps/amuleweb-ECSpecialTags.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/freyagard/malte/wxGTK/lib/wx/include/gtk-ansi-release-2.6 -I/home/freyagard/malte/wxGTK/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -DwxUSE_GUI=0 -I/usr/include/libpng12 -DWITH_LIBPNG -DHAVE_BFD -DEC_REMOTE -DWEBSERVERDIR="\"/home/freyagard/malte/share/amule/webserver\"" -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2  -MT amuleweb-StringFunctions.o -MD -MP -MF ".deps/amuleweb-StringFunctions.Tpo" -c -o amuleweb-StringFunctions.o `test -f 'StringFunctions.cpp' || echo './'`StringFunctions.cpp; \
then mv -f ".deps/amuleweb-StringFunctions.Tpo" ".deps/amuleweb-StringFunctions.Po"; else rm -f ".deps/amuleweb-StringFunctions.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/freyagard/malte/wxGTK/lib/wx/include/gtk-ansi-release-2.6 -I/home/freyagard/malte/wxGTK/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -DwxUSE_GUI=0 -I/usr/include/libpng12 -DWITH_LIBPNG -DHAVE_BFD -DEC_REMOTE -DWEBSERVERDIR="\"/home/freyagard/malte/share/amule/webserver\"" -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2  -MT amuleweb-NetworkFunctions.o -MD -MP -MF ".deps/amuleweb-NetworkFunctions.Tpo" -c -o amuleweb-NetworkFunctions.o `test -f 'NetworkFunctions.cpp' || echo './'`NetworkFunctions.cpp; \
then mv -f ".deps/amuleweb-NetworkFunctions.Tpo" ".deps/amuleweb-NetworkFunctions.Po"; else rm -f ".deps/amuleweb-NetworkFunctions.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/freyagard/malte/wxGTK/lib/wx/include/gtk-ansi-release-2.6 -I/home/freyagard/malte/wxGTK/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -DwxUSE_GUI=0 -I/usr/include/libpng12 -DWITH_LIBPNG -DHAVE_BFD -DEC_REMOTE -DWEBSERVERDIR="\"/home/freyagard/malte/share/amule/webserver\"" -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2  -MT amuleweb-Format.o -MD -MP -MF ".deps/amuleweb-Format.Tpo" -c -o amuleweb-Format.o `test -f 'Format.cpp' || echo './'`Format.cpp; \
then mv -f ".deps/amuleweb-Format.Tpo" ".deps/amuleweb-Format.Po"; else rm -f ".deps/amuleweb-Format.Tpo"; exit 1; fi
g++  -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2   -static  -lpthread -o amuleweb  amuleweb-WebServer.o amuleweb-WebInterface.o amuleweb-WebSocket.o amuleweb-MD5Sum.o amuleweb-ECSocket.o amuleweb-ExternalConnector.o amuleweb-ECPacket.o amuleweb-OtherFunctions.o amuleweb-ECSpecialTags.o amuleweb-StringFunctions.o amuleweb-NetworkFunctions.o amuleweb-Format.o  -lz -lreadline -lcurses -L/usr/lib -Wl,-rpath,/usr/lib -lpng12 -lz -lm -lpng12 -lz -lm -lpng  -lbfd -liberty
/usr/lib/libreadline.a(complete.o)(.text+0x1bc9): In function `rl_username_completion_function':
: warning: Using 'getpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libreadline.a(tilde.o)(.text+0x4ef): In function `tilde_expand_word':
: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libreadline.a(shell.o)(.text+0x10b): In function `sh_get_home_dir':
: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libreadline.a(complete.o)(.text+0x1bc4): In function `rl_username_completion_function':
: warning: Using 'setpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libreadline.a(complete.o)(.text+0x1c64): In function `rl_username_completion_function':
: warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
amuleweb-WebServer.o(.text+0xec0): In function `_SpecialChars(wxString)':
/home/freyagard/malte/aMule-2.0.1/src/WebServer.cpp:114: undefined reference to `wxString::Replace(char const*, char const*, bool)'
amuleweb-WebServer.o(.text+0xed7):/home/freyagard/malte/aMule-2.0.1/src/WebServer.cpp:115: undefined reference to `wxString::Replace(char const*, char const*, bool)'
...and it goes on with erros like this for VERY long, until
Quote
/home/freyagard/malte/wxGTK/include/wx-2.6/wx/string.h:326: undefined reference to `wxStringBase::InitWith(char const*, unsigned long, unsigned long)'
amuleweb-Format.o(.gnu.linkonce.t._ZgtRK8wxStringPKc+0x5): In function `operator>(wxString const&, char const*)':
/home/freyagard/malte/wxGTK/include/wx-2.6/wx/string.h:1430: undefined reference to `wxString::Cmp(char const*) const'
collect2: ld returned 1 exit status
make[3]: *** [amuleweb] Error 1
make[3]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/data/home/freyagard/malte/aMule-2.0.1'

Clearly, it has something to do with that --enable-static option.
Also consider the following outputs
Quote
malte@freya malte $ ~/wxGTK/bin/wx-config --prefix=/home/freyagard/malte/wxGTK --libs base,net
-L/home/freyagard/malte/wxGTK/lib -pthread   -lwx_base-2.6 -lwx_base_net-2.6
malte@freya malte $ ~/wxGTK/bin/wx-config --prefix=/home/freyagard/malte/wxGTK --static --libs base,net

  Warning: No config found to match: /home/freyagard/malte/wxGTK/bin/wx-config --prefix=/home/freyagard/malte/wxGTK --static --libs base,net
           in /home/freyagard/malte/wxGTK/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

Any ideas? ?(

I would be great if anyone could help with either one of the two problems, though I'm really curious about both ;)

Thanks!

Malte
Title: Re: Problems installing amuled in $HOME
Post by: stefanero on May 31, 2005, 04:40:30 PM
yeah, return to the part wher you typed amuled in hte console and it could not find the libs ;)

then read this wiki here:
http://www.amule.org/wiki/index.php/Using_another_wxinstall

in the end it tells you to add the "home-wx-path" to your ld path
export LD_LIBRARY_PATH=~/aMule/lib/:$LD_LIBRARY_PATH

^^of course with the right path not aMule/lib/

then restart your amuled and should work

stefanero
Title: Re: Problems installing amuled in $HOME
Post by: einheitlix on May 31, 2005, 09:22:30 PM
Thanks, I did that and it almost works now :)

However, there's a new problem now:

Quote
malte@freya malte $ amuled
Initialising aMule
Checking if there is an instance already running...
Loading temp files from /home/freyagard/malte/.aMule/Temp.
Loading PartFile 2 of 2
All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4712
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672
Adding file /home/freyagard/malte/.aMule/Temp/003.part.met to shares
Empty dir /home/freyagard/malte/.aMule/Incoming/ shared

[1]+  Stopped                 amuled
malte@freya malte $ bg
[1]+ amuled &
malte@freya malte $ amuleweb
Enter password for mule connection:

Creating client...
Now, doing connection....
Using host 'localhost' port: 4712
Trying to connect (timeout = 10 sec)...
ExternalConn: Access denied because: Authentication failed.

Looks like amuled doesn't accept my password. But I did enter an md5 hash of my password in ~/.aMule/amule.conf, as told in the Wiki.
E.g. if I make this entry in the [ExternalConnect] section:
Code: [Select]
ECPassword=ca3c365274907c6fd527068788e14639
...and if I enter yourpasswordhere as a password, I get that very error message. Did I miss anything? Please, help me again :)

By the way, from http://www.amule.org/wiki/index.php/Using_another_wxinstall
Quote
NOTE 3: On some systems the above export command does not work, you have instead to run
export LD_LIBRARY_PATH=~/aMule/lib/:$LD_LIBRARY_PATH
This has been observed on Debian and Gentoo Linux.

Can't confirm that. For me, it works fine without the / after lib, and this machine is indeed running Gentoo ;) Anyways...
Title: Re: Problems installing amuled in $HOME
Post by: stefanero on May 31, 2005, 10:05:30 PM
heho
you need to setup a "ExternalConn: Access denied because: Authentication failed." password first

this seams to be wrong here....dont use
yourpasswordhere <<--- I doubt the md5sum amtches that really

create your own one and see if that works
Title: Re: Problems installing amuled in $HOME
Post by: stefanero on May 31, 2005, 10:08:21 PM
btw next thing you will notcie is, that amuleweb accepts empty passwords read this for an answer:

http://forum.amule.org/thread.php?threadid=6390
Title: Re: Problems installing amuled in $HOME
Post by: einheitlix on May 31, 2005, 10:26:26 PM
Hi,

I only wrote the thing with yourpasswordhere as an example. Of course I used my own password. And I entered the correct md5sum. I only did this to show I did everything right, i.e. there are no special signs or so in my password; if it doesn't work even with something as simple as youpasswordhere, it has to be a different problem.

And btw, the sample md5sum in the Wiki indeed matches yourpasswordhere ;)

Quote
malte@freya .aMule $ echo -n yourpasswordhere | md5sum | cut -d ' ' -f 1
ca3c365274907c6fd527068788e14639

The thing is, it doesn't work whatever password I use. Btw, I have no remote.conf; but I don't need one as long as I don't get amuleweb started, do I? In other words, I can take care of that as soon as I've had amuleweb connect to amuled, but that's not the problem here, is it?
Title: Re: Problems installing amuled in $HOME
Post by: einheitlix on June 01, 2005, 12:20:18 AM
I solved the problem. I love OpenSource :baby:
But it is very weird!

I added the following line to ExternalConnector.cpp


// ...
                m_password.Decode(MD5Sum(pass_plain).GetHash());
                Show( CFormat(_("MD5 hash of pass = %s\n")) % MD5Sum(pass_plain).GetHash());
                // MD5 hash for an empty string, according to rfc1321.
                if (m_password == CMD4Hash(wxT("D41D8CD98F00B204E9800998ECF8427E"))) {
                        m_password.Clear();
                }
// ...


This prints out the MD5 sum that amuleweb computes from the password you enter when it prompts you for it.

Now, when I start amuleweb and enter yourpasswordhere as my password:
Quote
malte@freya malte $ amuleweb
Enter password for mule connection:
MD5 hash of pass = a5b562bba8d9d601b202c7ceb9de464a

...

However:
Quote
malte@freya malte $ echo -n yourpasswordhere | md5sum | cut -d ' ' -f 1
ca3c365274907c6fd527068788e14639

Another example. If I start amuleweb and enter somepass as my password:
Quote
malte@freya malte $ amuleweb
Enter password for mule connection:
MD5 hash of pass = f41357804831a1bc5a7f56778713d816

...

But...
Quote
malte@freya malte $ echo -n somepass | md5sum | cut -d ' ' -f 1
eca3525d4c22173144170ed2c5b77c18

Of course, when I enter the md5 sum that amuleweb computes in my ~/.aMule/amule.conf, it works fine. I can connect to amuled successfully.

But what the heck!? Why does amuleweb computes different md5 sums than my md5sum utility does? I don't think I have an odd version of that program.

Quote
malte@freya malte $ md5sum --version
md5sum (coreutils) 5.2.1
Written by Ulrich Drepper and Scott Miller.

Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Also, Stefanero, when you wrote that aMule Webserver tutorial (http://www.amule.org/wiki/index.php/Webserver), you got the very same md5 sum for yourpasswordhere than I get with my md5sum utility. I quote from the Wiki:
Quote
AcceptExternalConnections=1 <-- To enable aMule listening for External Connections.
ECUseTCPPort=1 <-- To use the TCP port. Very important since Unix sockets are disabled.
ECPassword=ca3c365274907c6fd527068788e14639 <-- To find the MD5 string for your password, do:
$ echo -n yourpasswordhere | md5sum | cut -d ' ' -f 1
ca3c365274907c6fd527068788e14639

That is indeed what my md5sum utility tells me for yourpasswordhere (see above in this post).

So is this a bug in aMule? But why did noone else experience it, then? Does anyone have an explanation for this?
Could you try that out, Stefanero? I mean, edit the ExternalConnector.cpp like I did, recompile amule, enter yourpasswordhere as a password in amuleweb, and post here what it outputs. Also, please run the md5sum utility on that password to see whether it actually outputs ca3c365274907c6fd527068788e14639 for you.
If you can connect to amuled without problems, these strings must be equal.
If your md5sum utility tells you what your and my amuleweb tells (and hence, something else than my md5sum utility does), I must have a weird version of md5sum.
If your amuleweb tells you what your and my md5sum utility tells (and hence, something else than my amuleweb does), the error is in my aMule version, although I have the sources from the stable 2.0.1 version; I may file a bug report then.
If your md5sum and amuleweb tell you something different, but you can nevertheless connect to amuleweb like you explained in the Wiki, I'm at my wit's end.

Thanks ;)
Title: Re: Problems installing amuled in $HOME
Post by: stefanero on June 01, 2005, 08:20:51 AM
I noticed the difference in amule(web) md5sum and my md5sum aswell here on my box some time ago, problem with that is on the other devels boxes this always seams to work.
I will surely ask Gonosztopi about this again, and fill free to post a bug report aswell at http://bugs.amule.org

but I get the exact same output for, so this looks fine to me....
Code: [Select]
echo -n yourpasswordhere | md5sum | cut -d ' ' -f 1
ca3c365274907c6fd527068788e14639

so then I edited my aMule.conf AND remote.conf for the new md5sum --> worked

then I moved my remote.conf away, so that amulecmd ask for a password at start and voila -> did not work

so I am seeing exact same thing as you do, but like I said, I told Gonszotopi about this already(1month ago) and he said works for him....so I point him again to this thread.

and thnx for your help :))
stefanero
Title: Re: Problems installing amuled in $HOME
Post by: einheitlix on June 01, 2005, 05:01:53 PM
I have investigated the problem more deeply now.

I compiled amuleweb on my own x86 machine with the change to ExternalConnector.cpp I posted above.
Guess what? Here, amuleweb computes the correct md5sum, e.g. ca3c365274907c6fd527068788e14639 for yourpasswordhere, and not a5b562bba8d9d601b202c7ceb9de464a which is wrong.

Let me get this straight: the exact same sources with the exact same configure options produce different MD5 hashs on my father's machine and on my own
(well, actually there's a tiny little difference in the configure options; on my own machine, I have wxWidgets 2.6.0 installed globally, so I don't need to specify --with-wx-prefix=$HOME/aMule here, it would even be wrong; but I don't think that the problem lies there)

I have a sneaking suspicion that it might have something to do with the CPU architecture; my father has a x86_64 cpu, whereas I have a x86 one. From your profile, Stefanero, I see you also have a x86_64 cpu. The other devs may have x86 cpus, which is why it is working for them. If this was true, that would probably also explain why it went almost unnoticed until now; there aren't so many people using x86_64 cpus yet, and there aren't so many people using amuleweb (or amulecmd and whatever else uses ExternalConnector.cpp) until now either; the intersection of both is assumedly quite small.
This is only a speculation, of course. But I can't think of any other difference between my father's machine and my own. Both use Gentoo, both use a stable up-to-date system (thus, they use the same versions of required libraries, provided the same library versions are marked as stable in the portage tree for x86 and x86_64; I'm not sure whether that's the case). So what else could it possibly be?

A workaround until this is fixed is, as you already insinuated, to put the same MD5 sum in the remote.conf and the amule.conf. That way, amuleweb doesn't prompt you for a password, and hence doesn't do a buggy MD5 encoding, but rather simply compares the two MD5 sums; if they match, everything's fine.

Going to post a bug report now. :)
Title: Re: Problems installing amuled in $HOME
Post by: einheitlix on June 01, 2005, 05:40:52 PM
VoilĂ : http://bugs.amule.org/view.php?id=465
Title: Re: Problems installing amuled in $HOME
Post by: stefanero on June 01, 2005, 05:47:32 PM
ok, that would explain same thing I noticed, on all the otehr devs this worked, on mine not...

about the bug report, I doubt there is much we can do atm about this...but go on ;)
Title: Re: Problems installing amuled in $HOME
Post by: einheitlix on June 01, 2005, 05:57:40 PM
Quote
Originally posted by stefanero
about the bug report, I doubt there is much we can do atm about this...but go on ;)

Well geez, what's the purpose of a bug tracker then?
This is a not-so-harmless bug, so it should be fixed, shouldn't it? Or do you want all AMD64 users not to be able to use amuleweb for all eternity? ;)

Anyways... why do you think it's so hard to fix? I doubt it ain't possible to correctly compute MD5 hashs on 64 bits machines (if, anyways, this is the problem); after all, md5sum can do it, too.
Title: Re: Problems installing amuled in $HOME
Post by: phoenix on June 01, 2005, 07:18:43 PM
IIRC, only the dev with AMD 64 is Kry. So, Kry, this one is for you... :P

Cheers!
Title: Re: Problems installing amuled in $HOME
Post by: stefanero on June 01, 2005, 07:35:47 PM
me to :P

but i cant code ;)
Title: Re: Problems installing amuled in $HOME
Post by: Kry on June 02, 2005, 12:17:23 AM
I'll look into it, but I would be fairly surprised if this is the case, as I use amuleweb :P
Title: Re: Problems installing amuled in $HOME
Post by: lfroen on June 02, 2005, 07:22:46 AM
I can bet that windows version of remote gui suffers from same problem - that's why it doesn't authenticate
Title: Re: Problems installing amuled in $HOME
Post by: stefanero on June 02, 2005, 08:04:42 AM
thats what I said to Gonosztopi aswell, but he said no.... he said its some socket thing under win32...
Title: Re: Problems installing amuled in $HOME
Post by: einheitlix on June 03, 2005, 04:42:07 PM
Well, why don't you just try the "workaround" under Windows? ;)
Just use an identical md5 sum in amule.conf and remote.conf, and if it works, the error actually lies in the md5 encoding, if it doesn't, then it's something else, like some socket thing, like Gonosztopi suggested.

I'd try it myself, but using Windows for longer than 2 minutes gives me stomaches (the only way to bear it is to immediately start some game - which is also the only raison d'ĂȘtre for Windows on my hard drive -, so you don't directly realize you're using this "operating system")

By the way, Stefan, don't forget to try it under SuSE :)
Title: Re: Problems installing amuled in $HOME
Post by: stefanero on June 03, 2005, 07:14:48 PM
/me reboots in 10min ;)
Title: Re: Problems installing amuled in $HOME
Post by: stefanero on June 03, 2005, 08:54:54 PM
ok suse, did not like me I did same thing under FC3 64b

same error

I did

echo -n passwort | md5sum | cut -d ' ' -f 1
e22a63fb76874c99488435f26b117e37

setup e22... in my amule.conf for EC pass, movec away remote.conf
and viala
./amuleweb
Enter password for mule connection:

Creating client...
Now, doing connection....
Using host 'localhost.localdomain' port: 4712
Trying to connect (timeout = 10 sec)...
ExternalConn: Access denied because: Authentication failed.


so... kry now yor turn ;)
Title: Re: Problems installing amuled in $HOME
Post by: einheitlix on June 04, 2005, 12:36:53 AM
What about Windows, btw? :)
Title: Re: Problems installing amuled in $HOME
Post by: stefanero on June 04, 2005, 07:27:07 AM
tryed did nto work...its not a password thing....or its both, but even with remote.conf you cannot connect

ce la vie
stefanero
Title: Re: Problems installing amuled in $HOME
Post by: Kry on June 04, 2005, 09:32:25 PM
fiiiiiiiiiiixed.
Title: Re: Problems installing amuled in $HOME
Post by: einheitlix on June 04, 2005, 10:31:47 PM
So Kry, what was the problem related to? :)
Title: Re: Problems installing amuled in $HOME
Post by: einheitlix on June 07, 2005, 01:32:05 AM
In case anyone's curious... I asked Kry and the error was related to int sizes on different archs (like x86 or x86_64), so it was actually an error occurring on 64 bit processors (the reason why it seemed to work for Kry at first was that he *cough* accidentally was in 32 bit chroot environment ;))