aMule Forum
English => Compilation problems => Topic started by: quasar on August 26, 2005, 04:15:56 AM
-
hi,
I'm trying to compile amule 2.0.3 under NetBSD 2.0.2 (a NAT box) without GUI (I have wxBase 2.6.x installed). The configure phase went OK using
./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --prefix=/usr/pkg
But make just 'hangs' almost right away:
+/usr/pkgsrc/net/amule/work/aMule-2.0.3>make
make all-recursive
Making all in m4
Making all in docs
Making all in man
Making all in src
Making all in utils
Making all in xas
Making all in docs
Making all in pixmaps
Making all in kademlia
Making all in io
Making all in kademlia
Making all in net
Making all in routing
Making all in utils
Making all in webserver
Making all in default
Making all in chicane
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/pkg/lib/wx/include/base-ansi-release-2.6 -I/usr/pkg/include/wx-2.6 -DwxUSE_GUI=0 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DwxUSE_GUI=0 -DEC_REMOTE -DWEBSERVERDIR="\"/usr/pkg/share/amule/webserver\"" -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -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
This is accompanied by heavy HDD activity, top shows low CPU usage (5-10%, and it's an old AMD K6-200), memory/swap usage starts to increase drastically. I have never had any compilation fail like that without any errors, just hanging ... really weird. Circular symlinks somewhere perhaps?
-
Use gmake instead of make.
What hardware is in that box? You need 64+ MB of RAM for C++ unless you like it in Crazed Swapping (TM) and Drunken Snail (TM) modes.
-
quasar: make sure you dispelled all magic effects from your compiler and os. Pray before starting make.
-
thanks, using gmake seemed to do the trick. now amuled complains
Shared object "libwx_base-2.6.so" not found
although it exists in /usr/pkg/lib, but that's probably a small problem something related to ldconfig (any tips welcome nevertheless)
edit: no more problems, just had to set LD_LIBRARY_PATH
-
There is no ldconfig on NetBSD - shared libraries are handled automagically.
Are you sure the file name you have under /usr/pkg/lib and the one wanted by amuled are exactly the same?
-
Solaris also has not ldconfig, but a dirty (but useful) way to make it work, is defining LD_LIBRARY_PATH environment variable, to define which folders do contain shared libraries (although as I've read, this is just a hack, the right way is something like giving the right folders in -R during compilation, but I have not looked that in depth)
Regards.
-
This is off topic, but look at Solaris crle for the functional equivalent of Linux ldconfig.