[3039] in Kerberos-V5-bugs
krb5-build/689: Kerberos v5, 1.0.5 build errors on AIX 4.3.1
daemon@ATHENA.MIT.EDU (Peter Blake)
Thu Feb 4 20:17:18 1999
Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: tlyu@MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, prblake@uumail.gov.bc.ca
Date: Thu, 4 Feb 1999 17:15:56 -0800
From: Peter Blake <prblake@hnet08.moh.hnet.bc.ca>
Reply-To: prblake@uumail.gov.bc.ca
To: krb5-bugs@MIT.EDU
Cc: pnp-team@uumail.gov.bc.ca
>Number: 689
>Category: krb5-build
>Synopsis: krb5 1.0.5 on AIX 4.3.1 - compile errors
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: tlyu
>State: open
>Class: support
>Submitter-Id: unknown
>Arrival-Date: Thu Feb 04 20:17:01 EST 1999
>Last-Modified:
>Originator: Peter Blake
>Organization:
Information Technology Services Division
Information, Science and Technology Agency
Province of British Columbia
>Release: krb5-1.0.5
>Environment:
System: AIX hnet08 3 4 006130594C00
gcc 2.8.1
>Description:
Here are all the steps and modifications that I had to do in order to
get krb5 1.0.5 to compile on AIX 4.3.1 with gcc 2.8.1.
1. When I ran configure on my system, it detected /usr/include/utmpx.h
and setutxent subr; however, the compilation stopped in util/pty/update_utmp.c
with the messages:
./update_utmp.c: In function `pty_update_utmp':
./update_utmp.c:146: structure has no member named `ut_exit'
Couldn't find any doc in InfoExplorer mentioning utmpx.h or setutxent; however,
did find docs that explicitly stated that the format of utmp, wtmp and failedlogin
were defined in utmp.h.
Resolution to this error was to:
a. update krb5/src/config.cache and set:
ac_cv_func_setutxent=${ac_cv_func_setutxent='no'}
ac_cv_header_utmpx_h=${ac_cv_header_utmpx_h='no'}
b. make clean; ./configure --with-cc=gcc again; make
2. Two sources: appl/user_user/client.c, appl/gssftp/ftpd/ftpd.c have the
declaration of "extern int h_errno". /usr/include/netdb.h had the
following definition for h_errno:
#define h_errno (*(int *)h_errno_which())
gcc would choke with a parse error. Commenting out this line allowed
the compile to continue without introducing any apparent problems.
3. The link/build of appl/bsd/login.krb5 failed due to unable to resolve
"rmufile" reference (from login.c). Couldn't find any reference to
to this subr, so commented it out and was able to continue the compile.
4. appl/telnet/telnetd/termios-tn.c, missing definitions for TCSETS, TCSETSW and TCSETSF.
Added #include <sys/str_tty.h> prior to existing #include <termios.h> statement.
>How-To-Repeat:
Use a virgin copy of the krb5-1.0.5 sources on an AIX 4.3.1 system with
gcc 2.8.1.
>Fix:
See above
>Audit-Trail:
>Unformatted: