[873] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

build errors with b4p3 under AIX 4.1

daemon@ATHENA.MIT.EDU (Paul Pomes)
Tue Oct 18 17:37:11 1994

Date: Tue, 18 Oct 1994 16:37:01 -0500
From: Paul Pomes <P-Pomes@uiuc.edu>
To: krb5-bugs@MIT.EDU

"kerberos_v4.c", line 398.17: 1506-343 (S) Redeclaration of sleep differs from previous declaration on line 154 of "/usr/include/unistd.h".
"kerberos_v4.c", line 398.17: 1506-050 (I) Return type "void" in redeclaration is not compatible with the previous return type "unsigned int".

Fix by deleting sleep() declaration.

"krlogin.c", line 756.23: 1506-045 (S) Undeclared identifier exit.

Fixed by adding -DHAS_STDLIB_H to Makefile.  Long term fix is to add
test to configure and to call it HAVE_STDLIB_H to match others.

login.c has the #include <stdlib.h> wrapped with #ifdef POSIX that should
also be changed to #ifdef HAVE_STDLIB_H


"logutil.c", line 134.12: 1506-343 (S) Redeclaration of time differs from previo
us declaration on line 101 of "logutil.c".
"logutil.c", line 134.12: 1506-050 (I) Return type "long" in redeclaration is no
t compatible with the previous return type "int".

Fixed by deleting the "time_t time();" declaration on line 134.


In appl/telnet/telnetd

"sys_term.c", line 112.10: 1506-296 (S) #include file <sys/tty.h> not found.
"sys_term.c", line 2093.40: 1506-343 (S) Redeclaration of time differs from prev
ious declaration on line 1355 of "sys_term.c".
"sys_term.c", line 2093.40: 1506-050 (I) Return type "int" in redeclaration is n
ot compatible with the previous return type "long".

Why AIX dropped sys/tty.h is under investigation.  For now a
"touch /usr/include/sys/tty.h" is the hack, but not a fix.  If it's
gone for good, a better fix will be a configure test.

The time problem was fixed by deleting the "long time();" declaration at
line 1355.


home help back first fref pref prev next nref lref last post