Bug 197360 - building security/libgcrypt fails due to "undefined reference to `_gcry_USE_THE_UNDERSCORED_FUNCTION'"
Summary: building security/libgcrypt fails due to "undefined reference to `_gcry_USE_T...
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-06 09:22 UTC by Kalle Richter
Modified: 2015-02-17 01:36 UTC (History)
1 user (show)

See Also:
koobs: maintainer-feedback+


Attachments
poudriere libgcrypt-1.6.2_1 build logs (77.86 KB, application/zip)
2015-02-16 22:06 UTC, Carlos J Puga Medina
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kalle Richter 2015-02-06 09:22:59 UTC
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.
Comment 1 Carlos J Puga Medina 2015-02-06 14:13:05 UTC
Hi,

Can you show the 'uname -a' output?
Comment 2 Kalle Richter 2015-02-07 00:09:46 UTC
`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
Comment 3 Carlos J Puga Medina 2015-02-07 13:28:53 UTC
Try to build it with '--enable-random=linux' option:

# make CONFIGURE_ARGS="--enable-random=linux" install clean
Comment 4 Carlos J Puga Medina 2015-02-14 13:39:30 UTC
After recent libgcrypt update, can you reproduce the above error?
Comment 5 Carlos J Puga Medina 2015-02-16 22:06:50 UTC
Created attachment 153090 [details]
poudriere libgcrypt-1.6.2_1 build logs
Comment 6 Kalle Richter 2015-02-16 23:40:59 UTC
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.
Comment 7 Carlos J Puga Medina 2015-02-17 00:47:47 UTC
(In reply to Kalle Richter from comment #6)

I'm glad that you solved it. So we can close this PR.