[Botan-devel] Botan-1.6.2 build fail with vc2003

Christophe Meessen meessen at cppm.in2p3.fr
Wed Jun 20 05:56:52 EDT 2007


Hello,

I have downloaded 1.6.2, configured it and tried to compile it. 

Just for feedback, I had a little difficulty in determining what CPU
value I should provide in the configure command. The one I gave was not
correct, so it picked a default value i586.

Unfortunately building fails with an error. Here is the list of build
instructions with the error message.

x509stat.cpp
src\x509stat.cpp(53) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::Key_Usage_Prototype::make(const
Botan::OID &)' : function cannot access 'Botan::OIDS'
src\x509stat.cpp(53) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::Key_Usage_Prototype::make(const
Botan::OID &)' : function cannot access 'Botan::Cert_Extension'
src\x509stat.cpp(54) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::Basic_Constraints_Prototype::mak
e(const Botan::OID &)' : function cannot access 'Botan::OIDS'
src\x509stat.cpp(54) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::Basic_Constraints_Prototype::mak
e(const Botan::OID &)' : function cannot access 'Botan::Cert_Extension'
src\x509stat.cpp(55) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::Subject_Key_ID_Prototype::make(c
onst Botan::OID &)' : function cannot access 'Botan::OIDS'
src\x509stat.cpp(55) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::Subject_Key_ID_Prototype::make(c
onst Botan::OID &)' : function cannot access 'Botan::Cert_Extension'
src\x509stat.cpp(56) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::Authority_Key_ID_Prototype::make
(const Botan::OID &)' : function cannot access 'Botan::OIDS'
src\x509stat.cpp(56) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::Authority_Key_ID_Prototype::make
(const Botan::OID &)' : function cannot access 'Botan::Cert_Extension'
src\x509stat.cpp(57) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::Extended_Key_Usage_Prototype::ma
ke(const Botan::OID &)' : function cannot access 'Botan::OIDS'
src\x509stat.cpp(57) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::Extended_Key_Usage_Prototype::ma
ke(const Botan::OID &)' : function cannot access 'Botan::Cert_Extension'
src\x509stat.cpp(58) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::Issuer_Alternative_Name_Prototyp
e::make(const Botan::OID &)' : function cannot access 'Botan::OIDS'
src\x509stat.cpp(58) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::Issuer_Alternative_Name_Prototyp
e::make(const Botan::OID &)' : function cannot access
'Botan::Cert_Extension'
src\x509stat.cpp(59) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::Subject_Alternative_Name_Prototy
pe::make(const Botan::OID &)' : function cannot access 'Botan::OIDS'
src\x509stat.cpp(59) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::Subject_Alternative_Name_Prototy
pe::make(const Botan::OID &)' : function cannot access
'Botan::Cert_Extension'
src\x509stat.cpp(60) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::CRL_Number_Prototype::make(const
 Botan::OID &)' : function cannot access 'Botan::OIDS'
src\x509stat.cpp(60) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::CRL_Number_Prototype::make(const
 Botan::OID &)' : function cannot access 'Botan::Cert_Extension'
src\x509stat.cpp(61) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::Certificate_Policies_Prototype::
make(const Botan::OID &)' : function cannot access 'Botan::OIDS'
src\x509stat.cpp(61) : error C2326: 'Botan::Certificate_Extension
*Botan::X509_GlobalState::__ctor::Certificate_Policies_Prototype::
make(const Botan::OID &)' : function cannot access 'Botan::Cert_Extension'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

C:\Botan\Botan-1.6.2>

It looks like there is a problem related to protected or private member
access.



More information about the botan-devel mailing list