aMule Forum
English => Compilation problems => Topic started by: banjo67xxx on October 17, 2006, 03:59:38 PM
-
Hi,
I've tried compiling amule 2.1.3 as per the recommendations by Skolnick, and I've even disabled debug and run a distclean as per another thread on this forum, but it still won't compile ...
# ./configure --prefix=/usr --enable-gtk2 --with-libiconv-prefix --with-wx-config=/usr/local/bin/wx-config --enable-amule-daemon --enable-amulecmd --enable-webserver --with-libintl-prefix --disable-debug \
--disable-amule-gui --disable-remotegui
...
...
Configure script has finished system check.
Configured aMule 2.1.3 for 'sparc-sun-solaris2.10'.
aMule enabled options:
**** aMule Core ****
Prefix where aMule should be installed? /usr
Should aMule be compiled with i18n support? no
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? 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.3
crypto++ embedded
libpng 1.2.5
libgd 2.0.33
zlib 1.2.3
# make
...
...
g++ -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -L/usr/local/lib:/opt/csw/lib:/usr/sfw/lib:/usr/openwin/lib:/usr/dt/lib:/usr/lib:/lib -R/usr/local/lib:/opt/csw/lib:/usr/lib:/usr/sfw/lib:/lib:/usr/dt/lib:/usr/openwin/lib -lpthread -o amuleweb -L/usr/lib -R/usr/lib -lpng12 -lz -lm -L../../libs/common -L../../libs/ec amuleweb-WebServer.o amuleweb-WebInterface.o amuleweb-WebSocket.o amuleweb-ExternalConnector.o amuleweb-OtherFunctions.o amuleweb-RLE.o amuleweb-NetworkFunctions.o amuleweb-php_parser.o amuleweb-php_lexer.o amuleweb-php_syntree.o amuleweb-php_core_lib.o -lec_noevt -lmulecommon -L/usr/local/lib -pthreads -lwx_baseu_net-2.6 -lwx_baseu-2.6 -lz -lpng12 -lz -lm -lresolv -lnsl -lbfd -liberty -lrt
Undefined first referenced
symbol in file
std::_List_node_base::swap(std::_List_node_base&, std::_List_node_base&)amuleweb-php_core_lib.o (symbol belongs to implicit dependency /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../libstdc++.so.6)
std::_Rb_tree_increment(std::_Rb_tree_node_base*)amuleweb-WebServer.o (symbol belongs to implicit dependency /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../libstdc++.so.6)
std::_List_node_base::hook(std::_List_node_base*)amuleweb-WebServer.o (symbol belongs to implicit dependency /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../libstdc++.so.6)
std::_List_node_base::unhook() amuleweb-WebServer.o (symbol belongs to implicit dependency /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../libstdc++.so.6)
std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)amuleweb-WebServer.o (symbol belongs to implicit dependency /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../libstdc++.so.6)
std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)amuleweb-WebServer.o (symbol belongs to implicit dependency /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../libstdc++.so.6)
std::_List_node_base::transfer(std::_List_node_base*, std::_List_node_base*)amuleweb-php_core_lib.o (symbol belongs to implicit dependency /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../libstdc++.so.6)
std::_Rb_tree_decrement(std::_Rb_tree_node_base*)amuleweb-WebServer.o (symbol belongs to implicit dependency /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../libstdc++.so.6)
ld: fatal: Symbol referencing errors. No output written to amuleweb
collect2: ld returned 1 exit status
make[4]: *** [amuleweb] Error 1
make[4]: Leaving directory `/home/Solaris/aMule-2.1.3/src/webserver/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/Solaris/aMule-2.1.3/src/webserver'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Solaris/aMule-2.1.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Solaris/aMule-2.1.3'
make: *** [all] Error 2
Please can anyone help?
-
Finally I discovered how to get it to compile!
I had appended Skolnick's PATH to my own
PATH=${PATH}:/usr/local/bin:/opt/csw/bin:/usr/sfw/bin:/usr/bin
However, what I hadn't noticed was that this meant that /usr/bin came before /usr/sfw/bin, so that instead of cc & ld picking up the GNU versions symlinked in /usr/sfw/bin they were still using the pre-installed versions in /usr/bin.
Thanks guys for having this forum here so I can search for what I'm doing wrong, and thanks esp. to Skolnick for explaining how to compile aMule on Solaris.
-
Glad my guide helped you :)
Regards.