Hi all, compiling libtorrent fails on my G5 iMac (yet it works fine on my MBP), with a series of ld errors about "multiple definitions of symbol", which I don't understand. I've included the full output at the end of this mail, normally I can figure out what a build problem is likely to be, but I've not come across this before. I have the following versions of the dependencies: zlib @1.2.3_1 pkgconfig @0.22_0 openssl @0.9.8f_0+darwin_8 libsigcxx2 @2.0.18_0+darwin_8 None are outdated, and I selfupdated/synced before I started. I read in the list archives something about older versions of libtorrent required gcc3.3, so given that it works fine on my MBP I thought I'd check. My iMac is set to use gcc3.3 as I expected, so I set it to gcc4.0 and tried again, but that also failed. Can anyone shed any light on this? Cheers, Henry. == Full (gcc3.3) output ============================================= henry$ sudo port install libtorrent ---> Fetching libtorrent ---> Verifying checksum(s) for libtorrent ---> Extracting libtorrent ---> Configuring libtorrent ---> Building libtorrent with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/work/libtorrent-0.11.7" && make all " returned error 2 Command output: /usr/lib/gcc/darwin/3.3/libstdc++.a(wstring-inst.o) private external definition of __ZNSbIwSt11char_traitsIwESaIwEEaSERKS2_ in section (__TEXT,__text) ld: multiple definitions of symbol __ZNSbIwSt11char_traitsIwESaIwEEaSEw /usr/lib/libstdc++.6.dylib(single module) definition of __ZNSbIwSt11char_traitsIwESaIwEEaSEw /usr/lib/gcc/darwin/3.3/libstdc++.a(wstring-inst.o) private external definition of __ZNSbIwSt11char_traitsIwESaIwEEaSEw in section (__TEXT,__text) ld: multiple definitions of symbol __ZNSbIwSt11char_traitsIwESaIwEEixEm /usr/lib/libstdc++.6.dylib(single module) definition of __ZNSbIwSt11char_traitsIwESaIwEEixEm /usr/lib/gcc/darwin/3.3/libstdc++.a(wstring-inst.o) private external definition of __ZNSbIwSt11char_traitsIwESaIwEEixEm in section (__TEXT,__text) ld: multiple definitions of symbol __ZNSbIwSt11char_traitsIwESaIwEEpLEPKw /usr/lib/libstdc++.6.dylib(single module) definition of __ZNSbIwSt11char_traitsIwESaIwEEpLEPKw /usr/lib/gcc/darwin/3.3/libstdc++.a(wstring-inst.o) private external definition of __ZNSbIwSt11char_traitsIwESaIwEEpLEPKw in section (__TEXT,__text) ld: multiple definitions of symbol __ZNSbIwSt11char_traitsIwESaIwEEpLERKS2_ /usr/lib/libstdc++.6.dylib(single module) definition of __ZNSbIwSt11char_traitsIwESaIwEEpLERKS2_ /usr/lib/gcc/darwin/3.3/libstdc++.a(wstring-inst.o) private external definition of __ZNSbIwSt11char_traitsIwESaIwEEpLERKS2_ in section (__TEXT,__text) ld: multiple definitions of symbol __ZNSbIwSt11char_traitsIwESaIwEEpLEw /usr/lib/libstdc++.6.dylib(single module) definition of __ZNSbIwSt11char_traitsIwESaIwEEpLEw /usr/lib/gcc/darwin/3.3/libstdc++.a(wstring-inst.o) private external definition of __ZNSbIwSt11char_traitsIwESaIwEEpLEw in section (__TEXT,__text) ld: multiple definitions of symbol __ZStplIwSt11char_traitsIwESaIwEESbIT_T0_T1_EPKS3_RKS6_ /usr/lib/libstdc++.6.dylib(single module) definition of __ZStplIwSt11char_traitsIwESaIwEESbIT_T0_T1_EPKS3_RKS6_ /usr/lib/gcc/darwin/3.3/libstdc++.a(wstring-inst.o) private external definition of __ZStplIwSt11char_traitsIwESaIwEESbIT_T0_T1_EPKS3_RKS6_ in section (__TEXT,__text) ld: multiple definitions of symbol __ZStplIwSt11char_traitsIwESaIwEESbIT_T0_T1_ERKS6_S8_ /usr/lib/libstdc++.6.dylib(single module) definition of __ZStplIwSt11char_traitsIwESaIwEESbIT_T0_T1_ERKS6_S8_ /usr/lib/gcc/darwin/3.3/libstdc++.a(wstring-inst.o) private external definition of __ZStplIwSt11char_traitsIwESaIwEESbIT_T0_T1_ERKS6_S8_ in section (__TEXT,__text) ld: multiple definitions of symbol __ZStplIwSt11char_traitsIwESaIwEESbIT_T0_T1_ES3_RKS6_ /usr/lib/libstdc++.6.dylib(single module) definition of __ZStplIwSt11char_traitsIwESaIwEESbIT_T0_T1_ES3_RKS6_ /usr/lib/gcc/darwin/3.3/libstdc++.a(wstring-inst.o) private external definition of __ZStplIwSt11char_traitsIwESaIwEESbIT_T0_T1_ES3_RKS6_ in section (__TEXT,__text) /usr/bin/libtool: internal link edit command failed make[3]: *** [libtorrent.la] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Error: Status 1 encountered during processing. == End output =======================================================
participants (1)
-
Henry Todd