[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] Issue building test_upgrade when running make check (fix

From: Lasa Martxel
Subject: [libmicrohttpd] Issue building test_upgrade when running make check (fixed changing
Date: Fri, 14 Dec 2018 09:46:44 +0000



I was getting an error when running make check, when building test_upgrade. I have followed the following steps to build the library (tried both on master an v0.9.62, same result):


git clone

cd libmicrohttpd


./configure --enable-curl


make check


The error message I was getting is the following one:


gcc -DHAVE_CONFIG_H -I. -I../..  -I../../src/include -I../../src/microhttpd   -fvisibility=hidden  -pthread  -g -O2 -fno-strict-aliasing -MT test_upgrade-test_upgrade.o -MD -MP -MF .deps/test_upgrade-test_upgrade.Tpo -c -o test_upgrade-test_upgrade.o `test -f 'test_upgrade.c' || echo './'`test_upgrade.c

mv -f .deps/test_upgrade-test_upgrade.Tpo .deps/test_upgrade-test_upgrade.Po

/bin/bash ../../libtool  --tag=CC   --mode=link gcc -fvisibility=hidden  -pthread  -g -O2 -fno-strict-aliasing   -o test_upgrade test_upgrade-test_upgrade.o ../../src/microhttpd/ 

libtool: link: gcc -fvisibility=hidden -pthread -g -O2 -fno-strict-aliasing -o .libs/test_upgrade test_upgrade-test_upgrade.o  ../../src/microhttpd/.libs/ -pthread

/usr/bin/ld: test_upgrade-test_upgrade.o: undefined reference to symbol 'gnutls_handshake@@GNUTLS_3_4'

//usr/lib/x86_64-linux-gnu/ error adding symbols: DSO missing from command line

collect2: error: ld returned 1 exit status

Makefile:1139: recipe for target 'test_upgrade' failed


I had to add $(MHD_TLS_LIB_LDFLAGS) and $(MHD_TLS_LIBDEPS) to test_upgrade_LDADD and test_upgrade_tls_LDADD to the


diff --git a/src/microhttpd/ b/src/microhttpd/

index 22b6100d..1f4ffca3 100644

--- a/src/microhttpd/

+++ b/src/microhttpd/

@@ -224,6 +224,7 @@ test_upgrade_LDFLAGS = \


test_upgrade_LDADD = \

   $(top_builddir)/src/microhttpd/ \



 test_upgrade_tls_SOURCES = \

@@ -236,6 +237,7 @@ test_upgrade_tls_LDFLAGS = \


test_upgrade_tls_LDADD = \

   $(top_builddir)/src/microhttpd/ \



 test_postprocessor_SOURCES = \


With that change, I’m able to correctly build, run and pass al the tests.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]