NetBSD Problem Report #10305
Received: (qmail 2930 invoked from network); 7 Jun 2000 06:48:34 -0000
Message-Id: <200006070648.XAA19505@shell9.ba.best.com>
Date: Tue, 06 Jun 2000 23:48:32 -0700
From: C Kane <ckane@best.com>
Sender: ckane@best.com
Reply-To: ckane@best.com
To: gnats-bugs@gnats.netbsd.org
Subject: -current compile probem: cannot compile libtelnet due to crypto-us errors
X-Send-Pr-Version: 3.95
>Number: 10305
>Category: lib
>Synopsis: -current compile problme: cannot compile libtelnet due to crypto-us errors
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 07 06:49:01 +0000 2000
>Closed-Date: Sat Jul 15 00:55:03 +0000 2000
>Last-Modified: Sat Jul 15 00:55:03 +0000 2000
>Originator: C Kane
>Release: NetBSD-current
>Organization:
>Environment:
NetBSD 1.4Y i386
>Description:
`make build` produces the following error:
dependall ===> libtelnet
lint -chapbxzF -DHAS_CGETENT -DENCRYPTION -DAUTHENTICATION -DKRB4 -DDES_ENCRYPTION -I/usr/src/lib/libtelnet/../../crypto-us/lib/libtelnet -I/usr/include/kerberosIV -I/usr/src/lib/libtelnet -i /usr/src/lib/libtelnet/auth.c
/usr/src/lib/libtelnet/auth.c(316): parameter mismatch: 1 declared, 0 defined
/usr/src/lib/libtelnet/auth.c(411): warning: conversion to 'unsigned int' due to prototype, arg #3
/usr/src/lib/libtelnet/auth.c(492): warning: assignment in conditional context
/usr/src/lib/libtelnet/auth.c(51p0): warning: assignment in conditional context
/usr/src/lib/libtelnet/auth.c(537): warning: conversion to 'unsigned int' due to prototype, arg #3
/usr/src/lib/libtelnet/auth.c(541): warning: argument has incompatible pointer type, arg #1
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
>How-To-Repeat:
cd /usr/src; make build
>Fix:
unknown
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: fredb
State-Changed-When: Mon Jun 12 13:28:22 CDT 2000
State-Changed-Why:
This is evidently fixed by now.
State-Changed-From-To: closed->open
State-Changed-By: fredb
State-Changed-When: Tue Jun 13 14:33:56 CDT 2000
State-Changed-Why:
Re-opened, by request.
From: Erik Fair <fair@clock.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: lib/10305
Date: Tue, 13 Jun 2000 13:18:54 -0700
Previously, fredb@netbsd.org wrote:
> Synopsis: -current compile problme: cannot compile libtelnet due to
>crypto-us errors
>
> State-Changed-From-To: open->closed
> State-Changed-By: fredb
> State-Changed-When: Mon Jun 12 13:28:22 CDT 2000
> State-Changed-Why:
> This is evidently fixed by now.
Uhm.... no.
Please re-open this bug.
>From a sup this morning:
| dependall ===> libtelnet
| lint -chapbxzF -DHAS_CGETENT -DENCRYPTION -DAUTHENTICATION -DKRB4
-DDES_ENCRYPTION
-I/usr/src/lib/libtelnet/../../crypto-us/lib/libtelnet
-I/usr/include/kerberosIV -I/usr/src/lib/libtelnet -i
/usr/src/lib/libtelnet/auth.c
| /usr/src/lib/libtelnet/auth.c(316): parameter mismatch: 1 declared, 0 defined
| /usr/src/lib/libtelnet/auth.c(411): warning: conversion to
'unsigned int' due to prototype, arg #3
| /usr/src/lib/libtelnet/auth.c(492): warning: assignment in
conditional context
| /usr/src/lib/libtelnet/auth.c(510): warning: assignment in
conditional context
| /usr/src/lib/libtelnet/auth.c(537): warning: conversion to
'unsigned int' due to prototype, arg #3
| /usr/src/lib/libtelnet/auth.c(541): warning: argument has
incompatible pointer type, arg #1
| *** Error code 1
|
| Stop.
| *** Error code 1
|
| Stop.
| *** Error code 1
|
| Stop.
| *** Error code 1
|
| Stop.
Look in /usr/src/lib/libtelnet/auth.c at line 316 (or on the web
http://cvsweb.netbsd.org/bsdweb.cgi/basesrc/lib/libtelnet/auth.c?rev=1
.10&content-type=text/x-cvsweb-markup
and hunt for auth_status):
int
auth_status()
{
Now look in /usr/src/lib/libtelnet/auth.h at line 80 (or on the web
http://cvsweb.netbsd.org/bsdweb.cgi/basesrc/lib/libtelnet/auth-proto.h
?rev=1.8&content-type=text/x-cvsweb-markup
and hunt for auth_status):
int auth_status __P((char *));
How does anybody manage to compile this?
This probably broke when the new crypto-us and crypo-intl stuff was put
into place. I just every so often sup and attempt a compile. I do not
know why a "make build" is trying to use crypto-us, that's just what the
system does. Perhaps this is known broken and I need to change
something from the default setting to use crypto-intl? My sup isn't
even downloading the crypto-intl stuff.
Thanks...
-- Chuck
From: Erik Fair <fair@clock.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: lib/10305
Date: Tue, 13 Jun 2000 13:19:40 -0700
On Tue, 13 Jun 2000, C Kane wrote:
> How does anybody manage to compile this?
The build "just works" for me, either with "crypto-us", or with
EXPORTABLE_SYSTEM=yes.
> This probably broke when the new crypto-us and crypo-intl stuff was put
> into place. I just every so often sup and attempt a compile. I do not
> know why a "make build" is trying to use crypto-us, that's just what the
> system does. Perhaps this is known broken and I need to change
> something from the default setting to use crypto-intl? My sup isn't
> even downloading the crypto-intl stuff.
The build system uses /usr/src/crypto-us if it exists (actually,
${BSDSRCDIR}/crypto-us). Is your sup not updating crypto-us properly?
If you want to build non-crypto, either delete crypto-us and
crypto-intl, or set EXPORTABLE_SYSTEM=yes, or set CRYPTOBASE=none.
From: Erik Fair <fair@clock.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: lib/10305
Date: Tue, 13 Jun 2000 13:20:22 -0700
Previously, Frederick Bruckman wrote:
> On Tue, 13 Jun 2000, C Kane wrote:
>
> > How does anybody manage to compile this?
>
> The build "just works" for me, either with "crypto-us", or with
> EXPORTABLE_SYSTEM=yes.
>
> > This probably broke when the new crypto-us and crypo-intl stuff was put
> > into place. I just every so often sup and attempt a compile. I do not
> > know why a "make build" is trying to use crypto-us, that's just what the
> > system does. Perhaps this is known broken and I need to change
> > something from the default setting to use crypto-intl? My sup isn't
> > even downloading the crypto-intl stuff.
>
> The build system uses /usr/src/crypto-us if it exists (actually,
> ${BSDSRCDIR}/crypto-us). Is your sup not updating crypto-us properly?
> If you want to build non-crypto, either delete crypto-us and
> crypto-intl, or set EXPORTABLE_SYSTEM=yes, or set CRYPTOBASE=none.
I use "sup -dov supfile" which contained these lines on the last sup:
| SUP Upgrade of current-security at Tue Jun 13 03:50:22 2000
| SUP Fileserver 8.13 (4.3 BSD) 27418 on ftp.netbsd.org at 03:50:22
| SUP Requesting changes since Jun 6 06:14:14 2000
| SUP Receiving file src/crypto-us/usr.sbin/kerberos/kerberos.c
| SUP Updated directory src/crypto-us/usr.sbin/kerberos
| SUP Updated directory src/crypto-us/usr.sbin
| SUP Updated directory src/crypto-us/lib/libdes
| SUP Updated directory src/crypto-us/lib/libcrypto
| SUP Updated directory src/crypto-us/lib
| SUP Updated directory src/crypto-us
| SUP Upgrade of current-security completed at Jun 13 03:50:34 2000
Do you have the same things that I do in auth.c and auth-proto.h that
I mentioned in the last email (about how the prototype for auth_status()
doesn't match the definition)?
When you do a "make build", does your make attempt to run lint on auth.c
and not give the error about parameter mismatch for auth_status? Does
your lint command line look similar to mine?
| dependall ===> libtelnet
| lint -chapbxzF -DHAS_CGETENT -DENCRYPTION -DAUTHENTICATION -DKRB4
-DDES_ENCRYPTION
-I/usr/src/lib/libtelnet/../../crypto-us/lib/libtelnet
-I/usr/include/kerberosIV -I/usr/src/lib/libtelnet -i
/usr/src/lib/libtelnet/auth.c
Thanks...
-- Chuck
From: C Kane <ckane@best.com> (by way of Erik E. Fair)
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: lib/10305
Date: Wed, 5 Jul 2000 10:55:50 -0700
Previously, Frederick Bruckman wrote:
> Yes, the lint invocation is the same, but the errors are different,
> which leads me to believe there's a problem with sup (or your sup).
> I'm working from the cvs checkout.
>
> More to the point, "lint" won't exit with an error, which would abort
> the build, just because it finds errors in the code -- you can prove
> that to yourself by running "make dependall MKLINT=no". (I could be
> wrong -- wouldn't that be funny if that works?)
>
> Are you capturing standard error from the make command? It looks like
> something's missing. Please try "make dependall MKLINT=no 2>&1 >mklog",
> and see if some more illuminating error shows up.
Thanks for taking the time to help me debug this.
Actually, the lint command does return a 1 which causes make to fail:
| # cd /usr/src/lib/libtelnet
| # make
| lint -chapbxzF -DHAS_CGETENT -DENCRYPTION -DAUTHENTICATION -DKRB4
-DDES_ENCRYPTION
-I/usr/src/lib/libtelnet/../../crypto-us/lib/libtelnet
-I/usr/include/kerberosIV -I/usr/src/lib/libtelnet -i
/usr/src/lib/libtelnet/auth.c
| /usr/src/lib/libtelnet/auth.c(316): parameter mismatch: 1 declared, 0 defined
| /usr/src/lib/libtelnet/auth.c(411): warning: conversion to
'unsigned int' due to prototype, arg #3
| /usr/src/lib/libtelnet/auth.c(492): warning: assignment in
conditional context
| /usr/src/lib/libtelnet/auth.c(510): warning: assignment in
conditional context
| /usr/src/lib/libtelnet/auth.c(537): warning: conversion to
'unsigned int' due to prototype, arg #3
| /usr/src/lib/libtelnet/auth.c(541): warning: argument has
incompatible pointer type, arg #1
| *** Error code 1
|
| Stop.
and even if it didn't, cc seems to tag the parameter mismatch as an error,
and finds other warnings to treat as errors, and dies:
| # make MKLINT=no
| cc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-uninitialized -Werror -DHAS_CGETENT
-DENCRYPTION -DAUTHENTICATION -DKRB4 -DDES_ENCRYPTION
-I/usr/src/lib/libtelnet/../../crypto-us/lib/libtelnet
-I/usr/include/kerberosIV -I/usr/src/lib/libtelnet -c
/usr/src/lib/libtelnet/auth.c
| /usr/src/lib/libtelnet/auth.c: In function `auth_status':
| /usr/src/lib/libtelnet/auth.c:316: number of arguments doesn't
match prototype
| /usr/src/lib/libtelnet/auth-proto.h:80: prototype declaration
| cc1: warnings being treated as errors
| /usr/src/lib/libtelnet/auth.c: In function `auth_request':
| /usr/src/lib/libtelnet/auth.c:366: warning: implicit declaration of
function `printsub'
| /usr/src/lib/libtelnet/auth.c: In function `auth_is':
| /usr/src/lib/libtelnet/auth.c:492: warning: suggest parentheses
around assignment used as truth value
| /usr/src/lib/libtelnet/auth.c: In function `auth_reply':
| /usr/src/lib/libtelnet/auth.c:510: warning: suggest parentheses
around assignment used as truth value
| /usr/src/lib/libtelnet/auth.c: In function `auth_name':
| /usr/src/lib/libtelnet/auth.c:523: warning: unused variable `ap'
| /usr/src/lib/libtelnet/auth.c: At top level:
| /usr/src/lib/libtelnet/auth.c:580: warning: function declaration
isn't a prototype
| /usr/src/lib/libtelnet/auth.c: In function `auth_wait':
| /usr/src/lib/libtelnet/auth.c:596: warning: implicit declaration of
function `alarm'
| *** Error code 1
|
| Stop.
This is cut-and-pasted off the screen without any redirection for stdout
or stderr, so this should be everything.
Do you get these messages from cc also?
Thanks again..
-- Chuck
From: Frederick Bruckman <fb@enteract.com> (by way of Erik E. Fair)
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: lib/10305
Date: Wed, 5 Jul 2000 10:56:02 -0700
On Tue, 13 Jun 2000, C Kane wrote:
> | # make MKLINT=no
> | cc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes
>-Wpointer-arith -Wno-uninitialized -Werror -DHAS_CGETENT
>-DENCRYPTION -DAUTHENTICATION -DKRB4 -DDES_ENCRYPTION
>-I/usr/src/lib/libtelnet/../../crypto-us/lib/libtelnet
>-I/usr/include/kerberosIV -I/usr/src/lib/libtelnet -c
>/usr/src/lib/libtelnet/auth.c
> | /usr/src/lib/libtelnet/auth.c: In function `auth_status':
> | /usr/src/lib/libtelnet/auth.c:316: number of arguments doesn't
>match prototype
> | /usr/src/lib/libtelnet/auth-proto.h:80: prototype declaration
> | cc1: warnings being treated as errors
> | /usr/src/lib/libtelnet/auth.c: In function `auth_request':
> | /usr/src/lib/libtelnet/auth.c:366: warning: implicit declaration
>of function `printsub'
> | /usr/src/lib/libtelnet/auth.c: In function `auth_is':
> | /usr/src/lib/libtelnet/auth.c:492: warning: suggest parentheses
>around assignment used as truth value
> | /usr/src/lib/libtelnet/auth.c: In function `auth_reply':
> | /usr/src/lib/libtelnet/auth.c:510: warning: suggest parentheses
>around assignment used as truth value
> | /usr/src/lib/libtelnet/auth.c: In function `auth_name':
> | /usr/src/lib/libtelnet/auth.c:523: warning: unused variable `ap'
> | /usr/src/lib/libtelnet/auth.c: At top level:
> | /usr/src/lib/libtelnet/auth.c:580: warning: function declaration
>isn't a prototype
> | /usr/src/lib/libtelnet/auth.c: In function `auth_wait':
> | /usr/src/lib/libtelnet/auth.c:596: warning: implicit declaration
>of function `alarm'
^^^^^
> | *** Error code 1
> |
> | Stop.
>
> This is cut-and-pasted off the screen without any redirection for stdout
> or stderr, so this should be everything.
OK. This is certainly more interesting...
> Do you get these messages from cc also?
No. alarm() lives in libc. Your sources must be seriously hosed.
Either just yours, or sup. It might be best to ask on current-users if
anyone else is having trouble building crypto-us from _sup_. In any
case, consider pulling down fresh source tarballs (and cleaning out
/usr/sup), since supping fresh is fairly ineffecient. With the latest
tarballs, it's also trivial to use "anoncvs", but that's your call.
Be aware, if you haven't been following current closely, that there
are changes from 1.4Y that can trip you up. You'll need to at least
build and install "rpcgen" and update your /etc.
I'm going to have to go back on the road this morning, so I won't be
able to follow your situation very closely. <punt>
Frederick
From: Frederick Bruckman <fb@enteract.com> (by way of Erik E. Fair)
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: lib/10305
Date: Wed, 5 Jul 2000 10:55:36 -0700
On Tue, 13 Jun 2000, C Kane wrote:
> I use "sup -dov supfile" which contained these lines on the last sup:
>
> | SUP Upgrade of current-security at Tue Jun 13 03:50:22 2000
> | SUP Fileserver 8.13 (4.3 BSD) 27418 on ftp.netbsd.org at 03:50:22
> | SUP Requesting changes since Jun 6 06:14:14 2000
> | SUP Receiving file src/crypto-us/usr.sbin/kerberos/kerberos.c
> | SUP Updated directory src/crypto-us/usr.sbin/kerberos
> | SUP Updated directory src/crypto-us/usr.sbin
> | SUP Updated directory src/crypto-us/lib/libdes
> | SUP Updated directory src/crypto-us/lib/libcrypto
> | SUP Updated directory src/crypto-us/lib
> | SUP Updated directory src/crypto-us
> | SUP Upgrade of current-security completed at Jun 13 03:50:34 2000
Hmmm...
> Do you have the same things that I do in auth.c and auth-proto.h that
> I mentioned in the last email (about how the prototype for auth_status()
> doesn't match the definition)?
Yes, but... it still compiles. I think (char *) is the moral
equivalent of (void), so it's OK.
> When you do a "make build", does your make attempt to run lint on auth.c
> and not give the error about parameter mismatch for auth_status? Does
> your lint command line look similar to mine?
>
> | dependall ===> libtelnet
> | lint -chapbxzF -DHAS_CGETENT -DENCRYPTION -DAUTHENTICATION -DKRB4
>-DDES_ENCRYPTION
>-I/usr/src/lib/libtelnet/../../crypto-us/lib/libtelnet
>-I/usr/include/kerberosIV -I/usr/src/lib/libtelnet -i
>/usr/src/lib/libtelnet/auth.c
Yes, the lint invocation is the same, but the errors are different,
which leads me to believe there's a problem with sup (or your sup).
I'm working from the cvs checkout.
More to the point, "lint" won't exit with an error, which would abort
the build, just because it finds errors in the code -- you can prove
that to yourself by running "make dependall MKLINT=no". (I could be
wrong -- wouldn't that be funny if that works?)
Are you capturing standard error from the make command? It looks like
something's missing. Please try "make dependall MKLINT=no 2>&1 >mklog",
and see if some more illuminating error shows up.
Frederick
State-Changed-From-To: open->closed
State-Changed-By: thorpej
State-Changed-When: Fri Jul 14 17:54:46 PDT 2000
State-Changed-Why:
Crypto-us is no more. This PR is no longer valid.
>Unformatted:
(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.