From owner-freebsd-ports@FreeBSD.ORG Wed Dec 28 14:10:14 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4ECF71065675; Wed, 28 Dec 2011 14:10:14 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 027E08FC14; Wed, 28 Dec 2011 14:10:13 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1RfuCq-0005I7-Un>; Wed, 28 Dec 2011 15:10:13 +0100 Received: from e178027189.adsl.alicedsl.de ([85.178.27.189] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1RfuCq-0001Xl-PY>; Wed, 28 Dec 2011 15:10:12 +0100 Message-ID: <4EFB2344.3000302@zedat.fu-berlin.de> Date: Wed, 28 Dec 2011 15:10:12 +0100 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: Kostik Belousov References: <4EFAF3FC.60002@zedat.fu-berlin.de> <20111228135808.GW50300@deviant.kiev.zoral.com.ua> In-Reply-To: <20111228135808.GW50300@deviant.kiev.zoral.com.ua> X-Enigmail-Version: undefined Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0297CE99AF91EBDA30C23244" X-Originating-IP: 85.178.27.189 Cc: Current FreeBSD , Ports FreeBSD Subject: Re: /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/../../../libstdc++.a: could not read symbols: Bad value X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2011 14:10:14 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0297CE99AF91EBDA30C23244 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 12/28/11 14:58, schrieb Kostik Belousov: > On Wed, Dec 28, 2011 at 11:48:28AM +0100, O. Hartmann wrote: >> Hello out here. >> >> I run into a problem since one of the last portupdates and I do not kn= ow >> whether this has to do with binutils or gcc46 or even FreeBSD 9.0/10.0= >> AMD64. >> >> Background: >> We use a scientific graphical toolset for planetary research called >> ISIS3, which is provided by the USGS. We patched ISIS3 to run on FreeB= SD >> 8/9/10 so far and it ran well with FreeBSD 8.2-STABLE and 9.0-PRE a >> couple of weeks ago. >> On all of my boxes, I do frequently a portupgrade, so I saw binutils g= ot >> bumped up and gcc 4.6 is also getting really frequently changed these = days. >> After a some portupdates within the last weeks, I just decided to >> compile ISIS3 again to keep it "fresh and on track", but it won't >> compile anymore. >> >> On all FreeBSD 9.0-PRERELEASE and FreeBSD 10.0-CURRENT (all AMD64 and >> CLANG built) I receive in some subfolders containing sources the >> follwoing error: >> >> [...] >> Adding API object [UniqueIOCachingAlgorithm] >> Adding API object [UniversalGroundMap] >> Adding API object [UserInterface] >> Adding API object [VariableLineScanCameraDetectorMap] >> Adding API object [VecFilter] >> Adding API object [WorldMapper] >> Adding API object [iException] >> Adding API object [iString] >> Adding API object [iTime] >> Working on Package [mex] (11:30:15) >> Adding API object [HrscCamera] >> /usr/local/bin/ld: >> /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/../../../libs= tdc++.a(functexcept.o): >> relocation R_X86_64_32 against `std::bad_exception::~bad_exception()' >> can not be used when making a shared object; recompile with -fPIC >> /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/../../../libs= tdc++.a: >> could not read symbols: Bad value >> collect2: ld returned 1 exit status >> gmake[5]: *** [plugin] Error 1 >> cp: libHrscCamera.so: No such file or directory >> gmake[4]: *** [install] Error 1 > The error is completely clear as it is: the build tries to link static > library libstdc++.so into shared object. This is not supported. Thanks, Kostik, for the fast response. The error isn't so clear to me, sorry. I thought libstdc++.a is the static library and it is taken to be referenced/compiled into a shared object created by the application I try to compile. I'm much more confused now, since I thought the last time I compiled that piece of software, I never got any error like that. Well, clang fails with some obscure errors on the code itself and I'm unwilling to correct them, I'll try the legacy gcc 4.2.1 and will report what's happening. Thank you very much, Oliver --------------enig0297CE99AF91EBDA30C23244 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQEcBAEBAgAGBQJO+yNEAAoJEOgBcD7A/5N8LdUH/jsP/Tc7ny/CrV3Uv98ovYbU udKfvA30SEACLKax4w6kp8K4sdZLJOMouHO5Qd/mulnXPQfrhE1Lqg68sJpuTNmP HQusAUDjoBZRF7LmSnoRGjExJNjhU4YGeGVYzhp71fBgIl/8DErS5u4/qrSF2wkc ZgNt1n5etLq/reFiN6K1CRZCgs+8V8zv13xRDPWjLjA9VkFWbEzXcNXLm9pWhZYu V0HAYFkmvyQIHFM+ooMOxZ5fSiG3rrnaTDmz9tvCm6kIN/r8Y4GicaljGn5efQwv X3C4p7DM6lEtBaq0xe1b9ACuOPzeONzL+MM+dUgYoavuxXkRKj8ksdhXUos13/A= =l8eV -----END PGP SIGNATURE----- --------------enig0297CE99AF91EBDA30C23244--