libassuan CFLAGS/LDFLAGS not used
Closed, ResolvedPublic

Description

gcc -DHAVE_CONFIG_H -I. -I.. -I../common -DLOCALEDIR=\"/usr/share/locale\"
-DGNUPG_BINDIR="\"/usr/bin\"" -DGNUPG_LIBEXECDIR="\"/usr/libexec\""
-DGNUPG_LIBDIR="\"/usr/lib64/gnupg\"" -DGNUPG_DATADIR="\"/usr/share/gnupg\""
-DGNUPG_SYSCONFDIR="\"/etc/gnupg\"" -DGNUPG_LOCALSTATEDIR="\"/var\""
-DWITHOUT_NPTH=1 -I/usr/include/p11-kit-1 -O3 -Wall -Wcast-align -Wshadow
-Wstrict-prototypes -Wformat -Wno-format-y2k -Wformat-security -W
-Wno-sign-compare -Wno-missing-field-initializers -Wdeclaration-after-statement
-Wno-pointer-sign -Wpointer-arith -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c -o
t_http-t-http.o test -f 't-http.c' || echo './'t-http.c
t-http.c:39:20: fatal error: assuan.h: No such file or directory
#include <assuan.h>

                    ^

looks like configure.ac is just checking if lib exists, nothing more.

There is actually m4 macro for doing things:
dnl AM_PATH_LIBASSUAN([MINIMUM-VERSION,
dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
dnl Test for libassuan and define LIBASSUAN_CFLAGS and LIBASSUAN_LIBS
dnl

werner renamed this task from liassuan CFLAGS/LDFLAGS not used to libassuan CFLAGS/LDFLAGS not used.
rwmj added a subscriber: rwmj.Jun 23 2017, 10:05 AM

I'm still hitting this on Fedora. The patch is simple and was posted on the mailing list but apparently not incorporated into git:

https://lists.gnupg.org/pipermail/gnupg-devel/2015-November/030546.html

rwmj added a comment.Jun 23 2017, 10:11 AM

werner claimed this task.Jun 23 2017, 11:52 AM
werner closed this task as Resolved.Jun 23 2017, 12:20 PM

Thanks for the reminder. Fixed.
Note that LIBASSUAN_LIBS is not needed because it is already part of t_common_ldadd.

rwmj added a comment.Jun 23 2017, 12:28 PM

Confirmed that it now compiles ok on Fedora, thanks.

Thanks for testing.