Bug 1335 - cipher.c does not compile.
Summary: cipher.c does not compile.
Status: CLOSED INVALID
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: 4.6p1
Hardware: Alpha Tru64
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-08 05:40 AEST by Judah Levine
Modified: 2009-10-06 15:02 AEDT (History)
1 user (show)

See Also:


Attachments
Output of make showing compiler errors for file cipher.c (9.18 KB, text/plain)
2007-07-09 23:42 AEST, Judah Levine
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Judah Levine 2007-07-08 05:40:47 AEST
Version 4.6p1 does not compile on Tru64 Unix version 4.0F. The problem is in cipher.c. Most of the statements with c->envtype have various compiler errors, especially when c->envtype is tested for equality against other quantitites. 
There are also minor warnings with type mismatches. Most of these are differences between a definition of "const ..." and "..." This is a much less serious issue, since it is usually just a warning.

Judah Levine
University of Colorado/Boulder
Comment 1 Darren Tucker 2007-07-08 10:18:04 AEST
Are you using the native compiler or gcc?  Could you please attach a log of the errors (via "Add an attachment")?   AFAIK none of the regular developers have access to a Tru64 machine.

Is there any particular reason this bug needs to be private?  If not, please uncheck the "Portable OpenSSH Bugs Access" flag.  That way some other folks may be able to help out.
Comment 2 Judah Levine 2007-07-09 23:42:08 AEST
Created attachment 1321 [details]
Output of make showing compiler errors for file cipher.c

I am using the standard cc compiler on Tru64 Unix. I have looked at the lines that have errors, but I don't understand the problem.
I have been using an earlier version of openssh (3.7.1p1), which I compiled on the same system with no problems.
Comment 3 Darren Tucker 2007-07-10 00:32:35 AEST
(In reply to comment #2)
> Created an attachment (id=1321) [details]
> Output of make showing compiler errors for file cipher.c

It looks like your compiler doesn't like mixing const and non-const pointers.

You can try editing cipher.c, finding Cipher struct and removing the "const" before the EVP_CIPHER member.  ie:

        const EVP_CIPHER        *(*evptype)(void);

becomes

        EVP_CIPHER        *(*evptype)(void);

I'm not sure why you would only be seeing it now, though as that's been there a long time (unless it's a difference in the version of OpenSSL being used?)

Also you didn't say why this bug needs to be private so unless there's a good reason I am going to unset the flag.
Comment 4 Darren Tucker 2009-08-18 10:38:20 AEST
Unfortunately there's not enough information supplies to figure this out.  Please reopen if you can provide the information requested.
Comment 5 Damien Miller 2009-10-06 15:02:42 AEDT
Mass move of RESOLVED bugs to CLOSED now that 5.3 is out.