[629] in Kerberos-V5-bugs

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

build errors under AIX 3.2.5 on a RS6000/250

daemon@ATHENA.MIT.EDU (Paul Pomes)
Fri Aug 12 20:00:22 1994

Date: Fri, 12 Aug 1994 19:00:12 -0500
From: Paul Pomes <P-Pomes@uiuc.edu>
To: krb5-bugs@MIT.EDU
Cc: p-pomes@uiuc.edu

In /src/lib/krb5/asn.1:
"krb5_encode.c", line 342.8: 1506-025 (S) Operand must be a modifiable lvalue.
"krb5_encode.c", line 363.8: 1506-025 (S) Operand must be a modifiable lvalue.
"krb5_encode.c", line 464.8: 1506-025 (S) Operand must be a modifiable lvalue.
"krb5_encode.c", line 484.8: 1506-025 (S) Operand must be a modifiable lvalue.

Fix by removing the const keyword in function arguments.


In kadmin/v4server:
"kadm_server.c", line 99.51: 1506-122 (S) Expecting pointer to struct or union.
"kadm_server.c", line 100.25: 1506-122 (S) Expecting pointer to struct or union.
"kadm_server.c", line 100.41: 1506-122 (S) Expecting pointer to struct or union.
"kadm_server.c", line 101.13: 1506-122 (S) Expecting pointer to struct or union.
"kadm_server.c", line 101.26: 1506-122 (S) Expecting pointer to struct or union.
"kadm_server.c", line 101.38: 1506-122 (S) Expecting pointer to struct or union.

Fixed by forcing use of <time.h>


In appl/bsd:
0706-317 ERROR: Unresolved or undefined symbols detected:
                 Symbols in error (followed by references) are
                 dumped to the load map.
                 The -bloadmap:<filename> option will create a load map.
.vfork

Fixed by adding -Dvfork=fork to Makefile


In appl/bsd:
"krshd.c", line 1057.27: 1506-045 (S) Undeclared identifier fd_set.

Fixed by adding #include <sys/select.h> wrapped with #ifdef _AIX .


In appl/bsd:
"logutil.c", line 135.0: 1506-041 (S) Parameter list cannot contain fewer parameters than required by macro definition.

Fixed by removing line "char *strncpy();"


In appl/bsd:
"krlogind.c", line 807.16: 1506-045 (S) Undeclared identifier FIONBIO.
etc.

Fixed by adding #include <sys/ioctl.h>


In appl/bsd:
Sundry link errors with login

Fixed by adding "-lodm -ls -lcfg" to LIBS in Makefile.


In appl/telnet/telnet:
Processing include file ./externs.h
    1501-106: (S) Include file sys/termios.h not found.

Fixed by adding -DSYSV_TERMIO=1 to Makefile.


In appl/telnet/telnet:
"commands.c", line 2223.0: 1506-041 (S) Parameter list cannot contain fewer parameters than required by macro definition.

Fixed by changing "char *srp = 0, *strrchr();" to just "char *srp = 0;".


In appl/telnet/telnet:
main.c", line 120.0: 1506-041 (S) Parameter list cannot contain fewer parameters than required by macro definition.

Fixed by changing "char *user, *strrchr();" to just "char *user;".


In appl/telnet/telnet:
"network.c", line 81.5: 1506-045 (S) Undeclared identifier fd_set.

Fixed by adding #include <sys/select.h> wrapped with #ifdef _AIX .


In appl/telnet/telnet:
"sys_bsd.c", line 117.15: 1506-046 (S) Syntax error.
"sys_bsd.c", line 1158.10: 1506-045 (S) Undeclared identifier termdata.

Fixed by adding #include <sys/select.h> wrapped with #ifdef _AIX .
Fixed by adding "extern int termdata;".


In appl/telnet/telnet:
0706-317 ERROR: Unresolved or undefined symbols detected:
                 Symbols in error (followed by references) are
                 dumped to the load map.
                 The -bloadmap:<filename> option will create a load map.
.vfork

Fixed by adding -Dvfork=fork to Makefile


In appl/telnet/telnetd:
"utility.c", line 383.0: 1506-041 (S) Parameter list cannot contain fewer parameters than required by macro definition.

Fixed by deleting "char *strncpy();" .


In appl/telnet/telnetd:
0706-317 ERROR: Unresolved or undefined symbols detected:
                 Symbols in error (followed by references) are
                 dumped to the load map.
                 The -bloadmap:<filename> option will create a load map.
.vhangup

Fixed by 
*** /nfs/src/security/krb5-b4.2/src/appl/telnet/telnetd/sys_term.c	Mon Aug  8 00:09:31 1994
--- sys_term.c	Fri Aug 12 18:55:24 1994
***************
*** 1233,1239 ****
  	 * Hangup anybody else using this ttyp, then reopen it for
  	 * ourselves.
  	 */
! # if !(defined(CRAY) || defined(__hpux)) && (BSD <= 43) && !defined(STREAMSPTY)
  	(void) signal(SIGHUP, SIG_IGN);
  	vhangup();
  	(void) signal(SIGHUP, SIG_DFL);
--- 1233,1239 ----
  	 * Hangup anybody else using this ttyp, then reopen it for
  	 * ourselves.
  	 */
! # if !(defined(CRAY) || defined(__hpux) || defined(_AIX)) && (BSD <= 43) && !defined(STREAMSPTY)
  	(void) signal(SIGHUP, SIG_IGN);
  	vhangup();
  	(void) signal(SIGHUP, SIG_DFL);
***************
*** 1783,1789 ****
--- 1783,1791 ----
  	void rmut();
  
  	rmut();
+ #if !defined(_AIX)
  	vhangup();	/* XXX */
+ #endif /* !_AIX */
  	(void) shutdown(net, 2);
  	exit(1);
  # endif


In appl/popper:
"pop_xmit.c", line 38.13: 1506-007 (S) Struct or union wait is undefined.
"pop_xmit.c", line 93.31: 1506-045 (S) Undeclared identifier stat.

AIX uses int as arguments to wait().  Longer fix than I have time for tonight.
Thanks for the great work here!!

/pbp

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