View Issue Details

IDProjectCategoryView StatusLast Update
0001588libmicrohttpdbuild systempublic2010-10-21 15:47
Reporterfundawang Assigned ToChristian Grothoff  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version0.9.0 
Summary0001588: Missing libgcrypt when link with gnutls
DescriptionWhen enabling external gnutls libs, libgcrypt was missing from LIBADD of libmicrohttpd. It will cause undefined references to gcry_control if using LDFLAGS="-Wl,--no-undefined":

/bin/sh ../../libtool --tag=CC --mode=link gcc -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -export-dynamic -no-undefined -version-info 8:0:0 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -o libmicrohttpd.la -rpath /usr/lib connection.lo reason_phrase.lo daemon.lo internal.lo memorypool.lo postprocessor.lo response.lo connection_https.lo -lgnutls -lpthread
libtool: link: gcc -shared -Wl,--as-needed .libs/connection.o .libs/reason_phrase.o .libs/daemon.o .libs/internal.o .libs/memorypool.o .libs/postprocessor.o .libs/response.o .libs/connection_https.o -march=i586 -mtune=generic -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id /usr/lib/libgnutls.so -lpthread -Wl,-soname -Wl,libmicrohttpd.so.8 -o .libs/libmicrohttpd.so.8.0.0
.libs/daemon.o: In function `MHD_init':
/tmp/libmicrohttpd/BUILD/libmicrohttpd-0.9.0/src/daemon/daemon.c:2067: undefined reference to `gcry_control'
Additional InformationPlease apply attached patch.
TagsNo tags attached.
Attached Files
libmicrohttpd-0.9.0-link.patch (830 bytes)   
--- src/daemon/Makefile.am.link	2010-07-27 05:57:55.000000000 +0200
+++ src/daemon/Makefile.am	2010-07-27 05:58:22.000000000 +0200
@@ -28,7 +28,7 @@
 if ENABLE_HTTPS
 libmicrohttpd_la_SOURCES += \
   connection_https.c connection_https.h
-libmicrohttpd_la_LIBADD = -lgnutls 
+libmicrohttpd_la_LIBADD = -lgnutls @LIBGCRYPT_LIBS@
 endif
 
 check_PROGRAMS = \
--- src/daemon/Makefile.in.link	2010-07-27 05:57:51.000000000 +0200
+++ src/daemon/Makefile.in	2010-07-27 05:58:35.000000000 +0200
@@ -276,7 +276,7 @@
   -version-info @LIB_VERSION_CURRENT@:@LIB_VERSION_REVISION@:@LIB_VERSION_AGE@
 
 @USE_COVERAGE_TRUE@AM_CFLAGS = --coverage
-@ENABLE_HTTPS_TRUE@libmicrohttpd_la_LIBADD = -lgnutls 
+@ENABLE_HTTPS_TRUE@libmicrohttpd_la_LIBADD = -lgnutls @LIBGCRYPT_LIBS@
 TESTS = $(check_PROGRAMS)
 daemon_test_SOURCES = \
   daemon_test.c

Activities

Christian Grothoff

2010-07-27 07:05

manager   ~0004080

Fixed in SVN 12353.

Issue History

Date Modified Username Field Change
2010-07-27 06:10 fundawang New Issue
2010-07-27 06:10 fundawang File Added: libmicrohttpd-0.9.0-link.patch
2010-07-27 07:05 Christian Grothoff Note Added: 0004080
2010-07-27 07:05 Christian Grothoff Status new => resolved
2010-07-27 07:05 Christian Grothoff Resolution open => fixed
2010-07-27 07:05 Christian Grothoff Assigned To => Christian Grothoff
2010-10-21 15:47 Christian Grothoff Status resolved => closed