add configure check for zlib to ntbtls
Open, NormalPublic

Description

"ntbtls-0.1.2" downloaded from "https://www.gnupg.org/download/index.html"

Operated on "CentOS Linux release 7.7.1908 (Core)"

Here the protocol:

[patzelt@centos7 ntbtls-0.1.2]$ make
make all-recursive
make[1]: Entering directory `/home/patzelt/Schreibtisch/GnupgWRK/ntbtls-0.1.2'
Making all in src
make[2]: Entering directory `/home/patzelt/Schreibtisch/GnupgWRK/ntbtls-0.1.2/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I/usr/local/include -g -O2 -fvisibility=hidden -Wall -Wno-pointer-sign -Wpointer-arith -MT visibility.lo -MD -MP -MF .deps/visibility.Tpo -c -o visibility.lo visibility.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I/usr/local/include -g -O2 -fvisibility=hidden -Wall -Wno-pointer-sign -Wpointer-arith -MT visibility.lo -MD -MP -MF .deps/visibility.Tpo -c visibility.c -fPIC -DPIC -o .libs/visibility.o
In file included from ntbtls-int.h:251:0,

from visibility.h:24,
from visibility.c:24:

context.h:24:18: fatal error: zlib.h: No such file or directory
#include <zlib.h>

^

compilation terminated.
make[2]: * [visibility.lo] Fehler 1
make[2]: Leaving directory `/home/patzelt/Schreibtisch/GnupgWRK/ntbtls-0.1.2/src'
make[1]:
* [all-recursive] Fehler 1
make[1]: Leaving directory `/home/patzelt/Schreibtisch/GnupgWRK/ntbtls-0.1.2'
make: *** [all] Fehler 2
[patzelt@centos7 ntbtls-0.1.2]$

What's to do?

werner triaged this task as Normal priority.
werner added a subscriber: werner.

Install the zlib development package, its name is often "zlib1g-dev". The source requires the header because we plan to eventually support compression.

We need to add a configure check. though.

werner renamed this task from "make" with "ntbtls-0.1.2" failed to add configure check for zlib to ntbtls.Feb 6 2020, 9:21 PM