2014-03-12 14:57 GMT+01:00 drkmkzs <[email protected]>:
> yes thanks for the links, i read them and have been looking a little in
> neon changelogs, it appears they added modifications around 0.25 from
> fixing it into source file (with undef) from a patch into neon.mak.
>
> My (huge) mistake was because i use personal CmakeList to build neon, i
> guess some mechanism like such definition fix are done outside the source
> code now.
> The fact the build well success in mingw32 and not in mingw64-w64 pushed
> me into error, I hope it will appear as mitigating circumstances :s (and I
> don't know if it is working using autotools - i'll have to check)
>
Don't worry about it ;-) Just remember in the future to test the usual
build procedure first, and see if the same problem pops up there.
>
> So slightly modifying ne_openssl.c (add #undef X509_NAME and #undef
> X509_CERT_PAIR as in some other codes, and include rand.h before) works for
> me.
>
> Just to know, about the mailing list,
> http://lists.manyfish.co.uk/mailman/listinfo/neon seems not to work here,
> is the link dead ? i'm behind a proxy so can't be sure it is really
> unavailable ...
>
You can use this website to check for such a situation:
http://www.downforeveryoneorjustme.com/http://lists.manyfish.co.uk/mailman/listinfo/neon
Cheers!
Ruben
>
> Thanx for help all :)
>
>
> 2014-03-12 11:34 GMT+01:00 Ruben Van Boxem <[email protected]>:
>
>> 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
>>
>>
>
>
> ------------------------------------------------------------------------------
> 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
>
>
------------------------------------------------------------------------------
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