[maemo-developers] Help getting round compiler a error (compiling CLN)
From: Simon Pickering S.G.Pickering at bath.ac.ukDate: Tue Nov 13 13:53:30 EET 2007
- Previous message: Android Vs. Maemo
- Next message: Help getting round compiler a error (compiling CLN)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello all, At the start of the year I tried to compile CLN (http://www.ginac.de/CLN/) and although the compilation worked fine, the linking into a shared library at the end didn't. I asked on the CLN list and was given a couple of suggestions to fix this issue, the last of which was to "change your compiler". Unfortunately this isn't possible (unless OS2008 uses a different version of GCC?) so I thought I'd ask and see if anyone has any other suggestions. The error is this: /bin/sh ../libtool --mode=link g++ -o libcln.la -rpath /usr/lib -version-info 4:2:0 -lgmp -objectlist libcln.objectlist g++ -shared -nostdlib /scratchbox/compilers/cs2005q3.2-glibc-arm/lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/lib/crti.o <snip> .libs/cl_asm_.o /usr/lib/libgmp.so -L/scratchbox/compilers/cs2005q3.2-glibc-arm/lib/gcc/arm-none-linux-gnueabi/3.4.4 -L/usr/lib/gcc/arm-none-linux-gnueabi/3.4.4 -L/scratchbox/compilers/cs2005q3.2-glibc-arm/lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/lib -lstdc++ -lm -lc -lgcc_s /scratchbox/compilers/cs2005q3.2-glibc-arm/lib/gcc/arm-none-linux-gnueabi/3.4.4/crtendS.o /scratchbox/compilers/cs2005q3.2-glibc-arm/lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/lib/crtn.o -Wl,-soname -Wl,libcln.so.4 -o .libs/libcln.so.4.0.2 .libs/cl_I_ring.o: In function `cln::zerop(cln::cl_I const&)':cl_I_ring.cc:(.text._ZN3cln5zeropERKNS_4cl_IE[cln::zerop(cln::cl_I const&)]+0x0): multiple definition of `cln::zerop(cln::cl_I const&)' .libs/cl_I_zerop.o:cl_I_zerop.cc:(.text+0x0): first defined here .libs/cl_RA_ring.o: In function `cln::zerop(cln::cl_RA const&)':cl_RA_ring.cc:(.text._ZN3cln5zeropERKNS_5cl_RAE[cln::zerop(cln::cl_RA const&)]+0x0): multiple definition of `cln::zerop(cln::cl_RA const&)' .libs/cl_RA_zerop.o:cl_RA_zerop.cc:(.text+0x0): first defined here .libs/cl_R_signum.o: In function `cln::signum(cln::cl_I const&)':cl_R_signum.cc:(.text._ZN3cln6signumERKNS_4cl_IE[cln::signum(cln::cl_I const&)]+0x0): multiple definition of `cln::signum(cln::cl_I const&)' .libs/cl_I_signum.o:cl_I_signum.cc:(.text+0x0): first defined here collect2: ld returned 1 exit status make[2]: *** [libcln.la] Error 1 make[2]: Leaving directory `/home/simon/build/qcalculate/cln-1.1.13.orig/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/simon/build/qcalculate/cln-1.1.13.orig' make: *** [build] Error 2 The thread on the CLN mailing list starts here (only 4 posts long): http://www.ginac.de/pipermail/cln-list/2007-February/000267.html I tried the suggestions for various compiler flags and to compile as a static library, but when the static library is linked it too produces multiple definition errors. Any thoughts? Thanks, Simon P.S. I can provide a set of debian build files (.dsc, .diff, etc.) if anyone wants to try it for themselves.
- Previous message: Android Vs. Maemo
- Next message: Help getting round compiler a error (compiling CLN)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]