Skip Menu |
 

Download (untitled) / with headers
text/plain 9.6KiB
From raeburn@MIT.EDU Wed Feb 28 15:25:38 2001
Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.7.21.83])
by rt-11.mit.edu (8.9.3/8.9.3) with ESMTP id PAA12537
for <bugs@RT-11.mit.edu>; Wed, 28 Feb 2001 15:25:37 -0500 (EST)
Received: from dcl.mit.edu (DCL.MIT.EDU [18.18.1.70])
by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id PAA23903;
Wed, 28 Feb 2001 15:25:38 -0500 (EST)
Received: (from raeburn@localhost) by dcl.mit.edu (8.9.3)
id PAA27145; Wed, 28 Feb 2001 15:25:38 -0500 (EST)
Message-Id: <tx1pug2blmm.fsf@mit.edu>
Date: 28 Feb 2001 15:25:37 -0500
From: Brian Kantor <brian@UCSD.Edu>
To: krb5-bugs@MIT.EDU
Subject: [Brian Kantor <brian@UCSD.Edu>] krb5 on BSD/OS 4.1

Show quoted text
>Number: 924
>Category: krb5-build
>Synopsis: krb5 on BSD/OS 4.1
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: raeburn
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Wed Feb 28 15:26:00 EST 2001
>Last-Modified: Sat Jun 23 01:35:17 EDT 2001
>Originator: Brian Kantor <brian@UCSD.Edu>
>Organization:
>Release: krb5-1.2.1
>Environment:
BSD/OS 4.1
Show quoted text
>Description:
Show quoted text
------- Start of forwarded message -------
Date: Mon, 26 Feb 2001 15:56:21 -0800 (PST)
From: Brian Kantor <brian@UCSD.Edu>
Message-Id: <200102262356.f1QNuLu04506@karoshi.ucsd.edu>
To: kerberos-bugs@mit.edu
Subject: krb5 on BSD/OS 4.1
Cc: tyu@mit.edu

The krb5-1.2.1 distribution does not configure properly on BSDi's BSD/OS 4.1,
and therefore does not compile. I do not know the autoconf package well
enough to make these changes as patches for you.

The issues are these:

1. BSD/OS has moved inet_ntoa() to _inet_ntoa and inet_ntop to _inet_ntop
in the 'C' library, so it is necessary to define that in each source file
that references the routine. This can be done by including the
'/usr/include/arpa/inet.h' header file in those source modules, but
'configure' does not test for that as shipped. HAVE_INET_NTOP and
HAVE_INET_NTOA should be tested and set.

2. The proper configuration locations for various files need to be
specified with

./configure --sysconfdir=/etc \
--localstatedir=/var/ \
--with-netlib=/usr/lib/libresolv.a

but should probably default to this when the OS is found to be BSD/OS.

Below are the diffs I made to get it to compile and apparently work.
They are not large.
--
Brian Kantor brian@ucsd.edu
Senior Network and Systems Administrator
Academic Computing Network Operations 0124
University of California at San Diego (858) 534-6865
La Jolla, CA 92093-0124 USA fax: 858 534 5575
-------
diff -c -r src/appl/bsd/kcmd.c ucsdsrc/appl/bsd/kcmd.c
*** src/appl/bsd/kcmd.c Thu Jun 29 19:27:05 2000
--- ucsdsrc/appl/bsd/kcmd.c Mon Feb 26 15:03:05 2001
***************
*** 63,68 ****
--- 63,69 ----
#define _TYPES_
#endif
#include <fcntl.h>
+ #include <arpa/inet.h>

#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
diff -c -r src/appl/bsd/krlogind.c ucsdsrc/appl/bsd/krlogind.c
*** src/appl/bsd/krlogind.c Thu Jun 29 19:27:05 2000
--- ucsdsrc/appl/bsd/krlogind.c Mon Feb 26 15:03:48 2001
***************
*** 144,149 ****
--- 144,150 ----
#include <netinet/in.h>
#include <errno.h>
#include <pwd.h>
+ #include <arpa/inet.h> /* inet_ntoa */

#ifdef HAVE_SYS_LABEL_H
/* only SunOS 4? */
***************
*** 579,585 ****
int child;
int netf;
char line[MAXPATHLEN];
- extern char *inet_ntoa();

