curl-library
Re: libcurl build with -enable-sspi on MinGW/MSYS
Date: Sat, 07 Mar 2009 13:18:06 +0100
Gisle Vanem wrote:
> "Brecht Sanders" <brecht_at_sanders.org> wrote:
>
>> I was just compiling libcurl on my MinGW/MSYS build environment (on
>> Windows) with the -enable-sspi configure option.
>> However there were a lot of errors that UNICODE_STRING was not defined.
>> I was able to get around this by simply including subauth.h before
>> other header files that refer to it.
>
> What MingW version do you have? With v.3.14 here there's no problem.
> Excactly what errors do you get?
$ gcc --version
gcc.exe (GCC) 3.4.5 (mingw-vista special r3)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
FYI, here's my configure statement
./configure --prefix=$INSTALLPREFIX --build=i386-pc-mingw32
--with-spnego=$MINGWPREFIX/lib --enable-sspi --enable-ares
--enable-ldaps && make install
Here's the output:
configure: Configured to build curl/libcurl:
curl version: 7.19.4
Host setup: i386-pc-mingw32
Install prefix: /home/bsanders/inst_libcurl-7.19.4
Compiler: gcc
SSL support: enabled (OpenSSL)
SSH support: enabled (libSSH2)
zlib support: enabled
krb4 support: no (--with-krb4*)
GSSAPI support: no (--with-gssapi)
SPNEGO support: enabled
c-ares support: enabled
ipv6 support: no (--enable-ipv6)
IDN support: enabled
Build libcurl: Shared=yes, Static=yes
Built-in manual: no (--enable-manual)
Verbose errors: enabled (--disable-verbose)
SSPI support: yes
ca cert bundle: no
ca cert path: no
LDAP support: enabled (winldap)
LDAPS support: enabled
Making install in lib
make[1]: Entering directory `/home/bsanders/curl-7.19.4/lib'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../include -I../lib -I../lib
-IC:/Prog/MinGW-mSys/include -g0 -O2 -Wno-system-headers -MT file.lo
-MD -MP -MF ".deps/file.Tpo" -c -o file.lo file.c; \
then mv -f ".deps/file.Tpo" ".deps/file.Plo"; else rm -f
".deps/file.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../include
-I../lib -I../lib -IC:/Prog/MinGW-mSys/include -g0 -O2
-Wno-system-headers -MT file.lo -MD -MP -MF .deps/file.Tpo -c file.c
-DDLL_EXPORT -DPIC -o .libs/file.o
In file included from C:/Prog/MinGW-mSys/include/security.h:38,
from curl_sspi.h:40,
from urldata.h:272,
from file.c:75:
C:/Prog/MinGW-mSys/include/sspi.h:60: error: syntax error before
"SECURITY_STRING"
In file included from C:/Prog/MinGW-mSys/include/security.h:39,
from curl_sspi.h:40,
from urldata.h:272,
from file.c:75:
C:/Prog/MinGW-mSys/include/ntsecpkg.h:123: error: syntax error before
"SECURITY_STRING"
C:/Prog/MinGW-mSys/include/ntsecpkg.h:125: error: syntax error before
"LogonServer"
C:/Prog/MinGW-mSys/include/ntsecpkg.h:127: error: syntax error before
'}' token
C:/Prog/MinGW-mSys/include/ntsecpkg.h:212: error: syntax error before
"SECPKG_NAME_TYPE"
C:/Prog/MinGW-mSys/include/ntsecpkg.h:225: error: syntax error before
"SECPKG_NAME_TYPE"
C:/Prog/MinGW-mSys/include/ntsecpkg.h:342: error: syntax error before
"PSecurityUserData"
make[1]: *** [file.lo] Error 1
make[1]: Leaving directory `/home/bsanders/curl-7.19.4/lib'
make: *** [install-recursive] Error 1
Received on 2009-03-07