Installation of `gnupg` with `cd /usr/ports/security/gnupg && make install` as user `root` fails with # make install ===> gnupg-2.1.1_1 depends on package: libgpg-error>=1.11 - found ===> gnupg-2.1.1_1 depends on executable: gmake - found ===> gnupg-2.1.1_1 depends on executable: pkgconf - found ===> gnupg-2.1.1_1 depends on executable: msgfmt - found ===> gnupg-2.1.1_1 depends on shared library: libassuan.so - found (/usr/local/lib/libassuan.so.0.4.3) ===> gnupg-2.1.1_1 depends on shared library: libgcrypt.so - not found ===> Verifying for libgcrypt.so in /usr/ports/security/libgcrypt ===> Building for libgcrypt-1.6.2 /usr/bin/make all-recursive Making all in compat Making all in mpi Making all in cipher Making all in random Making all in src /bin/sh ../libtool --tag=CC --mode=link cc -I/usr/local/include -O2 -pipe -fno-strict-aliasing -std=gnu89 -fvisibility=hidden -Wall -o mpicalc mpicalc-mpicalc.o libgcrypt.la -L/usr/local/lib -lgpg-error libtool: link: cc -I/usr/local/include -O2 -pipe -fno-strict-aliasing -std=gnu89 -fvisibility=hidden -Wall -o .libs/mpicalc mpicalc-mpicalc.o ./.libs/libgcrypt.so -L/usr/local/lib -lgpg-error -Wl,-rpath -Wl,/usr/local/lib ./.libs/libgcrypt.so: undefined reference to `_gcry_USE_THE_UNDERSCORED_FUNCTION' *** [mpicalc] Error code 1 Stop in /usr/ports/security/libgcrypt/work/libgcrypt-1.6.2/src. *** [all-recursive] Error code 1 Stop in /usr/ports/security/libgcrypt/work/libgcrypt-1.6.2. *** [all] Error code 1 Stop in /usr/ports/security/libgcrypt/work/libgcrypt-1.6.2. *** [do-build] Error code 1 Stop in /usr/ports/security/libgcrypt. *** [lib-depends] Error code 1 Stop in /usr/ports/security/gnupg. This affects a bunch of ports, including `devel/git`. Experienced with FreeBSD 9.3.
Hi, Can you show the 'uname -a' output?
`uname -a` prints FreeBSD freenas.local 9.3-RELEASE-p8 FreeBSD 9.3-RELEASE-p8 #3 r275790+153f322: Tue Feb 3 20:32:44 PST 2015 root@build3.ixsystems.com:/tank/home/jkh/build/93/FN/objs/os-base/amd64/fusion/jkh/93/FN/FreeBSD/src/sys/FREENAS.amd64 i386
Try to build it with '--enable-random=linux' option: # make CONFIGURE_ARGS="--enable-random=linux" install clean
After recent libgcrypt update, can you reproduce the above error?
Created attachment 153090 [details] poudriere libgcrypt-1.6.2_1 build logs
I accidentially build in the FreeBSD-based system FreeNAS instead of the FreeBSD jail. Building in FreeBSD 9.3 (jail) works and probably always did.
(In reply to Kalle Richter from comment #6) I'm glad that you solved it. So we can close this PR.