#ifdef TIOCSWINSZ
struct winsize win = { 0, 0, 0, 0 };
--- 580,585 ----
diff -c -r src/appl/gssftp/ftp/ftp.c ucsdsrc/appl/gssftp/ftp/ftp.c
*** src/appl/gssftp/ftp/ftp.c Thu Jun 29 19:27:07 2000
--- ucsdsrc/appl/gssftp/ftp/ftp.c Mon Feb 26 15:04:31 2001
***************
*** 82,87 ****
--- 82,88 ----
#include <netinet/ip.h>
#include <arpa/ftp.h>
#include <arpa/telnet.h>
+ #include <arpa/inet.h>

#include <stdio.h>
#include <signal.h>
diff -c -r src/appl/simple/client/sim_client.c ucsdsrc/appl/simple/client/sim_client.c
*** src/appl/simple/client/sim_client.c Thu Jun 29 19:27:10 2000
--- ucsdsrc/appl/simple/client/sim_client.c Mon Feb 26 15:04:56 2001
***************
*** 35,40 ****
--- 35,41 ----
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+ #include <arpa/inet.h>

#include <krb5.h>
#include "com_err.h"
diff -c -r src/appl/simple/server/sim_server.c ucsdsrc/appl/simple/server/sim_server.c
*** src/appl/simple/server/sim_server.c Thu Jun 29 19:27:11 2000
--- ucsdsrc/appl/simple/server/sim_server.c Mon Feb 26 15:05:20 2001
***************
*** 39,44 ****
--- 39,45 ----
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
+ #include <arpa/inet.h>
#include <netdb.h>

#include "com_err.h"
diff -c -r src/appl/telnet/telnetd/telnetd-ktd.c ucsdsrc/appl/telnet/telnetd/telnetd-ktd.c
*** src/appl/telnet/telnetd/telnetd-ktd.c Thu Jun 29 19:27:13 2000
--- ucsdsrc/appl/telnet/telnetd/telnetd-ktd.c Mon Feb 26 15:06:17 2001
***************
*** 39,44 ****
--- 39,45 ----

/* based on @(#)telnetd.c 5.51 (Berkeley) 1/21/93 */

+ #include <arpa/inet.h>
#include "telnetd.h"
#include "pathnames.h"

diff -c -r src/appl/telnet/telnetd/telnetd.c ucsdsrc/appl/telnet/telnetd/telnetd.c
*** src/appl/telnet/telnetd/telnetd.c Thu Jun 29 19:27:13 2000
--- ucsdsrc/appl/telnet/telnetd/telnetd.c Mon Feb 26 15:06:32 2001
***************
*** 39,44 ****
--- 39,45 ----

/* based on @(#)telnetd.c 8.1 (Berkeley) 6/4/93 */

+ #include <arpa/inet.h>
#include "telnetd.h"
#include "pathnames.h"

diff -c -r src/kadmin/ktutil/ktutil.c ucsdsrc/kadmin/ktutil/ktutil.c
*** src/kadmin/ktutil/ktutil.c Thu Jun 29 19:27:37 2000
--- ucsdsrc/kadmin/ktutil/ktutil.c Tue Feb 13 13:31:05 2001
***************
*** 36,41 ****
--- 36,43 ----
#include <stdlib.h>
#endif

+ #include "port-sockets.h"
extern ss_request_table ktutil_cmds;
krb5_context kcontext;
krb5_kt_list ktlist = NULL;
diff -c -r src/kadmin/server/kadm_rpc_svc.c ucsdsrc/kadmin/server/kadm_rpc_svc.c
*** src/kadmin/server/kadm_rpc_svc.c Thu Jun 29 19:27:39 2000
--- ucsdsrc/kadmin/server/kadm_rpc_svc.c Tue Feb 13 14:02:19 2001
***************
*** 16,21 ****
--- 16,22 ----
#include <kadm5/kadm_rpc.h>
#include <krb5.h>
#include <kadm5/admin.h>
+ #include <arpa/inet.h>

