View Issue Details

IDProjectCategoryView StatusLast Update
0006594libmicrohttpdbuild systempublic2021-09-02 15:54
Reporterwiz Assigned ToChristian Grothoff Due Date
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 20: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 15:54

manager   ~0018166

Fix committed to master branch.

Issue History

Date ModifiedUsernameFieldChange
2020-09-09 12:43wizNew Issue
2020-09-11 20:31Christian GrothoffNote Added: 0016965
2020-09-11 20:31Christian GrothoffAssigned To => Christian Grothoff
2020-09-11 20:31Christian GrothoffStatusnew => resolved
2020-09-11 20:31Christian GrothoffResolutionopen => fixed
2020-09-11 20:31Christian GrothoffFixed in Version => 0.9.72
2020-09-11 20:31Christian GrothoffTarget Version => 0.9.72
2021-01-03 09:18Christian GrothoffStatusresolved => closed
2021-09-02 15:54Karlson2k
2021-09-02 15:54Christian Grothoff
2021-09-02 15:54Christian GrothoffNote Added: 0018166