From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from gallifrey.ext.pengutronix.de ([2001:6f8:1178:4:5054:ff:fe8d:eefb] helo=bjornoya.do.blackshift.org) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1V9WWt-00006e-E8 for ptxdist@pengutronix.de; Wed, 14 Aug 2013 10:34:07 +0200 Received: from [172.17.34.65] (hardanger.do.blackshift.org [172.17.34.65]) (using TLSv1 with cipher ECDHE-ECDSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: frogger) by bjornoya.do.blackshift.org (Postfix) with ESMTPSA id 24EEB5E96D for ; Wed, 14 Aug 2013 10:34:07 +0200 (CEST) Message-ID: <520B40FE.5060701@pengutronix.de> Date: Wed, 14 Aug 2013 10:34:06 +0200 From: Marc Kleine-Budde MIME-Version: 1.0 References: <520B4031.8030900@pengutronix.de> In-Reply-To: <520B4031.8030900@pengutronix.de> Subject: Re: [ptxdist] link error in package ssmtp with ssl support and recent toolchain Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1931512045==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============1931512045== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mjV0JXEIJ4emeuhorV1i3LPJCwuBpwTLN" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --mjV0JXEIJ4emeuhorV1i3LPJCwuBpwTLN Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08/14/2013 10:30 AM, Marc Kleine-Budde wrote: > On 08/14/2013 10:15 AM, Alexander Dahl wrote: >> Hei hei,=20 >> >> after migrating from OSELAS toolchain 2011.11.3 to 2012.12.1 ssmtp fai= ls >> to build with ssl support enabled, at least on our platform which ist >> arm-v5te. I had a rough look over the ssmtp sources and it needs opens= sl >> for this and uses -lssl as linker option. Compiling produces lots of >> warning, and then linking fails. Of course openssl is enabled in ptxdi= st >> menuconfig and builds succesfully. >> >> We're not using ssmtp with ssl at the moment, but if anyone has an ide= a, >> here's the failing part: >> >> --------------------- >> target: ssmtp.compile >> --------------------- >> >> make[1]: Entering directory `XXXXX/build-target/ssmtp-2.64' >> arm-v5te-linux-gnueabi-gcc -o ssmtp ssmtp.o arpadate.o base64.o >> xgethostname.o md5auth/md5c.o md5auth/hmac_md5.o -lnsl -lssl >> /opt/OSELAS.Toolchain-2012.12.1/arm-v5te-linux-gnueabi/gcc-4.7.2-glibc= -2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-v5te-linux-gnueabi= /4.7.2/../../../../arm-v5te-linux-gnueabi/bin/ld: >> ssmtp.o: undefined reference to symbol 'X509_free@@OPENSSL_1.0.0' >> /opt/OSELAS.Toolchain-2012.12.1/arm-v5te-linux-gnueabi/gcc-4.7.2-glibc= -2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-v5te-linux-gnueabi= /4.7.2/../../../../arm-v5te-linux-gnueabi/bin/ld: >> note: 'X509_free@@OPENSSL_1.0.0' is defined in DSO >> XXXXX/sysroot-target/usr/lib/libcrypto.so.1.0.0 so try adding it to th= e >> linker command line >> XXXXX/sysroot-target/usr/lib/libcrypto.so.1.0.0: could not read symbol= s: >> Invalid operation >> collect2: error: ld returned 1 exit status >> make[1]: Leaving directory `XXXXX/build-target/ssmtp-2.64' >> make[1]: *** [ssmtp] Error 1 >> make: *** [XXXXX/state/ssmtp.compile] Error 2 >=20 > You have to link against libcrypto. I'm preparing a patch. See commit "d0e1711 ssmtp: fix linking against openssl" on master Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --mjV0JXEIJ4emeuhorV1i3LPJCwuBpwTLN 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.14 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlILQP4ACgkQjTAFq1RaXHOd5gCfVb/JKzHxI98n2pnv4Iq4443F VVsAn1Y12N2gknuZnX6rsQbGzcW9ah1G =z17i -----END PGP SIGNATURE----- --mjV0JXEIJ4emeuhorV1i3LPJCwuBpwTLN-- --===============1931512045== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1931512045==--