/*
* Function: kadm_1
diff -c -r src/kadmin/server/server_stubs.c ucsdsrc/kadmin/server/server_stubs.c
*** src/kadmin/server/server_stubs.c Thu Jun 29 19:27:39 2000
--- ucsdsrc/kadmin/server/server_stubs.c Tue Feb 13 14:01:06 2001
***************
*** 8,13 ****
--- 8,14 ----
static char *rcsid = "$Header: /cvs/krbdev/krb5/src/kadmin/server/server_stubs.c,v 1.40.2.1 2000/06/21 23:47:38 tlyu Exp $";
#endif

+ #include <netinet/in.h>
#include <gssapi/gssapi.h>
#include <gssapi/gssapi_krb5.h> /* for gss_nt_krb5_name */
#include <krb5.h>
***************
*** 16,22 ****
--- 17,26 ----
#include <kadm5/server_internal.h>
#include <kadm5/server_acl.h>
#include <syslog.h>
+ #include <arpa/inet.h>
#include "misc.h"

#define xdr_free gssrpc_xdr_free /* XXX kludge */

diff -c -r src/kdc/sock2p.c ucsdsrc/kdc/sock2p.c
*** src/kdc/sock2p.c Thu Jun 29 19:27:49 2000
--- ucsdsrc/kdc/sock2p.c Mon Feb 26 15:07:21 2001
***************
*** 31,36 ****
--- 31,37 ----
#ifdef HAVE_NETINET_IN_H
#include <sys/types.h>
#include <netinet/in.h>
+ #include <arpa/inet.h>
#include <sys/socket.h>

#ifndef HAVE_INET_NTOP
diff -c -r src/lib/krb4/ad_print.c ucsdsrc/lib/krb4/ad_print.c
*** src/lib/krb4/ad_print.c Thu Jun 29 19:28:02 2000
--- ucsdsrc/lib/krb4/ad_print.c Mon Feb 26 15:07:51 2001
***************
*** 14,19 ****
--- 14,20 ----
#include "krb.h"
#include "des.h"
#include <stdio.h>
+ #include <arpa/inet.h>

#ifndef _WINDOWS

diff -c -r src/lib/krb4/macsock.c ucsdsrc/lib/krb4/macsock.c
*** src/lib/krb4/macsock.c Thu Jun 29 19:28:03 2000
--- ucsdsrc/lib/krb4/macsock.c Mon Feb 26 15:07:59 2001
***************
*** 17,22 ****
--- 17,23 ----
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+ #include <arpa/inet.h>

/* Mac includes */
#include <Memory.h>
diff -c -r src/lib/krb4/send_to_kdc.c ucsdsrc/lib/krb4/send_to_kdc.c
*** src/lib/krb4/send_to_kdc.c Thu Jun 29 19:28:03 2000
--- ucsdsrc/lib/krb4/send_to_kdc.c Mon Feb 26 15:08:03 2001
***************
*** 15,20 ****
--- 15,21 ----
#include "prot.h"
#include <stdio.h>
#include <string.h>
+ #include <arpa/inet.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
diff -c -r src/lib/rpc/getrpcent.c ucsdsrc/lib/rpc/getrpcent.c
*** src/lib/rpc/getrpcent.c Thu Jun 29 19:28:14 2000
--- ucsdsrc/lib/rpc/getrpcent.c Mon Feb 26 15:02:37 2001
***************
*** 42,47 ****
--- 42,48 ----
#include <gssrpc/rpc.h>
#include <string.h>
#include <sys/socket.h>
+ #include <arpa/inet.h>

/*
* Make sure we have a definition for PROTOTYPE.
diff -c -r src/tests/misc/test_getsockname.c ucsdsrc/tests/misc/test_getsockname.c
*** src/tests/misc/test_getsockname.c Thu Jun 29 19:28:31 2000
--- ucsdsrc/tests/misc/test_getsockname.c Mon Feb 26 15:07:36 2001
***************
*** 14,19 ****
--- 14,20 ----
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
+ #include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
diff -c -r src/util/pty/libpty.h ucsdsrc/util/pty/libpty.h
*** src/util/pty/libpty.h Thu Jun 29 19:28:51 2000
--- ucsdsrc/util/pty/libpty.h Tue Feb 13 13:17:44 2001
***************
*** 22,27 ****
--- 22,29 ----

#ifndef __LIBPTY_H__

+ #include <netinet/in.h>
+
/* Constants for pty_update_utmp */
#define PTY_LOGIN_PROCESS 0
#define PTY_USER_PROCESS 1

------- End of forwarded message -------
>How-To-Repeat:
>Fix:
>Audit-Trail:

Responsible-Changed-From-To: gnats-admin->raeburn
Responsible-Changed-By: raeburn
Responsible-Changed-When: Sat Jun 23 01:34:04 2001
Responsible-Changed-Why:

>Unformatted: