aMule Forum

English => Compilation problems => Topic started by: kosaman on March 18, 2006, 07:30:15 PM

Title: Problem with compilation
Post by: kosaman on March 18, 2006, 07:30:15 PM
Hello,
I have Freebsd 5.3.
I try to compile amule 2.1.1 and I have a problem. I did

#./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --with-gdlib-config=/usr/local/bin/gdlib-config --disable-cas
...
...
...
 aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /usr/local
  Should aMule be compiled with i18n support?                yes
  Should aMule be compiled in debug mode?                    yes
  Should aMule be compiled with profiling?                   no
  Should aMule be compiled with optimizations?               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

  **** 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?       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.2
                                       crypto++              embedded
                                       libpng                1.2.8
                                       libgd                 2.0.33
                                       zlib                  1.2.1

#gmake
...
...
...
`__gnu_norm::_List_node_base::swap(__gnu_norm::_List_node_b
ase&, __gnu_norm::_List_node_base&)'
amuleweb-php_core_lib.o(.gnu.linkonce.t._ZN10__gnu_norm4listI8SortElemSaIS1_EE11
_M_transferENS_14_List_iteratorIS1_EES5_S5_+0x13): In function `__gnu_norm::list
>::_M_transfer(__gnu_norm::_List_iteratorrtElem>, __gnu_norm::_List_iterator, __gnu_norm::_List_iteratorem>)':
/usr/include/c++/3.4/bits/list.tcc:216: undefined reference to `__gnu_norm::_Lis
t_node_base::transfer(__gnu_norm::_List_node_base*, __gnu_norm::_List_node_base*
)'
../../libs/ec/libec_noevt.a(libec_noevt_a-RemoteConnect.o)(.gnu.linkonce.t._ZN10
__gnu_norm4listIP20CECPacketHandlerBaseSaIS2_EE9_M_insertENS_14_List_iteratorIS2
_EERKS2_+0x24): In function `__gnu_norm::listtor >::_M_insert(__gnu_norm::_List_iteratorlerBase*>, CECPacketHandlerBase* const&)':
/usr/include/c++/3.4/bits/list.tcc:77: undefined reference to `__gnu_norm::_List
_node_base::hook(__gnu_norm::_List_node_base*)'
../../libs/ec/libec_noevt.a(libec_noevt_a-RemoteConnect.o)(.gnu.linkonce.t._ZN10
__gnu_norm4listIP20CECPacketHandlerBaseSaIS2_EE8_M_eraseENS_14_List_iteratorIS2_
EE+0xd): In function `__gnu_norm::listPacketHandlerBase*> >::_M_erase(__gnu_norm::_List_iterator>)':
/usr/local/programs/amule/aMule-2.1.1/src/libs/ec/ECPacket.h:237: undefined refe
rence to `__gnu_norm::_List_node_base::unhook()'
gmake[4]: *** [amuleweb] Error 1
gmake[4]: Leaving directory `/usr/local/programs/amule/aMule-2.1.1/src/webserver
/src'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/local/programs/amule/aMule-2.1.1/src/webserver
'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/local/programs/amule/aMule-2.1.1/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/programs/amule/aMule-2.1.1'
gmake: *** [all] Error 2

Could you help explain this?
Thanks,
Tom
Title: Re: Problem with compilation
Post by: Gerd78 on March 18, 2006, 07:43:03 PM
Could you please post a more complete error message? "complete" means: it must include the last g++ call and anything that follows, or at least the beginning of what follows after the last g++ call. Otherwise I'll have to do guesswork.

Guesswork: aMule does not link on FreeBSD 5.3 by default because it defines _GLIBCXX_DEBUG and _GLIBCXX_DEBUG_PEDANTIC which is broken in the GCC version distributed with FreeBSD 5.3. To get rid of it, add "--disable-debug" to your ./configure line.
Title: Re: Problem with compilation
Post by: kosaman on March 19, 2006, 12:20:23 AM
Ok, it works:)
i added to my configure "--disable-debug" and now it is fine.
thanks,
Tom