Hi,
The problem is not old compiler, but your old version of GnuTLS.
It should be fixed by 155ac53ed4221c4af0a00e85b90a6a10a32e4c75.
You can try one of the following:
* compile MHD from latest git master,
* update GnuTLS,
* or disable HTTPS by '--disable-https' configure parameter.
--
Wishes,
Evgeny
DJM-Avalesta wrote:
Hi there,
I'm tryng to compile the latest release but using a very old compiler. I'm trying to upgrade from libmicrohttpd version 91800.
Anyway, the main library compiles ok but with these warnings
/bin/sh ../../libtool --tag=CC --mode=compile arm-oe-linux-gnueabi-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -I../../src/microhttpd -DBUILDING_MHD_LIB=1 -fvisibility=hidden -pthread -g -O2 -fno-strict-aliasing -MT libmicrohttpd_la-response.lo -MD -MP -MF .deps/libmicrohttpd_la-response.Tpo -c -o libmicrohttpd_la-response.lo `test -f 'response.c' || echo './'`response.c libtool: compile: arm-oe-linux-gnueabi-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -I../../src/microhttpd -DBUILDING_MHD_LIB=1 -fvisibility=hidden -pthread -g -O2 -fno-strict-aliasing -MT libmicrohttpd_la-response.lo -MD -MP -MF .deps/libmicrohttpd_la-response.Tpo -c response.c -o libmicrohttpd_la-response.o response.c: In function ‘MHD_upgrade_action’: response.c:839: warning: implicit declaration of function ‘gnutls_record_cork’ response.c:861: warning: implicit declaration of function ‘gnutls_record_uncork’
but then the examples fail to build due to undefined refs.
/bin/sh ../../libtool --tag=CC --mode=link arm-oe-linux-gnueabi-gcc -std=gnu99 -g -O2 -fno-strict-aliasing -o benchmark benchmark-benchmark.o ../../src/microhttpd/libmicrohttpd.la libtool: link: arm-oe-linux-gnueabi-gcc -std=gnu99 -g -O2 -fno-strict-aliasing -o benchmark benchmark-benchmark.o ../../src/microhttpd/.libs/libmicrohttpd.a -lrt /home/user/chipwrights/cw5631-generic-2.1-20100702/build/tmp/staging/armv5te-oe-linux-gnueabi/usr/lib/libgnutls.so -L/home/user/chipwrights/cw5631-generic-2.1-20100702/build/tmp/staging/armv5te-oe-linux-gnueabi/usr/lib /home/user/chipwrights/cw5631-generic-2.1-20100702/build/tmp/staging/armv5te-oe-linux-gnueabi/usr/lib/libgcrypt.so -ldl /home/user/chipwrights/cw5631-generic-2.1-20100702/build/tmp/staging/armv5te-oe-linux-gnueabi/usr/lib/libgpg-error.so -pthread -Wl,-rpath -Wl,/home/user/chipwrights/cw5631-generic-2.1-20100702/build/tmp/staging/armv5te-oe-linux-gnueabi/usr/lib ../../src/microhttpd/.libs/libmicrohttpd.a(libmicrohttpd_la-mhd_send.o): In function `MHD_send_on_connection_': /mnt/hgfs/Projects/libmicrohttpd-0.9.71/src/microhttpd/mhd_send.c:316: undefined reference to `gnutls_record_uncork' /mnt/hgfs/Projects/libmicrohttpd-0.9.71/src/microhttpd/mhd_send.c:285: undefined reference to `gnutls_record_cork' ../../src/microhttpd/.libs/libmicrohttpd.a(libmicrohttpd_la-mhd_send.o): In function `MHD_send_on_connection2_': /mnt/hgfs/Projects/libmicrohttpd-0.9.71/src/microhttpd/mhd_send.c:408: undefined reference to `gnutls_record_uncork' ../../src/microhttpd/.libs/libmicrohttpd.a(libmicrohttpd_la-response.o): In function `MHD_upgrade_action': /mnt/hgfs/Projects/libmicrohttpd-0.9.71/src/microhttpd/response.c:861: undefined reference to `gnutls_record_uncork' /mnt/hgfs/Projects/libmicrohttpd-0.9.71/src/microhttpd/response.c:839: undefined reference to `gnutls_record_cork' collect2: ld returned 1 exit status make[4]: *** [benchmark] Error 1
Many thanks
David
|