krb-protos.h Синтаксическая ошибка: возможный отсутствующий идентификатор? - PullRequest
0 голосов
/ 13 июня 2019

Я использую krb-protos.h из пакета krb4 для моей компиляции кода openssh в AIX 7.1, но с ошибкой ниже,

"/usr/athena/include/krb-protos.h", line 71.9: 1506-046 (S) Syntax error.
"/usr/athena/include/krb-protos.h", line 75.15: 1506-275 (S) Unexpected text c encountered.
"/usr/athena/include/krb-protos.h", line 76.9: 1506-276 (S) Syntax error: possible missing identifier?
"/usr/athena/include/krb-protos.h", line 82.9: 1506-335 (S) Parameter identifier list contains multiple occurrences of KTEXT.
"/usr/athena/include/krb-protos.h", line 74.1: 1506-282 (S) The type of the parameters must be specified in a prototype.
"/usr/athena/include/krb-protos.h", line 88.15: 1506-275 (S) Unexpected text pkt encountered.
"/usr/athena/include/krb-protos.h", line 89.9: 1506-276 (S) Syntax error: possible missing identifier?
"/usr/athena/include/krb-protos.h", line 87.1: 1506-282 (S) The type of the parameters must be specified in a prototype.
"/usr/athena/include/krb-protos.h", line 98.15: 1506-275 (S) Unexpected text tkt encountered.
"/usr/athena/include/krb-protos.h", line 99.9: 1506-276 (S) Syntax error: possible missing identifier?

снимок файла krb-protos.h:

. . . 

 68 
 69 void KRB_LIB_FUNCTION
 70 afs_string_to_key __P((
 71         const char *str,
 72         const char *cell,
 73         des_cblock *key));
 74 
 75 int KRB_LIB_FUNCTION
 76 create_ciph __P((
 77         KTEXT c,
 78         unsigned char *session,
 79         char *service,
 80         char *instance,
 81         char *realm,
 82         u_int32_t life,
 83         int kvno,
 84         KTEXT tkt,
 85         u_int32_t kdc_time,
 86         des_cblock *key));
 87 
 88 int KRB_LIB_FUNCTION
 89 cr_err_reply __P((
 90         KTEXT pkt,
 91         char *pname,
 92         char *pinst,
 93         char *prealm,
 94         u_int32_t time_ws,
 95         u_int32_t e,
 96         char *e_string));
 97 

. . . 

Я использую компилятор xlc в AIX. Есть идеи, в чем может быть проблема?

Компилятор xlc с опциями:

xlc -DAFS -DKRB4 -L/usr/athena/lib -I/usr/athena/include -DSTATIC_AFS_SYSCALLS=1 -DOPENSSL_DES_LIBDES_COMPATIBILITY=1   -bloadmap -I. -I.  -I/usr/include -I/usr/include/gssapi -I/usr/include/gssapi -DSSHDIR=\"/etc/ssh\"  -D_PATH_SSH_PROGRAM=\"/opt/freeware/bin/ssh\"  -D_PATH_SSH_ASKPASS_DEFAULT=\"/opt/freeware/libexec/openssh/ssh-askpass\"  -D_PATH_SFTP_SERVER=\"/opt/freeware/libexec/openssh/sftp-server\"  -D_PATH_SSH_KEY_SIGN=\"/opt/freeware/libexec/openssh/ssh-keysign\"  -D_PATH_SSH_PKCS11_HELPER=\"/opt/freeware/libexec/openssh/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\"  -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c ssh_api.c -o ssh_api.o
...