NetBSD Problem Report #10709

Received: (qmail 16781 invoked from network); 29 Jul 2000 16:27:00 -0000
Message-Id: <200007291627.e6TGR0n04804@capsicum.wsrcc.com>
Date: Sat, 29 Jul 2000 09:27:00 -0700 (PDT)
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
Reply-To: wolfgang@wsrcc.com
To: gnats-bugs@gnats.netbsd.org
Subject: libtelnet has problems building
X-Send-Pr-Version: 3.95

>Number:         10709
>Category:       lib
>Synopsis:       libtelnet has problems building
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 29 16:28:00 +0000 2000
>Closed-Date:    Mon Jan 08 13:02:25 +0000 2001
>Last-Modified:  Mon Jan 08 13:02:25 +0000 2001
>Originator:     Wolfgang Rupprecht
>Release:        <NetBSD-current source date>
>Organization:
W S Rupprecht Computer Consulting, Fremont CA
>Environment:

System: NetBSD capsicum.wsrcc.com 1.5C NetBSD 1.5C (WSRCC) #0: Wed Jul 26 23:02:08 PDT 2000 wolfgang@capsicum.wsrcc.com:/v/src/netbsd/NetBSD-current/usr/src/sys/arch/i386/compile/WSRCC i386


>Description:

	The /usr/src build process repeatedly chastised me about "MIT
	krb includes must be removed from the include tree" (or some
	such).

	With much apprehension I blew away my 5-year old accumulation
	of include files in /usr/include.

	I was have worrried that I'd not be able to bootstrap.
	Luckily things look pretty good except for the usual
	problem-child -- krb.

	In essense building everything didn't work when I had the old 
	krb5 files in /usr/include.  It also doesn't work now with a 
	totally clean /usr/include.  This is a bug.

>How-To-Repeat:
	/bin/rm -rf /usr/include
	cd /usr/src
	make build

	lib/libtelnet/getent.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/misc.c
	 /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/enc_des.c /v/src/netbsd/NetB
	SD-current/usr/src/lib/libtelnet/kerberos.c kerberos5.c
	In file included from kerberos5.c:64:
	/usr/include/krb5/k5-int.h:49: osconf.h: No such file or directory
	/usr/include/krb5/k5-int.h:291: autoconf.h: No such file or directory
	In file included from kerberos5.c:64:
	/usr/include/krb5/k5-int.h:553: db-ndbm.h: No such file or directory
	In file included from kerberos5.c:64:
	/usr/include/krb5/k5-int.h:734: kdb.h: No such file or directory
	/usr/include/krb5/k5-int.h:735: kdb_dbm.h: No such file or directory
	/usr/include/krb5/k5-int.h:899: profile.h: No such file or directory
	mkdep: compile failed.
	*** Error code 1

	Stop.
	*** Error code 1

	Stop.
	*** Error code 1

	Stop.



>Fix:
	kerberos needs a "make includes" target that gets called 
	before actual compilation of the libs takes place
>Release-Note:
>Audit-Trail:

From: joda@pdc.kth.se (Johan Danielsson)
To: wolfgang@wsrcc.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: lib/10709: libtelnet has problems building
Date: 29 Jul 2000 19:20:04 +0200

 Wolfgang Rupprecht <wolfgang@wsrcc.com> writes:

 > 	/usr/include/krb5/k5-int.h:49: osconf.h: No such file or directory

 These are MIT files, and if you really removed all of them from your
 system, something is still installing them when you build. You should
 try to figure out what's causing this.

 I have no touble building -current or 1.5.

 /Johan

From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
To: joda@pdc.kth.se (Johan Danielsson)
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: lib/10709: libtelnet has problems building
Date: Sat, 29 Jul 2000 11:48:33 -0700 (PDT)

 Johan Danielsson writes:
 > Wolfgang Rupprecht <wolfgang@wsrcc.com> writes:
 > > 	/usr/include/krb5/k5-int.h:49: osconf.h: No such file or directory
 > These are MIT files, and if you really removed all of them from your
 > system, something is still installing them when you build. You should
 > try to figure out what's causing this.

 Well, I did at one point remove all of them and then put that single
 file back by hand on a previous build failure that griped about a
 missing k5-int.h.  I just removed /usr/include again and am
 rebuilding.

 -wolfgang
 -- 
 Wolfgang Rupprecht    <wolfgang@wsrcc.com>     http://www.wsrcc.com/wolfgang/
 DGPS signals via the Internet  http://www.wsrcc.com/wolfgang/gps/dgps-ip.html

