[3211] in Kerberos-V5-bugs
pending/956:
daemon@ATHENA.MIT.EDU (Kevin Coffman)
Tue May 15 12:20:06 2001
Resent-From: gnats@rt-11.mit.edu (GNATS Management)
Resent-To: gnats-admin@rt-11.mit.edu
Resent-Reply-To: krb5-bugs@MIT.EDU, Kevin Coffman <kwc@citi.umich.edu>
Message-Id: <20010515161920.42954207C1@citi.umich.edu>
Date: Tue, 15 May 2001 12:19:20 -0400
From: Kevin Coffman <kwc@citi.umich.edu>
To: "Russell P. Sutherland" <russ@madhaus.cns.utoronto.ca>
Cc: krb5-bugs@mit.edu, Kevin Coffman <kwc@citi.umich.edu>
In-Reply-To: Your message of "Tue, 15 May 2001 10:50:48 EDT."
<20010515105048.A24199@madhaus.cns.utoronto.ca>
>Number: 956
>Category: pending
>Synopsis:
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Tue May 15 12:20:00 EDT 2001
>Last-Modified:
>Originator:
>Organization:
>Release:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:
The real cause of this, is that OpenBSD does not protect against
including <net/if.h> more than once. Here is my workaround...
RCS file:krb5/src/kdc/network.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -c -r1.1.1.1 -r1.2
*** kdc/network.c 2000/07/06 19:36:17 1.1.1.1
--- kdc/network.c 2000/10/16 15:52:52 1.2
***************
*** 51,57 ****
--- 51,64 ----
#endif
#include <arpa/inet.h>
+ #if !defined(ARPHRD_ETHER) /* UMICH */
+ /*
+ * OpenBSD doesn't have a #define to prevent net/if.h from
+ * being included multiple times. We don't want to include
+ * it again if ARPHRD_ETHER is defined.
+ */
#include <net/if.h>
+ #endif /* UMICH */
extern int errno;
> >Number: 955
> >Category: pending
> >Synopsis: compile/build error
> >Confidential: yes
> >Severity: serious
> >Priority: medium
> >Responsible: gnats-admin
> >State: open
> >Class: sw-bug
> >Submitter-Id: unknown
> >Arrival-Date: Tue May 15 10:51:01 EDT 2001
> >Last-Modified:
> >Originator:
> >Organization:
> >Release:
> >Environment:
> >Description:
> >How-To-Repeat:
> >Fix:
> >Audit-Trail:
> >Unformatted:
> I'm having difficulty compiling krb5-1.2.2 on an OpenBSD sparc box:
>
> kdc# pwd
> /usr/local/src/krb5-1.2.2/src
> kdc# make
>
> ...
>
> making all in lib/kadm5/unit-test...
> making all in krb524...
> making all in kdc...
> cc -DKRB5_DNS_LOOKUP_KDC=1 -DKRB5_DNS_LOOKUP=1 -DPOSIX_TERMIOS=1
> -DHAVE_SYSLOG_H=1 -DHAVE_STDARG_H=1 -
> DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_OPENLOG=1
> -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 -DHAVE_S
> TRFTIME=1 -DHAVE_VSPRINTF=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_SOCKET_H=1
> -DHAVE_NETINET_IN_H=1 -DHAVE_IN
> ET_NTOP=1 -DHAVE_INET_PTON=1 -DHAVE_GETADDRINFO=1 -DHAVE_GETNAMEINFO=1
> -DKRB5_USE_INET6=1 -DHAVE_SA_LE
> N=1 -DPOSIX_SIGNALS=1 -DUSE_RCACHE=1 -DKRB5_KRB4_COMPAT -I../include
> -I./../include -I../include/krb5
> -I./../include/krb5 -I./../include/kerberosIV -I../include/kerberosIV
> -I. -c network.c
> In file included from network.c:54:
> /usr/include/net/if.h:80: redefinition of `struct if_data'
> /usr/include/net/if.h:116: redefinition of `struct ifnet_head'
> /usr/include/net/if.h:125: redefinition of `struct ifnet'
> /usr/include/net/if.h:149: redefinition of `struct ifqueue'
> /usr/include/net/if.h:251: redefinition of `struct ifaddr'
> /usr/include/net/if.h:272: redefinition of `struct ifprefix'
> /usr/include/net/if.h:284: redefinition of `struct if_msghdr'
> /usr/include/net/if.h:298: redefinition of `struct ifa_msghdr'
> /usr/include/net/if.h:314: redefinition of `struct ifreq'
> /usr/include/net/if.h:334: redefinition of `struct ifaliasreq'
> /usr/include/net/if.h:342: redefinition of `struct ifmediareq'
> /usr/include/net/if.h:359: redefinition of `struct ifconf'
> /usr/include/net/if.h:372: redefinition of `struct if_laddrreq'
> /usr/include/net/if.h:381: redefinition of `struct if_nameindex'
> In file included from /usr/include/net/if.h:395,
> from network.c:54:
> /usr/include/net/if_arp.h:49: redefinition of `struct arphdr'
> /usr/include/net/if_arp.h:79: redefinition of `struct arpreq'
> *** Error code 1
> Stop in /usr/local/src/krb5-1.2.2/src/kdc.
> *** Error code 1
> Stop in /usr/local/src/krb5-1.2.2/src (line 936 of Makefile).
>
> --
> Russell P. Sutherland Email: russ@madhaus.cns.utoronto.ca
> 4 Bancroft Ave., Rm. 102 Voice: +1.416.978.0470
> University of Toronto Fax: +1.416.978.6620
> Toronto, ON M5S 1C1 WWW: http://madhaus.cns.utoronto.ca/~russ
> CANADA
>