mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Dahl <post@lespocky.de>
To: PTXdist Developer Mailinglist <ptxdist@pengutronix.de>
Subject: [ptxdist] link error in package ssmtp with ssl support and recent toolchain
Date: Wed, 14 Aug 2013 10:15:12 +0200	[thread overview]
Message-ID: <ca6735d29f38184223180fe33570a145@idefix.lespocky.dyndns.org> (raw)

Hei hei, 

after migrating from OSELAS toolchain 2011.11.3 to 2012.12.1 ssmtp fails
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 openssl
for this and uses -lssl as linker option. Compiling produces lots of
warning, and then linking fails. Of course openssl is enabled in ptxdist
menuconfig and builds succesfully.

We're not using ssmtp with ssl at the moment, but if anyone has an idea,
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 the
linker command line
XXXXX/sysroot-target/usr/lib/libcrypto.so.1.0.0: could not read symbols:
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

(just stripped some path information)

Greets
Alex

-- 
»With the first link, the chain is forged. The first speech censured,
the first thought forbidden, the first freedom denied, chains us all
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601  D1D5 8FBA 7744 CC87 10D0 ***

-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2013-08-14  8:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-14  8:15 Alexander Dahl [this message]
2013-08-14  8:30 ` Marc Kleine-Budde
2013-08-14  8:34   ` Marc Kleine-Budde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ca6735d29f38184223180fe33570a145@idefix.lespocky.dyndns.org \
    --to=post@lespocky.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox