aMule Forum
English => Compilation problems => Topic started by: ShiftyPowers on March 10, 2006, 07:30:39 PM
-
Hey all, I'm trying to compile CVS in Ubuntu Dapper with the following ./configure input:
./configure --enable-amule-daemon --enable-webserver --enable-cas --enable-alcc --enable-kad-compile --disable-debug --prefix=/usr
I get the following configure output
Configure script has finished system check.
Configured aMule CVS for 'i686-pc-linux-gnu'.
aMule enabled options:
**** aMule Core ****
Prefix where aMule should be installed? /usr
Should aMule be compiled with i18n support? yes
Should aMule be compiled in debug mode? no
Should aMule be compiled with profiling? no
Should aMule be compiled with optimizations? no
Should aMule monolithic application be built? yes
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? no
**** aMule WebServer ****
Should aMule WebServer be built? yes
**** 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? yes
**** aMule Statistics ****
Should C aMule Statistics (CAS) be built? yes
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.1
crypto++ embedded
libpng 1.2.8
libgd 2.0.33
zlib 1.2.3
and after a "sudo make" I get the following error. It's been bugging me for a while.
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/stl_list.h: In instantiation of âstd::_List_nodeâ:
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/list.tcc:72: instantiated from âvoid std::_List_base<_Tp, _Alloc>::_M_clear() [with _Tp = CMD4Hash, _Alloc = std::allocator]â
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/stl_list.h:333: instantiated from âstd::_List_base<_Tp, _Alloc>::~_List_base() [with _Tp = CMD4Hash, _Alloc = std::allocator]â
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/stl_list.h:393: instantiated from here
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/stl_list.h:99: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see .
make[3]: *** [amuled-UploadQueue.o] Error 1
make[3]: Leaving directory `/MainDrive/Download/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/MainDrive/Download/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/MainDrive/Download/amule-cvs'
make: *** [all] Error 2
Anyone can help a compiling newbie here? Looking to learn something from this experience. Thanks,
Shifty
-
Compiler bug. Report it to http://gcc.gnu.org/bugzilla/ or https://bugzilla.ubuntu.com/
-
what if I use a GCC version less than 4? I'm going to try that and see what happens, remove the other one first
-
You probably don't need to remove the newer version, because Debian-based distros allow multiple versions to be installed in parallel.
-
but how do I select it to use the older version? What's the command there?
-
now I re-ran it and didn't get the above error but got this one:
In file included from amuleIPV4Address.h:31,
from ServerConnect.h:36,
from SharedFilesCtrl.cpp:37:
/usr/include/wx-2.6/wx/sckaddr.h:117:5: warning: "wxUSE_IPV6" is not defined
SharedFilesCtrl.cpp:150:1: warning: "/*" within comment
SharedFilesCtrl.cpp:147:1: error: unterminated comment
SharedFilesCtrl.cpp: In member function âvoid CSharedFilesCtrl::OnRightClick(wxListEvent&)â:
SharedFilesCtrl.cpp:146: error: expected `}' at end of input
SharedFilesCtrl.cpp:146: error: expected `}' at end of input
make[3]: *** [amule-SharedFilesCtrl.o] Error 1
make[3]: Leaving directory `/MainDrive/Download/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/MainDrive/Download/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/MainDrive/Download/amule-cvs'
make: *** [all] Error 2
-
That's this one:
http://forum.amule.org/thread.php?threadid=9375
PS: To select another than the default compiler, use the CC and CXX environment variables.
Example:
export CC="gcc-3.4"
export CXX="g++-3.4"
./configure
make
-
awesome thanks for your help! worked like a charm!
-
one last quick question, is it possible to get rid of the --only-chuck-norris-would-stop-me requirement for running amule everytime?
-
Yes, create a shell alias.
-
pardon the idiocy but how do i do that? I have the following script from the wiki starting amuled everytime i reboot, maybe i can just modify this?
#!/bin/bash
NAME=$(basename "$0")
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/amuled
DESC=amuled
USER=htpcuser #A user who already ran amule once to configure it.
test -x "$DAEMON" || exit 0
case "$1" in
start)
echo -n "Starting $DESC: "
su "$USER" -c "$(printf "%q -f" "$DAEMON" )"
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
killall --quiet "$DAEMON"
echo "$NAME."
;;
restart|force-reload)
echo -n "Restarting $DESC: "
killall --quiet "$DAEMON"
sleep 1
su "$USER" -c "$(printf "%q -f" "$DAEMON" )"
;;
*)
printf "Usage: %q {start|stop|restart|force-reload}\n" "$0" >&2
exit 1
;;
esac
exit 0
-
Originally posted by Gerd78
Yes, create a shell alias.
Until I change it again...