Date: Mon, 6 Jan 2020 19:52:59 +0100 From: =?UTF-8?Q?Poul_M=c3=b8ller_Hansen?= <freebsd@pbnet.dk> To: freebsd-questions@freebsd.org Subject: Unable to link port graphics/gdal Message-ID: <1fbf1447-3334-4008-ab38-93be37bbd290@pbnet.dk>
next in thread | raw e-mail | index | archive | help
I have no success in making the latest version of gdal-2.4.3_1, it fails when linking. # freebsd-version 11.3-RELEASE-p5 c++ -Wl,-rpath,/usr/local/lib -fstack-protector-strong gdalinfo_bin.o -L/disk1/ports/graphics/gdal/work/gdal-2.4.3 -lgdal -lcrypto -lproj -ljson-c -ljasper -lgif -ljpeg -lgeotiff -ltiff -lpng -llzma -lz -L/usr -L/usr/lib -lpthread -lm -lrt -ldl -L/usr/local/lib -o gdalinfo /disk1/ports/graphics/gdal/work/gdal-2.4.3/libgdal.so: undefined reference to `EVP_MD_CTX_new' /disk1/ports/graphics/gdal/work/gdal-2.4.3/libgdal.so: undefined reference to `EVP_MD_CTX_free' c++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[3]: *** [GNUmakefile:82: gdalinfo] Error 1 gmake[3]: Leaving directory '/disk1/ports/graphics/gdal/work/gdal-2.4.3/apps' gmake[2]: *** [GNUmakefile:112: apps-target] Error 2 gmake[2]: Leaving directory '/disk1/ports/graphics/gdal/work/gdal-2.4.3' *** Error code 1 Stop. make[1]: stopped in /disk1/ports/graphics/gdal *** Error code 1 Stop. make: stopped in /disk1/ports/graphics/gdal The symbols 'EVP_MD_CTX_new' and 'EVP_MD_CTX_free' is present # nm -gDC /usr/local/lib/libssl.so | egrep "EVP_MD_CTX_new|EVP_MD_CTX_free" U EVP_MD_CTX_free U EVP_MD_CTX_new So I guess the problem is, that it uses the systems openssl version when linking # openssl version OpenSSL 1.0.2s-freebsd 28 May 2019 # pkg info openssl openssl-1.1.1d,1 How can I have it using the ports version? Thanks.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1fbf1447-3334-4008-ab38-93be37bbd290>