View Issue Details

IDProjectCategoryView StatusLast Update
0006594libmicrohttpdbuild systempublic2021-09-02 17:54
Reporterwiz Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformallOSallOS Versionall
Product Version0.9.71 
Target Version0.9.72Fixed in Version0.9.72 
Summary0006594: configure script accepts too-old gnutls
Descriptionlibmicrohttpd 0.9.71 wants to use gnutls_record_uncork and gnutls_record_cork. These functions were added in gnutls 3.1.9.
However, older versions of gnutls are accepted, leading to linker errors (e.g. on RHEL6).

../../src/microhttpd/.libs/libmicrohttpd.so: undefined reference to `gnutls_record_uncork'
../../src/microhttpd/.libs/libmicrohttpd.so: undefined reference to `gnutls_record_cork'
Steps To ReproduceBuild on a system with gnutls-2.x installed.
Additional InformationI tried just adding a minimum version to the gnutls pkg-config check, but libmicrohttpd ignores this and accepts older gnutls anyway.
(I think this part is too smart and should just be replaced with
PKG_CHECK_MODULES(GNUTLS, [gnutls >= 3.1.9])
)
TagsNo tags attached.

Activities

Christian Grothoff

2020-09-11 22:31

manager   ~0016965

16c13329..ed6afa82 changes the test to check for gnutls_record_uncork. I agree the test is an atrocity, but I _suspect_ it was written to make things work on non-GNU systems.

Christian Grothoff

2021-09-02 17:54

manager   ~0018166

Fix committed to master branch.

Related Changesets

libmicrohttpd: master ed6afa82

2020-09-12 00:23

Christian Grothoff


Details Diff
fix 0006594: better test for gnutls_record_uncork Affected Issues
0006594
mod - configure.ac Diff File

libmicrohttpd: master d3589c58

2020-12-25 16:37

Karlson2k


Details Diff
Revert "fix 0006594: better test for gnutls_record_uncork" Affected Issues
0006594
mod - configure.ac Diff File

Issue History

Date Modified Username Field Change
2020-09-09 14:43 wiz New Issue
2020-09-11 22:31 Christian Grothoff Note Added: 0016965
2020-09-11 22:31 Christian Grothoff Assigned To => Christian Grothoff
2020-09-11 22:31 Christian Grothoff Status new => resolved
2020-09-11 22:31 Christian Grothoff Resolution open => fixed
2020-09-11 22:31 Christian Grothoff Fixed in Version => 0.9.72
2020-09-11 22:31 Christian Grothoff Target Version => 0.9.72
2021-01-03 10:18 Christian Grothoff Status resolved => closed
2021-09-02 17:54 Karlson2k Changeset attached => libmicrohttpd master d3589c58
2021-09-02 17:54 Christian Grothoff Changeset attached => libmicrohttpd master ed6afa82
2021-09-02 17:54 Christian Grothoff Note Added: 0018166