aMule Forum

English => Compilation problems => Topic started by: ShiftyPowers on March 10, 2006, 07:30:39 PM

Title: Trouble compiling CVS in Dapper: HELP
Post 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:

Code: [Select]
./configure --enable-amule-daemon --enable-webserver --enable-cas --enable-alcc --enable-kad-compile --disable-debug --prefix=/usrI get the following configure output
Code: [Select]
 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.
Code: [Select]
/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
Title: Re: Trouble compiling CVS in Dapper: HELP
Post by: Gerd78 on March 10, 2006, 07:36:29 PM
Compiler bug. Report it to http://gcc.gnu.org/bugzilla/ or https://bugzilla.ubuntu.com/
Title: Re: Trouble compiling CVS in Dapper: HELP
Post by: ShiftyPowers on March 10, 2006, 07:37:26 PM
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
Title: Re: Trouble compiling CVS in Dapper: HELP
Post by: Gerd78 on March 10, 2006, 07:39:27 PM
You probably don't need to remove the newer version, because Debian-based distros allow multiple versions to be installed in parallel.
Title: Re: Trouble compiling CVS in Dapper: HELP
Post by: ShiftyPowers on March 10, 2006, 07:41:24 PM
but how do I select it to use the older version?  What's the command there?
Title: Re: Trouble compiling CVS in Dapper: HELP
Post by: ShiftyPowers on March 10, 2006, 07:50:47 PM
now I re-ran it and didn't get the above error but got this one:

Code: [Select]
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
Title: Re: Trouble compiling CVS in Dapper: HELP
Post by: Gerd78 on March 10, 2006, 07:51:57 PM
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:
Code: [Select]
export CC="gcc-3.4"
export CXX="g++-3.4"
./configure
make
Title: Re: Trouble compiling CVS in Dapper: HELP
Post by: ShiftyPowers on March 10, 2006, 07:58:52 PM
awesome thanks for your help! worked like a charm!
Title: Re: Trouble compiling CVS in Dapper: HELP
Post by: ShiftyPowers on March 10, 2006, 07:59:50 PM
one last quick question, is it possible to get rid of the --only-chuck-norris-would-stop-me requirement for running amule everytime?
Title: Re: Trouble compiling CVS in Dapper: HELP
Post by: Gerd78 on March 10, 2006, 08:01:54 PM
Yes, create a shell alias.
Title: Re: Trouble compiling CVS in Dapper: HELP
Post by: ShiftyPowers on March 10, 2006, 08:10:22 PM
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?

Code: [Select]
#!/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
Title: Re: Trouble compiling CVS in Dapper: HELP
Post by: Kry on March 10, 2006, 08:13:34 PM
Quote
Originally posted by Gerd78
Yes, create a shell alias.

Until I change it again...