| Summary: | Documentation says C89 compiler required but C99 compiler is actually required | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Gregory Katz <gregkatz> | ||||
| Component: | Documentation | Assignee: | Assigned to nobody <unassigned-bugs> | ||||
| Status: | NEW --- | ||||||
| Severity: | minor | CC: | dtucker | ||||
| Priority: | P5 | ||||||
| Version: | 8.8p1 | ||||||
| Hardware: | ix86 | ||||||
| OS: | Linux | ||||||
| Attachments: |
|
||||||
|
Description
Gregory Katz
2021-12-30 06:53:41 AEDT
Created attachment 3560 [details]
Provide c89-compatible logging functions
AFAIK the only thing we have that's not c89 are the variadic logging macros, and as indicated by the comment in configure.ac, we had a vague plan to provide functions that don't need those.
I took a stab at it (it'll lose the ability to show file, line and function but otherwise should work).
Thanks Darren, and apologies for the delayed response. This patch got me most of the way to compiling. I also had to move some variable initializations up in openbsd-compat/sha2.c, but I'm not sure if that's strictly a C89 limitation, and modify utf8.c (because it was complaining that CODESET was undefined). I wasn't able to test the changes to configure.ac--my system was too old to generate a new configure script, so I just manually disabled the test in the provided configure script. At any rate, the ssh client works well which is a small miracle, but the server segfaults. Not bad, in my opinion. |