Unable to link port graphics/gdal
Poul Møller Hansen
freebsd at pbnet.dk
Mon Jan 6 18:53:10 UTC 2020
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.
More information about the freebsd-questions
mailing list