Problems compiling against OpenSSL-0.9.8k

Darren Tucker
Mon, 19 Oct 2009 19:20:55 -0000

Christoph Baumann wrote:
> 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'

You've got a "config.h" with the old settings somewhere in your
compiler's search path.

You probably just need to do a "make distclean" (or delete the openssh
directory and unpack the tarball again) and then rerun configure.

--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
     Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.