cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Conflicting lines 273 and 317 in /lib/urldata.h

From: Jan Ehrhardt <phpdev_at_ehrhardt.nl>
Date: Sat, 28 Jul 2012 18:17:27 +0200

Jan Ehrhardt in gmane.comp.web.curl.library (Sat, 28 Jul 2012 04:00:59
+0200):
>After this patch compilation still fails for me, with all kinds of
>errors starting at ../../win32build/include/openssl/x509v3.h(192) while
>compiling ssluse.c into ssluse.obj, but that seems more like an issue
>with OpenSSL.

I do not yet know what it is, but I found out which files caused the
errors while compiling ssluse.c. If I put back the urldata.h and
ssluse.c from release 7.26.0, I do not get any errors anymore.

With the urldata.h and ssluse.c from 7.27.0 I get all kind of errors in
x509v3.h (in openssl/include) related to X509_NAME.

The first error is the double declaration of 'connecting_state' in lines
273 and 317 of urldata.h. The next ones have to do with X509_NAME.

../../win32build/include/openssl\x509v3.h(192) : error C2059: syntax
error : '('

line 192 of x509v3.h (OpelSSL 1.0.1c) is:
        X509_NAME *directoryName;

No '(' to be seen. Here fails my C-knowledge.

Jan

C:\php-sdk\curl-src\winbuild>cl.exe /O2 /DNDEBUG /MD /DCURL_STATICLIB
/I. /I../include /nologo /W3 /EHsc /DWIN32 /FD /c /DBUILDING_LIBCURL
/I"../../win32build/include" /DUSE_WIN32_IDN /DWANT_IDN_PROTOTYPES
/DUSE_SSLEAY /I"../../win32build/include/openssl" /DHAVE_ZLIB_H
/DHAVE_ZLIB /DHAVE_LIBZ /DHAVE_LIBSSH2 /DHAVE_LIBSSH2_H /DLIBSSH2_WIN32
/DLIBSSH2_LIBRARY /DUSE_LIBSSH2 /I../../win32build/include/libssh2
/DUSE_IPV6 /DUSE_WINDOWS_SSPI /DUSE_SCHANNEL
/Fo"..\builds\libcurl-release-static-ssl-static-zlib-static-ssh2-static-ipv6-sspi-winssl-obj-lib/ssluse.
obj" ..\lib\ssluse.c

ssluse.c
c:\php-sdk\curl-src\lib\urldata.h(317) : error C2020:
'connecting_state': 'struct' member redefinition
../../win32build/include/openssl\x509v3.h(192) : error C2059: syntax
error : '('
../../win32build/include/openssl\x509v3.h(200) : error C2059: syntax
error : 'type'
../../win32build/include/openssl\x509v3.h(204) : error C2059: syntax
error : '}'
../../win32build/include/openssl\x509v3.h(205) : error C2059: syntax
error : '}'
../../win32build/include/openssl\x509v3.h(211) : error C2061: syntax
error : identifier 'GENERAL_NAME'
../../win32build/include/openssl\x509v3.h(212) : error C2059: syntax
error : '}'
../../win32build/include/openssl\x509v3.h(231) : error C2059: syntax
error : '('
../../win32build/include/openssl\x509v3.h(232) : error C2059: syntax
error : '}'
../../win32build/include/openssl\x509v3.h(249) : error C2016: C requires
that a struct or union has at least one member
../../win32build/include/openssl\x509v3.h(249) : error C2061: syntax
error : identifier 'DIST_POINT_NAME'

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-07-28