From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
To: joda@pdc.kth.se (Johan Danielsson)
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: lib/10709: libtelnet has problems building
Date: Sat, 29 Jul 2000 12:55:11 -0700 (PDT)

 Johan Danielsson writes:
 > Wolfgang Rupprecht <wolfgang@wsrcc.com> writes:
 > > 	/usr/include/krb5/k5-int.h:49: osconf.h: No such file or directory
 > These are MIT files, and if you really removed all of them from your
 > system, something is still installing them when you build. You should
 > try to figure out what's causing this.
 > I have no touble building -current or 1.5.

 With a clean-ed out /usr/include this is what I get:

 Lint pass2:
 sbrk, arg 1 declared inconsistently     llib-lc.ln :: kstream.c?(45)
 dependall ===> libtelnet
 mkdep -a  -DHAS_CGETENT -I/v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet -DENCRYPTION -DAUTHENTICATION -DKRB4 -DDES_ENCRYPTION -DKRB5 -I/usr/include/krb5 -I/usr/include/kerberosIV /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/auth.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/encrypt.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/genget.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/getent.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/misc.c /v/src/netbsd/NetBSD-current/u sr/src/lib/libtelnet/enc_des.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/kerberos.c kerberos5.c
 kerberos5.c:64: k5-int.h: No such file or directory
 mkdep: compile failed.
 *** Error code 1

 Stop.
 *** Error code 1

 Stop.
 *** Error code 1

 Stop.
 ^C

 I have an essentially empty /etc/mk.conf with only these active:

 USE_INET6 = true
 ACCEPTABLE_LICENSES=shareware no-commercial-use
 HAVE_MOTIF=true
 USE_RSAREF2 = NO                # use the better emulation libs.
 MKOBJ=YES
 MKOBJDIRS=yes			# remake obj dirs on each make-build
 BSDSRCDIR=/amd/capsicum/v/src/netbsd/NetBSD-current/usr/src
 BSDOBJDIR=/var/obj/netbsd       # The real path to the system 'obj' tree, so 
 WRKOBJDIR= /var/obj/pkgsrc      # build here instead of in pkgsrc

 Any other hints as to what could be wrong here?  I'm doing a "cvs -d
 -P" in /usr/src right now.

 -wolfgang
 -- 
 Wolfgang Rupprecht    <wolfgang@wsrcc.com>     http://www.wsrcc.com/wolfgang/
 DGPS signals via the Internet  http://www.wsrcc.com/wolfgang/gps/dgps-ip.html

From: joda@pdc.kth.se (Johan Danielsson)
To: Wolfgang Rupprecht <wolfgang@wsrcc.com>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: lib/10709: libtelnet has problems building
Date: 30 Jul 2000 12:40:02 +0200

 Wolfgang Rupprecht <wolfgang@wsrcc.com> writes:

 > mkdep -a  -DHAS_CGETENT -I/v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet -DENCRYPTION -DAUTHENTICATION -DKRB4 -DDES_ENCRYPTION -DKRB5 -I/usr/include/krb5 -I/usr/include/kerberosIV /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/auth.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/encrypt.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/genget.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/getent.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/misc.c /v/src/netbsd/NetBSD-current /usr/src/lib/libtelnet/enc_des.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/kerberos.c kerberos5.c

 Do notice anything funny with this line? All source is in
 /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet, except
 kerberos5.c. My guess is that you have an old kerberos5.c in your
 build tree.

 /Johan

From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
To: joda@pdc.kth.se (Johan Danielsson)
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: lib/10709: libtelnet has problems building
Date: Sun, 30 Jul 2000 07:09:20 -0700 (PDT)

 Johan Danielsson writes:
 > Wolfgang Rupprecht <wolfgang@wsrcc.com> writes:
 > > mkdep -a  -DHAS_CGETENT -I/v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet -DENCRYPTION -DAUTHENTICATION -DKRB4 -DDES_ENCRYPTION -DKRB5 -I/usr/include/krb5 -I/usr/include/kerberosIV /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/auth.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/encrypt.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/genget.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/getent.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/misc.c /v/src/netbsd/NetBSD-curre nt/usr/src/lib/libtelnet/enc_des.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/kerberos.c kerberos5.c
 > Do notice anything funny with this line? All source is in
 > /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet, except
 > kerberos5.c. My guess is that you have an old kerberos5.c in your
 > build tree.

 Hmm.   kerberos5.c has this header:

  /*	$NetBSD: kerberos5.c,v 1.5 2000/07/17 02:25:02 thorpej Exp $	*/

 It also has an MIT and Berkeley copyright notice, so I assume it is of
 the MIT krb5 flavor.  Is this the wrong one?  Should I be seeing a
 heimdal flavor of krb5 file?

 I moved all of /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet out
 of the way and re-got it via a "cvs update -d -P".  I get the exact
 same kerberos5.c file back.  In fact a diff of the old and newly
 cvs-ed directories shows no differences.

 If this kerberos5.c is the incorrect file, it is being served by the
 cvs server.  Are the US cvs servers in some state of flux?  I guess I
 don't understand if the MIT stuff is being phased-in globally or
 phased-out globally.

 -wolfgang
 -- 
 Wolfgang Rupprecht    <wolfgang@wsrcc.com>     http://www.wsrcc.com/wolfgang/
 DGPS signals via the Internet  http://www.wsrcc.com/wolfgang/gps/dgps-ip.html

