On 08/14/2013 10:15 AM, Alexander Dahl wrote: > 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 You have to link against libcrypto. I'm preparing a patch. Marc -- 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 |