[sudo-users] Compiling sudo-1.9.5p2 on AIX fails
Todd C. Miller
Todd.Miller at sudo.ws
Thu Jan 28 07:19:18 MST 2021
On Thu, 28 Jan 2021 14:07:22 +0000, Ralph Meier wrote:
> Compiling sudo-1.9.5p2 on AIX fails with this output. Can someone help ?
>
> cc -qlanglvl=extc89 -qlanglvl=extc99 -c -I../include -I.. -I. -I. -D
> _PATH_SUDO_LOGSRVD_CONF=\"/etc/sudo_logsrvd.conf\" -DLOCALEDIR=\"/usr/local/
> share/locale\" -I../lib/zlib -I../lib/zlib -I/opt/IBM/ldap/V6.2/include -DZLI
> B_CONST -D_FORTIFY_SOURCE=2 -g ./sendlog.c
> "./sendlog.c", line 135.1: 1506-191 (E) The character # is not a valid C sour
> ce character.
> "./sendlog.c", line 135.2: 1506-276 (S) Syntax error: possible missing ')'?
> "./sendlog.c", line 135.13: 1506-045 (S) Undeclared identifier HAVE_OPENSSL.
> "./sendlog.c", line 140.1: 1506-191 (E) The character # is not a valid C sour
> ce character.
> make: 1254-004 The error code from the last command is 1.
It seems that AIX cc doesn't like preprocessor directives in between
the strings. I suppose it is not performing a separate preprocessor
pass (in which case the compiler would never see this). If you
have gcc available it will compile without an error.
- todd
More information about the sudo-users
mailing list