Problems compiling against OpenSSL-0.9.8k

Christoph Baumann
Mon, 19 Oct 2009 14:40:04 -0000

Hello,

after upgrading the OpenSSL version from 0.9.7j to 0.9.8k which I used
to compile OpenSSH-5.2, I get conflicting type definitions for authfile.c:
../openssl/include/openssl/sha.h:138: error: conflicting types for
'SHA256_CTX'
openbsd-compat/sha2.h:66: error: previous declaration of 'SHA256_CTX'
was here
../openssl/include/openssl/sha.h:145: error: conflicting types for
'SHA256_Init'
openbsd-compat/sha2.h:77: error: previous declaration of 'SHA256_Init'
was here
../openssl/include/openssl/sha.h:145: error: conflicting types for
'SHA256_Init'
openbsd-compat/sha2.h:77: error: previous declaration of 'SHA256_Init'
was here
../openssl/include/openssl/sha.h:146: error: conflicting types for
'SHA256_Update'
openbsd-compat/sha2.h:80: error: previous declaration of 'SHA256_Update'
was here
../openssl/include/openssl/sha.h:146: error: conflicting types for
'SHA256_Update'
openbsd-compat/sha2.h:80: error: previous declaration of 'SHA256_Update'
was here
../openssl/include/openssl/sha.h:147: error: conflicting types for
'SHA256_Final'
openbsd-compat/sha2.h:83: error: previous declaration of 'SHA256_Final'
was here
../openssl/include/openssl/sha.h:147: error: conflicting types for
'SHA256_Final'
openbsd-compat/sha2.h:83: error: previous declaration of 'SHA256_Final'
was here
../openssl/include/openssl/sha.h:149: error: conflicting types for
'SHA256_Transform'
openbsd-compat/sha2.h:78: error: previous declaration of
'SHA256_Transform' was here
../openssl/include/openssl/sha.h:149: error: conflicting types for
'SHA256_Transform'
openbsd-compat/sha2.h:78: error: previous declaration of
'SHA256_Transform' was here
../openssl/include/openssl/sha.h:184: error: conflicting types for
'SHA512_CTX'
openbsd-compat/sha2.h:71: error: previous declaration of 'SHA512_CTX'
was here
../openssl/include/openssl/sha.h:192: error: conflicting types for
'SHA512_Init'
openbsd-compat/sha2.h:113: error: previous declaration of 'SHA512_Init'
was here
../openssl/include/openssl/sha.h:192: error: conflicting types for
'SHA512_Init'
openbsd-compat/sha2.h:113: error: previous declaration of 'SHA512_Init'
was here
../openssl/include/openssl/sha.h:193: error: conflicting types for
'SHA512_Update'
openbsd-compat/sha2.h:116: error: previous declaration of
'SHA512_Update' was here
../openssl/include/openssl/sha.h:193: error: conflicting types for
'SHA512_Update'
openbsd-compat/sha2.h:116: error: previous declaration of
'SHA512_Update' was here
../openssl/include/openssl/sha.h:194: error: conflicting types for
'SHA512_Final'
openbsd-compat/sha2.h:119: error: previous declaration of 'SHA512_Final'
was here
../openssl/include/openssl/sha.h:194: error: conflicting types for
'SHA512_Final'
openbsd-compat/sha2.h:119: error: previous declaration of 'SHA512_Final'
was here
../openssl/include/openssl/sha.h:196: error: conflicting types for
'SHA512_Transform'
openbsd-compat/sha2.h:114: error: previous declaration of
'SHA512_Transform' was here
../openssl/include/openssl/sha.h:196: error: conflicting types for
'SHA512_Transform'
openbsd-compat/sha2.h:114: error: previous declaration of
'SHA512_Transform' was here


Setting -DOPENSSL_NO_SHA512 -DOPENSSL_NO_SHA256 reduces the number of
errors to one complaining about SHA256_CTX.


Regards,
	Christoph Baumann

--

Dipl.-Phys. Christoph Baumann
Power PLUS Communications AG
Am Exerzierplatz 2
68167 Mannheim
Germany

phone: +49(621)40165-???
fax:   +49(621)40165-???
mailto://c.baumann at ppc-ag.de
http://www.ppc-ag.de

Handelsregister-Nr.: HRB 8853
Sitz und Registergericht: Mannheim
Vorstand: Ingo Sch?nberg (Vorsitzender), Eugen Mayer
Vorsitzender des Aufsichtsrates Univ.-Prof. Dr. Torsten Gerpott


THE INFORMATION CONTAINED IN THIS ELECTRONIC MAIL TRANSMISSION IS
CONFIDENTIAL AND MAY ALSO CONTAIN PRIVILEGED INFORMATION OR WORK
PRODUCT. THE INFORMATION IS INTENDED ONLY FOR THE USE OF THE
INDIVIDUAL OR ENTITY TO WHOM IT IS ADDRESSED. IF YOU ARE NOT THE
INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY USE,
DISSEMINATION, DISTRIBUTION OR COPYING OF THIS COMMUNICATION IS
STRICTLY PROHIBITED. IF YOU HAVE RECEIVED THIS ELECTRONIC MAIL
TRANSMISSION IN ERROR, PLEASE IMMEDIATELY ERASE AND DELETE THE
ORIGINAL MESSAGE FROM YOUR DATABASE