Created attachment 210693 [details] poudriere log undefined reference to `EVP_MD_CTX_new' undefined reference to `EVP_MD_CTX_free' See attached (trimmed) poudriere log
Is there any update on this bug? I am still experiencing it 5 months later.
I also ran into this when switching to DEFAULT_VERSIONS+=ssl=openssl on 11.4-STABLE. There seems to be multiple issues with the gdal configure script. Configuration of libz (--with-libz=/usr) makes ./configure add /usr/lib to the linker library path. Unless some other library happen to add /usr/local/lib before that, -lcrypto will pick up libcrypto.so from base, while the compile used header files from /usr/local/. So enabling some options makes it work by accident. I tried to add configure args "--with-crypto=${OPENSSLBASE}" in the ports Makefile, but that does not work. But changing configure arguments to "--with-libz=external" in the ports Makefile at least produces a linker library path without /usr and /usr/lib. I believe this will work, but I haven't verified in poudriere with default options. I also think that --with-exr=no and --with-crypto=yes should be added to the configure arguments, just to be consistent with how it is built in poudriere.
Created attachment 216447 [details] Patch fixing problem with /usr/lib in linker library path Attaching a patch fixing this issue by changing the --with-libz ./configure argument so that /usr/lib isn't added to the linker library path. I also added ./configure arguments selecting crypto (--with-crypto=yes) and un-selecting EXR (--without-exr), making these choices explicit. They are however unrelated to the problem.
I tested the patch successfully with a poudriere testport run using DEFAULT_VERSIONS+=ssl=openssl in a 11.4-REL jail. The log was however too large to attach here.
Can the maintainer (sunpoet) please respond?
Hi everyone, I have just managed, for the first time in almost a year, to compile gdal. I was able to install "gdal-3.1.0_6" with "DEFAULT_VERSIONS+= ssl=libressl" in my "/etc/make.conf" file with the following options set (on FreeBSD 12.1-RELEASE-p9): CURL GEOS JASPER Previously I had tried JASPER and JASPER+CURL but it still failed (even this morning), I have no idea why adding GEOS made the SSL symbols "EVP_MD_CTX_create" and "EVP_MD_CTX_create" available, but hey, I am not complaining!
(In reply to Thomas Guymer from comment #6) Please see my comment #2 for an explanation! It is by accident it works for certain combinations of options. If you apply the patch it also works with default options.
I apologize for the lack of the response, this appears to be fixed in current version in tree and with supported versions of FreeBSD.