[Buildroot] [PATCH 2/2] vsftpd: fix SSL dependency

Yegor Yefremov yegorslists at googlemail.com
Sat Mar 17 07:18:51 UTC 2012


On Fri, Mar 16, 2012 at 10:23 PM, Peter Korsgaard <jacmet at uclibc.org> wrote:
>>>>>> "yegorslists" == yegorslists  <yegorslists at googlemail.com> writes:
>
>  yegorslists> From: Yegor Yefremov <yegorslists at googlemail.com>
>  yegorslists> Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
>
> Can you be a bit more specific about what this fixes? I just did a test
> with the default BR (arm926t) toolchain and it works here without it:
>
> /home/peko/source/buildroot/output/host/usr/bin/arm-linux-gcc -o vsftpd
> main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o tunables.o
> ftpdataio.o secbuf.o ls.o postprivparent.o logging.o str.o netstr.o
> sysstr.o strlist.o banner.o filestr.o parseconf.o secutil.o ascii.o
> oneprocess.o twoprocess.o privops.o standalone.o hash.o tcpwrap.o
> ipaddrparse.o access.o features.o readwrite.o opts.o ssl.o sslslave.o
> ptracesandbox.o ftppolicy.o sysutil.o sysdeputil.o -Wl,-s -lcrypt -lssl
>
> ..
>
> ./output/host/usr/bin/arm-linux-readelf -a output/build/vsftpd-2.3.5/vsftpd |grep NEEDED
>  0x00000001 (NEEDED)                     Shared library: [libcrypt.so.0]
>  0x00000001 (NEEDED)                     Shared library: [libssl.so.1.0.0]
>  0x00000001 (NEEDED)                     Shared library: [libc.so.0]
>  0x00000001 (NEEDED)                     Shared library: [libcrypto.so.1.0.0]
>
> So it end up with the libcrypto reference without explicitly linking
> with it.

This is output from pkg-config:

pkg-config --libs openssl
-lssl -lcrypto

I don't know what is going on exactly, but could it be that other
toolchains bring valid lcrypto with them?
But vsftpd has it's own library finder script and it also defines both libs.

Yegor



More information about the buildroot mailing list