#67981 closed defect (fixed)

gnupg2 @2.4.3 build fails with -openldap

Reported by: blair (Blair Zajac) Owned by: roederja
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: Ionic (Mihai Moldovan), catap (Kirill A. Korinsky)
Port: gnupg2

Description

Building the just released 2.4.3 fails if I set the variant in ${prefix}/etc/macports/variants.conf with -openldap:

/usr/bin/clang -std=gnu99 -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include  -I/opt/local/include/p11-kit-1 -Wall -Wno-pointer-sign -Wpointer-arith -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64  -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64 -o dirmngr dirmngr.o server.o crlcache.o crlfetch.o fakecrl.o certcache.o domaininfo.o workqueue.o loadswdb.o cdblib.o misc.o ocsp.o validate.o dns-stuff.o http.o http-common.o http-ntbtls.o ks-action.o ks-engine-hkp.o ks-engine-http.o ks-engine-finger.o ks-engine-kdns.o dns.o  ../common/libcommonpth.a -lresolv  -L/opt/local/lib -lassuan -L/opt/local/lib -lksba -lgpg-error -L/opt/local/lib -lnpth  -L/opt/local/lib -lgnutls -L/opt/local/lib -lgcrypt -lgpg-error -L/opt/local/lib -lgpg-error -lintl -Wl,-framework -Wl,CoreFoundation -liconv    
mv -f .deps/t_http_basic-dns.Tpo .deps/t_http_basic-dns.Po
/usr/bin/clang -DWITHOUT_NPTH=1  -std=gnu99 -I/opt/local/include  -I/opt/local/include/p11-kit-1 -I/opt/local/include -I/opt/local/include -I/opt/local/include -Wall -Wno-pointer-sign -Wpointer-arith -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64  -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64 -o t-http-basic t_http_basic-t-support.o t_http_basic-dns.o t_http_basic-t-http-basic.o t_http_basic-http.o t_http_basic-dns-stuff.o t_http_basic-http-common.o ../common/libcommon.a -L/opt/local/lib -lassuan  -L/opt/local/lib -lgcrypt -lgpg-error -L/opt/local/lib -lgpg-error -L/opt/local/lib -lgnutls  -lresolv  -lintl -Wl,-framework -Wl,CoreFoundation -liconv  -L/opt/local/lib -lksba -lgpg-error -L/opt/local/lib -lgcrypt -lgpg-error -L/opt/local/lib -lgpg-error -L/opt/local/lib -lgnutls -lresolv  
Undefined symbols for architecture arm64:
  "_ks_ldap_help_variables", referenced from:
      _cmd_ad_query in server.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [dirmngr] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/opt/local/var/macports/build/_Users_blairzajac_Code_MacPorts_macports-ports.git_mail_gnupg2/gnupg2/work/gnupg-2.4.3/dirmngr'

Change History (6)

comment:1 Changed 15 months ago by jmroot (Joshua Root)

Cc: roederja Ionic added
Summary: gnupg2@2.4.3 build fails with -openldapgnupg2 @2.4.3 build fails with -openldap

comment:2 Changed 15 months ago by cjones051073 (Chris Jones)

Owner: cjones051073 deleted

comment:3 Changed 15 months ago by cjones051073 (Chris Jones)

please reassign to port maintainer

comment:4 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: roederja removed
Owner: set to roederja

comment:5 Changed 15 months ago by catap (Kirill A. Korinsky)

Cc: catap added

comment:6 Changed 15 months ago by catap (Kirill A. Korinsky)

Resolution: fixed
Status: assignedclosed

In 771cf01ef0a65f31e201f8f88a76f491b268a36e/macports-ports (master):

gnupg2: fix build without OpenLDAP

Closes: #67981

Note: See TracTickets for help on using tickets.