Subject: | krb 1.18 build failure on AIX 6.1 |
From: | "Norm Green" <norm.green@gemtalksystems.com> |
Date: | Mon, 23 Mar 2020 11:02:59 -0700 |
To: | krb5-bugs@mit.edu |
AIX 6.1 does not have O_NOFOLLOW so this code fails to compile.
configure should probably check for O_NOFOLLOW support.
src/lib/krb5/rcache/rc_dfl.c
+102
+103 fd = open(fname, O_CREAT | O_RDWR | O_NOFOLLOW, 0600);
+104 if (fd < 0) {
+105 ret = errno;
+106 k5_setmsg(context, ret, "%s (filename: %s)",
+107 error_message(ret), fname);
+108 goto cleanup;
+109 }
"rc_dfl.c", line 103.41: 1506-045 (S) Undeclared identifier O_NOFOLLOW.
gmake[3]: *** [rc_dfl.o] Error 1
gmake[3]: Leaving directory
`/air1/users/buildgss/35/build_05efce997/slow9/kerberos/src/lib/krb5/rcache'
gmake[2]: *** [all-recurse] Error 1
gmake[2]: Leaving directory
`/air1/users/buildgss/35/build_05efce997/slow9/kerberos/src/lib/krb5'
gmake[1]: *** [all-recurse] Error 1
gmake[1]: Leaving directory
`/air1/users/buildgss/35/build_05efce997/slow9/kerberos/src/lib'
gmake: *** [all-recurse] Error 1
Build failed
Norm Green
GemTalk Systems LLC
configure should probably check for O_NOFOLLOW support.
src/lib/krb5/rcache/rc_dfl.c
+102
+103 fd = open(fname, O_CREAT | O_RDWR | O_NOFOLLOW, 0600);
+104 if (fd < 0) {
+105 ret = errno;
+106 k5_setmsg(context, ret, "%s (filename: %s)",
+107 error_message(ret), fname);
+108 goto cleanup;
+109 }
"rc_dfl.c", line 103.41: 1506-045 (S) Undeclared identifier O_NOFOLLOW.
gmake[3]: *** [rc_dfl.o] Error 1
gmake[3]: Leaving directory
`/air1/users/buildgss/35/build_05efce997/slow9/kerberos/src/lib/krb5/rcache'
gmake[2]: *** [all-recurse] Error 1
gmake[2]: Leaving directory
`/air1/users/buildgss/35/build_05efce997/slow9/kerberos/src/lib/krb5'
gmake[1]: *** [all-recurse] Error 1
gmake[1]: Leaving directory
`/air1/users/buildgss/35/build_05efce997/slow9/kerberos/src/lib'
gmake: *** [all-recurse] Error 1
Build failed
Norm Green
GemTalk Systems LLC