Upgrading from pgpool 3.4.11 to 3.4.16 results in the following build messages: main/main.o: In function `main': main.c:(.text.startup+0x2df): undefined reference to `OPENSSL_init_ssl' watchdog/lib-watchdog.a(wd_packet.o): In function `wd_calc_hash': wd_packet.c:(.text+0x1a33): undefined reference to `HMAC_CTX_new' wd_packet.c:(.text+0x1a40): undefined reference to `HMAC_CTX_reset' wd_packet.c:(.text+0x1a90): undefined reference to `HMAC_CTX_reset' wd_packet.c:(.text+0x1a9a): undefined reference to `HMAC_CTX_free' collect2: error: ld returned 1 exit status gmake[3]: *** [Makefile:826: pgpool] Error 1 gmake[3]: Leaving directory '/var/ports/usr/ports/databases/pgpool/work/pgpool-II-3.4.16/src' gmake[2]: *** [Makefile:980: all-recursive] Error 1 gmake[2]: Leaving directory '/var/ports/usr/ports/databases/pgpool/work/pgpool-II-3.4.16/src' gmake[1]: *** [Makefile:388: all-recursive] Error 1 gmake[1]: Leaving directory '/var/ports/usr/ports/databases/pgpool/work/pgpool-II-3.4.16' Suspect the changes arising from 3.4.14 see http://www.pgpool.net/docs/latest/en/html/release-3-4-14.html Platform: FreeBSD 11.1-STABLE r328914M amd64 1101509 1101509 SSL: libressl 2.6.4 (build is successful using openssl 1.0.2.n) Build options: the defaults. CFLAGS: -O2 -pipe -Wl,-m,elf_x86_64_fbsd -DOPENSSL_NO_SSL2 -DOPENSSL_NO_SSL3 -g0 -ggdb0 -DSTRIP_FBSDID -UDEBUGGING -UEBUGGING -UDEBUG -fno-math-errno -Wl,--hash-style=sysv -fPIE -fPIC -fomit-frame-pointer -march=core2 -fstack-protector -fno-strict-aliasing (please note binutils 2.30 is used) Both compilers failed to build: clang 5.0.1 and gcc7
Created attachment 190879 [details] svn-diff-pgpool_libressl
The patch builds fine for me. Can you please check if its fixes your problem? @Walter: Can you please provide some patch for databases/pgpool-II-33. There is the same problem when using LibreSSL.
Created attachment 190889 [details] svn-diff-pqpool-II-33
(In reply to w.schwarzenfeld from comment #1) Thank-you Walter, your patches enable the build to succeed on FreeBSD 11.1 amd64 with libressl 2.6.4. Unfortunately it will be a few days before a window for function testing. :/ As another matter arose, I won't close. But I'm very pleased with your quick turnaround. :) Kind regards.
Ok, I will remind you ... if you forget ;-))
Aloha, did you find some time for testing the patch? Greetings, Torsten
A commit references this bug: Author: tz Date: Thu May 17 09:32:05 UTC 2018 New revision: 470211 URL: https://svnweb.freebsd.org/changeset/ports/470211 Log: databases/pgpool-II-33: Fix build with LibreSSL The build was broken after the latest update of the port, but only on amd64, not i386. PR: 226099 Submitted by: w.schwarzenfeld@utanet.at Reported by: dewayne@heuristicsystems.com.au Changes: head/databases/pgpool-II-33/Makefile head/databases/pgpool-II-33/files/patch-main.c head/databases/pgpool-II-33/files/patch-pool__config.l head/databases/pgpool-II-33/files/patch-wd__packet.c
Since opening the PR only databases/pgpool-II-33 still fails to build. And it only fails on amd64, not i386. I just committed the patch to fix the issue. Thanks for your work! :) Greetings, Torsten