Click here to Skip to main content
15,887,867 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am trying to build wpa_supplicant which is referencing openssl header file x509v3.h on Visual studio 2005. while i am building compiler hitting x509v3.h header file and finding hell lot of errors. Can anybody please help me. Have any bosy face this error.
I have installed openssl 1.0.1C latest version PC.

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(192) : error C2059: syntax error : '('

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(200) : error C2059: syntax error : 'type'

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(204) : error C2059: syntax error : '}'

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(205) : error C2059: syntax error : '}'

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(211) : error C2061: syntax error : identifier 'GENERAL_NAME'

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(212) : error C2059: syntax error : '}'

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(231) : error C2059: syntax error : '('

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(232) : error C2059: syntax error : '}'

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(249) : error C2061: syntax error : identifier 'DIST_POINT_NAME'

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(253) : error C2059: syntax error : '}'

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(323) : error C2061: syntax error : identifier 'GENERAL_NAME'

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(326) : error C2059: syntax error : '}'

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(358) : error C2061: syntax error : identifier 'DIST_POINT_NAME'

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(364) : error C2059: syntax error : '}'

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(524) : error C2143: syntax error : missing '{' before '*'

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(524) : error C2143: syntax error : missing ')' before '*'

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(524) : error C2143: syntax error : missing '{' before '*'

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(524) : error C2059: syntax error : ')'
Posted

1 solution

Dear All,
Actually that application having header file where it is undefining the XNAME_509(509.h). this is not taking while compiling the source code. and it is conflicting with the system defined XNAME_509 in wincrypt.h header file. So i have undefined in the same header file which i am using that is x509v3.h. In x509v3.h they have included "509.h" where undefines are there. Some how its not reflecting
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900