From: joda@pdc.kth.se (Johan Danielsson)
To: Wolfgang Rupprecht <wolfgang@wsrcc.com>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: lib/10709: libtelnet has problems building
Date: 30 Jul 2000 16:45:08 +0200

 Wolfgang Rupprecht <wolfgang@wsrcc.com> writes:

 > Hmm.  kerberos5.c has this header:

 Yes, but that version of that file does *not* include k5-int.h. You
 must have another file by that name somewhere.

 My impression was that you didn't build in the source tree. If so,
 check the build tree.

 /Johan

From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: lib/10709: libtelnet has problems building
Date: Sat, 29 Jul 2000 09:27:00 -0700 (PDT)

 >Number:         10709
 >Category:       lib
 >Synopsis:       libtelnet has problems building
 >Confidential:   no
 >Severity:       non-critical
 >Priority:       low
 >Responsible:    lib-bug-people
 >State:          open
 >Class:          sw-bug
 >Submitter-Id:   net
 >Arrival-Date:   Sat Jul 29 09:28:00 PDT 2000
 >Closed-Date:
 >Last-Modified:
 >Originator:     Wolfgang Rupprecht
 >Release:        <NetBSD-current source date>
 >Organization:
 W S Rupprecht Computer Consulting, Fremont CA
 >Environment:

 System: NetBSD capsicum.wsrcc.com 1.5C NetBSD 1.5C (WSRCC) #0: Wed Jul 26 23:02:08 PDT 2000 wolfgang@capsicum.wsrcc.com:/v/src/netbsd/NetBSD-current/usr/src/sys/arch/i386/compile/WSRCC i386


 >Description:

         The /usr/src build process repeatedly chastised me about "MIT
         krb includes must be removed from the include tree" (or some
         such).

         With much apprehension I blew away my 5-year old accumulation
         of include files in /usr/include.

         I was have worrried that I'd not be able to bootstrap.
         Luckily things look pretty good except for the usual
         problem-child -- krb.

         In essense building everything didn't work when I had the old 
         krb5 files in /usr/include.  It also doesn't work now with a 
         totally clean /usr/include.  This is a bug.

 >How-To-Repeat:
         /bin/rm -rf /usr/include
         cd /usr/src
         make build

         lib/libtelnet/getent.c /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/misc.c
          /v/src/netbsd/NetBSD-current/usr/src/lib/libtelnet/enc_des.c /v/src/netbsd/NetB
         SD-current/usr/src/lib/libtelnet/kerberos.c kerberos5.c
         In file included from kerberos5.c:64:
         /usr/include/krb5/k5-int.h:49: osconf.h: No such file or directory
         /usr/include/krb5/k5-int.h:291: autoconf.h: No such file or directory
         In file included from kerberos5.c:64:
         /usr/include/krb5/k5-int.h:553: db-ndbm.h: No such file or directory
         In file included from kerberos5.c:64:
         /usr/include/krb5/k5-int.h:734: kdb.h: No such file or directory
         /usr/include/krb5/k5-int.h:735: kdb_dbm.h: No such file or directory
         /usr/include/krb5/k5-int.h:899: profile.h: No such file or directory
         mkdep: compile failed.
         *** Error code 1

         Stop.
         *** Error code 1

         Stop.
         *** Error code 1

         Stop.



 >Fix:
         kerberos needs a "make includes" target that gets called 
         before actual compilation of the libs takes place
 >Release-Note:
 >Audit-Trail:
 >Unformatted:


State-Changed-From-To: open->closed 
State-Changed-By: itojun 
State-Changed-When: Mon Jan 8 05:02:09 PST 2001 
State-Changed-Why:  
the problem does not seem to exist any longer 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.