From kwc@citi.umich.edu Tue May 15 12:19:25 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 MAA08330
for <bugs@RT-11.mit.edu>; Tue, 15 May 2001 12:19:21 -0400 (EDT)
Received: from citi.umich.edu (citi.umich.edu [141.211.92.141])
by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id MAA29757
for <krb5-bugs@mit.edu>; Tue, 15 May 2001 12:19:20 -0400 (EDT)
Received: from citi.umich.edu (buffalo.citi.umich.edu [141.211.92.191])
by citi.umich.edu (Postfix) with ESMTP
id 42954207C1; Tue, 15 May 2001 12:19:20 -0400 (EDT)
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>
Subject:
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;
>
> 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
>
Responsible-Changed-From-To: gnats-admin->raeburn
Responsible-Changed-By: raeburn
Responsible-Changed-When: Sat Jun 23 00:56:17 2001
Responsible-Changed-Why:
I'll take it...
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 MAA08330
for <bugs@RT-11.mit.edu>; Tue, 15 May 2001 12:19:21 -0400 (EDT)
Received: from citi.umich.edu (citi.umich.edu [141.211.92.141])
by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id MAA29757
for <krb5-bugs@mit.edu>; Tue, 15 May 2001 12:19:20 -0400 (EDT)
Received: from citi.umich.edu (buffalo.citi.umich.edu [141.211.92.191])
by citi.umich.edu (Postfix) with ESMTP
id 42954207C1; Tue, 15 May 2001 12:19:20 -0400 (EDT)
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>
Subject:
Show quoted text
>Number: 956
>Category: krb5-build
>Synopsis:
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: raeburn
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Tue May 15 12:20:00 EDT 2001
>Last-Modified: Sat Jun 23 00:56:20 EDT 2001
>Originator: Kevin Coffman <kwc@citi.umich.edu>
>Organization:
>Release:
>Environment:
>Description:
The real cause of this, is that OpenBSD does not protect against>Category: krb5-build
>Synopsis:
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: raeburn
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Tue May 15 12:20:00 EDT 2001
>Last-Modified: Sat Jun 23 00:56:20 EDT 2001
>Originator: Kevin Coffman <kwc@citi.umich.edu>
>Organization:
>Release:
>Environment:
>Description:
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;
Show quoted text
> >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:> >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:
>
> 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
>
Show quoted text
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Fix:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->raeburn
Responsible-Changed-By: raeburn
Responsible-Changed-When: Sat Jun 23 00:56:17 2001
Responsible-Changed-Why:
I'll take it...
Show quoted text
>Unformatted: