[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] 0.9.1 under mac os x
From: |
Christian Grothoff |
Subject: |
Re: [libmicrohttpd] 0.9.1 under mac os x |
Date: |
Sun, 26 Sep 2010 00:23:40 +0200 |
User-agent: |
KMail/1.13.2 (Linux/2.6.32-25-generic; KDE/4.4.2; i686; ; ) |
Hi!
First of all, these lines are odd:
checking for gnutls/gnutls.h... yes
checking for gnutls_priority_set in -lgnutls... no
So you have gnutls installed, but it does not have symbols we need (strange).
Anyway, I might have found the issue; if you have the autotools, try SVN
13080. Alternatively, as a workaround, you could try passing --disable-https
to configure, that should also do.
I hope this helps!
Happy hacking,
Christian
On Saturday, September 25, 2010 06:57:55 am Ronny Falk wrote:
> Hi,
> I am trying to make 0.9.1 work under Snow Leopard.
> No problems with 0.9.0 but the new version gives me trouble.
>
> configuring goes well....
> [00:37:address@hidden:~/projects/src/libmicrohttpd-0.9.1]$ ./configure
> --prefix=/Users/ronny/projects/mhd --with-gnutls=/opt/local checking for a
> BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... ./install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking for gawk... (cached) awk
> checking whether ln -s works... yes
> checking whether make sets $(MAKE)... (cached) yes
> checking build system type... x86_64-apple-darwin10.4.0
> checking host system type... x86_64-apple-darwin10.4.0
> checking for style of include used by make... GNU
> checking for gcc... gcc-4.2
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc-4.2 accepts -g... yes
> checking for gcc-4.2 option to accept ISO C89... none needed
> checking dependency style of gcc-4.2... gcc3
> checking whether gcc-4.2 and cc understand -c and -o together... yes
> checking for a sed that does not truncate output... /usr/bin/sed
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for fgrep... /usr/bin/grep -F
> checking for ld used by gcc-4.2...
> /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld checking if the linker
> (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no checking
> for BSD- or MS-compatible name lister (nm)... /usr/bin/nm checking the
> name lister (/usr/bin/nm) interface... BSD nm
> checking the maximum length of command line arguments... 196608
> checking whether the shell understands some XSI constructs... yes
> checking whether the shell understands "+="... yes
> checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload
> object files... -r checking for objdump... objdump
> checking how to recognize dependent libraries... pass_all
> checking for ar... ar
> checking for strip... strip
> checking for ranlib... ranlib
> checking command to parse /usr/bin/nm output from gcc-4.2 object... ok
> checking for dsymutil... dsymutil
> checking for nmedit... nmedit
> checking for lipo... lipo
> checking for otool... otool
> checking for otool64... no
> checking for -single_module linker flag... yes
> checking for -exported_symbols_list linker flag... yes
> checking how to run the C preprocessor... gcc-4.2 -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for dlfcn.h... yes
> checking for objdir... .libs
> checking if gcc-4.2 supports -fno-rtti -fno-exceptions... no
> checking for gcc-4.2 option to produce PIC... -fno-common -DPIC
> checking if gcc-4.2 PIC flag -fno-common -DPIC works... yes
> checking if gcc-4.2 static flag -static works... no
> checking if gcc-4.2 supports -c -o file.o... yes
> checking if gcc-4.2 supports -c -o file.o... (cached) yes
> checking whether the gcc-4.2 linker
> (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared
> libraries... yes checking dynamic linker characteristics... darwin10.4.0
> dyld
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> checking whether byte ordering is bigendian... no
> yes
> checking fcntl.h usability... yes
> checking fcntl.h presence... yes
> checking for fcntl.h... yes
> checking math.h usability... yes
> checking math.h presence... yes
> checking for math.h... yes
> checking errno.h usability... yes
> checking errno.h presence... yes
> checking for errno.h... yes
> checking limits.h usability... yes
> checking limits.h presence... yes
> checking for limits.h... yes
> checking stdio.h usability... yes
> checking stdio.h presence... yes
> checking for stdio.h... yes
> checking locale.h usability... yes
> checking locale.h presence... yes
> checking for locale.h... yes
> checking for sys/stat.h... (cached) yes
> checking for sys/types.h... (cached) yes
> checking pthread.h usability... yes
> checking pthread.h presence... yes
> checking for pthread.h... yes
> checking for sys/types.h... (cached) yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking sys/msg.h usability... yes
> checking sys/msg.h presence... yes
> checking for sys/msg.h... yes
> checking netdb.h usability... yes
> checking netdb.h presence... yes
> checking for netdb.h... yes
> checking netinet/in.h usability... yes
> checking netinet/in.h presence... yes
> checking for netinet/in.h... yes
> checking netinet/tcp.h usability... yes
> checking netinet/tcp.h presence... yes
> checking for netinet/tcp.h... yes
> checking time.h usability... yes
> checking time.h presence... yes
> checking for time.h... yes
> checking sys/socket.h usability... yes
> checking sys/socket.h presence... yes
> checking for sys/socket.h... yes
> checking sys/mman.h usability... yes
> checking sys/mman.h presence... yes
> checking for sys/mman.h... yes
> checking arpa/inet.h usability... yes
> checking arpa/inet.h presence... yes
> checking for arpa/inet.h... yes
> checking sys/select.h usability... yes
> checking sys/select.h presence... yes
> checking for sys/select.h... yes
> checking poll.h usability... yes
> checking poll.h presence... yes
> checking for poll.h... yes
> checking plibc.h usability... no
> checking plibc.h presence... no
> checking for plibc.h... no
> checking for memmem... no
> checking for IPv6... yes
> checking whether TCP_CORK is declared... no
> checking whether TCP_NOPUSH is declared... yes
> checking whether to use libcurl for testing... checking for gawk...
> (cached) awk checking for curl-config... /usr/bin/curl-config
> checking for the version of libcurl... 7.19.7
> checking whether libcurl is usable... yes
> checking for curl_free... yes
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... no
> checking for _LARGEFILE_SOURCE value needed for large files... no
> checking whether to disable error messages... no
> checking whether to enable postprocessor... no
> checking for zzuf... 1
> checking for socat... 1
> checking for libgcrypt-config... /opt/local/bin/libgcrypt-config
> checking for LIBGCRYPT - version >= 1.2.2... yes (1.4.6)
> checking for gnutls... /opt/local
> checking gnutls/gnutls.h usability... yes
> checking gnutls/gnutls.h presence... yes
> checking for gnutls/gnutls.h... yes
> checking for gnutls_priority_set in -lgnutls... no
> checking whether to disable HTTPS support... no
> checking whether to disable HTTP Digest Auth support... no
> checking whether -export-symbols-regex works... yes
> configure: creating ./config.status
> config.status: creating libmicrohttpd.pc
> config.status: creating Makefile
> config.status: creating contrib/Makefile
> config.status: creating doc/Makefile
> config.status: creating m4/Makefile
> config.status: creating src/Makefile
> config.status: creating src/include/Makefile
> config.status: creating src/include/plibc/Makefile
> config.status: creating src/daemon/Makefile
> config.status: creating src/examples/Makefile
> config.status: creating src/testcurl/Makefile
> config.status: creating src/testcurl/https/Makefile
> config.status: creating src/testzzuf/Makefile
> config.status: creating MHD_config.h
> config.status: MHD_config.h is unchanged
> config.status: executing depfiles commands
> config.status: executing libtool commands
> configure: Configuration Summary:
> Operating System: darwin10.4.0
> libgcrypt: yes
> libcurl (testing): yes
> Target directory: /Users/ronny/projects/mhd
> Messages: yes
> HTTP Digest Auth: yes
> Postproc: yes
> HTTPS support: no (lacking libgcrypt or libgnutls)
>
> configure:
> License : LGPL or eCos
>
> the problem I am seeing here, why does it say it's lacking https support,
> although it found libgcrypt and gnutls???
>
> make fails with the following output:
>
> libtool: compile: gcc-4.2 -DHAVE_CONFIG_H -I. -I../..
> -I../../src/include/plibc -I../../src/include -I../../src/daemon
> -I/opt/local/include -I/opt/local/include -no-cpp-precomp -fno-common
> -fno-strict-aliasing -Os -fomit-frame-pointer -pipe
> -mmacosx-version-min=10.5 -arch i386 -isysroot
> /Developer/SDKs/MacOSX10.5.sdk -MT md5.lo -MD -MP -MF .deps/md5.Tpo -c
> md5.c -fno-common -DPIC -o .libs/md5.o /bin/sh ../../libtool --tag=CC
> --mode=compile gcc-4.2 -DHAVE_CONFIG_H -I. -I../..
> -I../../src/include/plibc -I../../src/include -I../../src/daemon
> -I/opt/local/include -I/opt/local/include -no-cpp-precomp -fno-common
> -fno-strict-aliasing -Os -fomit-frame-pointer -pipe
> -mmacosx-version-min=10.5 -arch i386 -isysroot
> /Developer/SDKs/MacOSX10.5.sdk -MT connection_https.lo -MD -MP -MF
> .deps/connection_https.Tpo -c -o connection_https.lo connection_https.c
> libtool: compile: gcc-4.2 -DHAVE_CONFIG_H -I. -I../..
> -I../../src/include/plibc -I../../src/include -I../../src/daemon
> -I/opt/local/include -I/opt/local/include -no-cpp-precomp -fno-common
> -fno-strict-aliasing -Os -fomit-frame-pointer -pipe
> -mmacosx-version-min=10.5 -arch i386 -isysroot
> /Developer/SDKs/MacOSX10.5.sdk -MT connection_https.lo -MD -MP -MF
> .deps/connection_https.Tpo -c connection_https.c -fno-common -DPIC -o
> .libs/connection_https.o mv -f .deps/digestauth.Tpo .deps/digestauth.Plo
> connection_https.c: In function ‘MHD_tls_connection_close’:
> connection_https.c:50: error: ‘struct MHD_Connection’ has no member named
> ‘tls_session’ connection_https.c: In function
> ‘MHD_tls_connection_handle_read’:
> connection_https.c:124: error: ‘struct MHD_Connection’ has no member named
> ‘tls_session’ connection_https.c: In function
> ‘MHD_tls_connection_handle_write’: connection_https.c:171: error: ‘struct
> MHD_Connection’ has no member named ‘tls_session’ make[3]: ***
> [connection_https.lo] Error 1
> make[3]: *** Waiting for unfinished jobs....
> libtool: compile: gcc-4.2 -DHAVE_CONFIG_H -I. -I../..
> -I../../src/include/plibc -I../../src/include -I../../src/daemon
> -I/opt/local/include -I/opt/local/include -no-cpp-precomp -fno-common
> -fno-strict-aliasing -Os -fomit-frame-pointer -pipe
> -mmacosx-version-min=10.5 -arch i386 -isysroot
> /Developer/SDKs/MacOSX10.5.sdk -MT md5.lo -MD -MP -MF .deps/md5.Tpo -c
> md5.c -o md5.o >/dev/null 2>&1 mv -f .deps/connection.Tpo
> .deps/connection.Plo
> mv -f .deps/md5.Tpo .deps/md5.Plo
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> curious, why would this fail, while a build with 0.9.0 makes no problems at
> all....
>
> cheers
> Ron