AnsweredAssumed Answered

Can't compile openvpn

Question asked by illishar on May 8, 2013
Latest reply on May 13, 2013 by Aaronwu



I've just downloaded the new 2012-RC2 dist + toolchain (full). I'm using the bf526-ezbrd_defconfig. (It compiles fine, when using defaults.)


I've then added "openvpn" through menuconfig. And it doesn't compile. The error message is:




make[3]: Entering directory `/home/mk/blackfin-buildroot/output/build/openssl-1.0.0j/apps'

( :; LIBDEPS="${LIBDEPS:--L.. -lssl  -L.. -lcrypto -ldl -lz}"; LDCMD="${LDCMD:-/home/mk/blackfin-buildroot/output/host/usr/bin/bfin-uclinux-gcc}"; LDFLAGS="${LDFLAGS:--DZLIB -DOPENSSL_THREADS -D_REENTRANT -DTERMIO  -pipe -Os  -mcpu=bf526-0.0 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D__NOMMU__ -D__uClinux__ -fomit-frame-pointer -Wall}"; LIBPATH=`for x in $LIBDEPS; do echo $x; done | sed -e 's/^ *-L//;t' -e d | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=openssl} openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o genpkey.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o pkey.o pkeyparam.o pkeyutl.o spkac.o smime.o cms.o rand.o engine.o ocsp.o prime.o ts.o ${LIBDEPS} )

/opt/uClinux/bfin-uclinux/bfin-uclinux/bin/ld.real: cannot find -ldl

s_socket.o: In function `_do_server':

s_socket.c:(.text+0x3b4): warning: gethostbyaddr is obsolescent, use getaddrinfo() instead.

collect2: ld returned 1 exit status

make[3]: *** [link_app.] Error 1

make[3]: Leaving directory `/home/mk/blackfin-buildroot/output/build/openssl-1.0.0j/apps'




It nags about "libdl" I think. Isn't this supposed to work?


There's no "libdl" in menuconfig btw?