2014-03-12 11:17 GMT+01:00 LRN <[email protected]>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 12.03.2014 13:06, drkmkzs wrote:
> > Hello,
> >
> > I am trying to compile a library (libneon 0.29.6) in mingw-64
> > (version 4.6.3) on windows 7 x64 , and i am getting the following
> > error :
> >
> > *expected specifier-qualifier-list before '(' token*
> >
> > in neon's file : ne_openssl.c - ligne 68 :
> >
> > struct ne_ssl_dname_s { * X509_NAME* dn;* };
> >
> > When following the definition of *X509_NAME* I poin t to
> > *x86_64-w64-mingw32\include\wincrypt.h :*
> >
> >
> > *#define X509_NAME ((LPCSTR) 7)*
> >
> > Looking in the same file in mingw32 (with which libneon compiled
> > well in 32bits) I see
> >
> > *#define X509_NAME (LPCSTR) 7*
> >
> > At first I thought the difference of syntaxe was the cause, but I
> > just tried to modify the define line and there's still an error
> > (thought the error slightly changed, so i'm sure it is using that
> > header file)
> >
> > I'm not sure where the error comes from, libneon, mingw, some
> > missing flags from my own ?
>
> Identifier conflict. This happens a lot, since W32 uses a lot of
> generic names, like "X509_NAME", for macros, and other packages may
> use them too.
>
OpenSSL had the same issue:
https://groups.google.com/forum/#!topic/mailing.openssl.users/wkcQb0jQxsw
http://marc.info/?l=openssl-dev&m=107789239305659
The macro is part of the Win32 API, no chance in that changing. You can
undef the macro before redefining it in neon or try defining
WIN32_LEAN_AND_MEAN, see:
http://www.archivum.info/[email protected]/2005-06/00002/Re-%28neon%29-Neon-and-Platform-SDK.html
This issue should have been fixed in neon version 0.22.0 when I look at
http://www.webdav.org/neon/history.html
Also, submit a bug report against libneon, it's their fault if this crops
up again (as they thought they fixed it).
Ruben
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public