NetBSD Problem Report #9835
Received: (qmail 12847 invoked from network); 7 Apr 2000 22:38:39 -0000
Message-Id: <200004072237.PAA24754@nbwww.isc.org>
Date: Fri, 7 Apr 2000 15:37:36 -0700 (PDT)
From: mw34@cornell.edu
Reply-To: mw34@cornell.edu
To: gnats-bugs@gnats.netbsd.org
Subject: sysutils/cfengine doesn't compile
X-Send-Pr-Version: www-1.0
>Number: 9835
>Category: pkg
>Synopsis: sysutils/cfengine doesn't compile
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 07 22:39:00 +0000 2000
>Closed-Date: Wed Sep 13 01:04:58 +0000 2000
>Last-Modified: Wed Sep 13 01:04:58 +0000 2000
>Originator: Michael Wolfson
>Release: 1.4.2
>Organization:
>Environment:
NetBSD fatmac 1.4.2 NetBSD 1.4.2 (FATMAC) #0: Mon Mar 20 00:36:27 EST 2000 mw@fatmac:/usr/src/sys/arch/hp300/compile/FATMAC hp300
>Description:
sysutils/cfengine (1.5.3) from pkgsrc.tar.gz (dated Apr 1, 2000) doesn't compile properly.
cc -c -I/usr/local/include -O2 -DHAVE_CONFIG_H encrypt.c
encrypt.c: In function `LoadSecretKeys':
encrypt.c:84: `des_cblock' undeclared (first use in this function)
encrypt.c:84: (Each undeclared identifier is reported only once
encrypt.c:84: for each function it appears in.)
encrypt.c:84: syntax error before `)'
encrypt.c: In function `cfencrypt':
encrypt.c:138: syntax error before `ks1'
encrypt.c:140: `C_Block' undeclared (first use in this function)
encrypt.c:140: syntax error before `)'
encrypt.c:141: syntax error before `)'
encrypt.c:142: syntax error before `)'
encrypt.c:146: `ks1' undeclared (first use in this function)
encrypt.c:146: `ks2' undeclared (first use in this function)
encrypt.c:146: `ks3' undeclared (first use in this function)
encrypt.c:146: syntax error before `)'
encrypt.c: In function `cfdecrypt':
encrypt.c:158: syntax error before `ks1'
encrypt.c:161: `C_Block' undeclared (first use in this function)
encrypt.c:161: syntax error before `)'
encrypt.c:162: syntax error before `)'
encrypt.c:163: syntax error before `)'
encrypt.c:165: `ks1' undeclared (first use in this function)
encrypt.c:165: `ks2' undeclared (first use in this function)
encrypt.c:165: `ks3' undeclared (first use in this function)
encrypt.c:165: syntax error before `)'
*** Error code 1
Stop.
>How-To-Repeat:
Get pkgsrc.tar.gz (dated Apr 1, 2000)
cd sysutils/cfengine
make
>Fix:
>Release-Note:
>Audit-Trail:
From: Michael Wolfson <mw34@cornell.edu>
To: gnats-bugs@netbsd.org
Cc:
Subject: pkg/9835
Date: Sun, 30 Jul 2000 20:55:43 -0400
I tried this again recently (pkgsrc.tar.gz (dated Jul 19, 2000)), and the
original problem (with encrypt.c) seems to have been fixed. There is a
further problem:
cc -c -I/usr/local/include -O2 -DHAVE_CONFIG_H cfd.c
cfd.c: In function `SpawnConnection':
cfd.c:529: `PTHREADDEFAULTS' undeclared (first use in this function)
cfd.c:529: (Each undeclared identifier is reported only once
cfd.c:529: for each function it appears in.)
cfd.c:530: `PTHREAD_CREATE_DETACHED' undeclared (first use in this function)
cfd.c:533: `_SC_THREAD_STACK_MIN' undeclared (first use in this function)
cfd.c:536: `tid' undeclared (first use in this function)
cfd.c: In function `HandleConnection':
cfd.c:675: `MUTEX_COUNT' undeclared (first use in this function)
*** Error code 1
Stop.
State-Changed-From-To: open->feedback
State-Changed-By: wiz
State-Changed-When: Sat Sep 9 11:12:10 PDT 2000
State-Changed-Why:
I just modified patch-ab (v1.3) so that any pthreads packages won't get
picked up, which fixes the problem for me -- does it also fix it for you?
From: Michael Wolfson <mw@costello.cnf.cornell.edu>
To: wiz@netbsd.org, gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/9835
Date: Mon, 11 Sep 2000 01:48:22 -0400
At 6:13 PM +0000 9/9/00, you wrote:
:)I just modified patch-ab (v1.3) so that any pthreads packages won't get
:)picked up, which fixes the problem for me -- does it also fix it for you?
Yes, this fixed the pthreads problem, but the original encrypt.c problem is
still present. There are some oddities in the configure output also.
-- MW
checking for perl... /usr/pkg/bin/perl
checking for tex... test: /usr/pkg/bin: unexpected operator
/bin/false
checking for latex... test: /usr/pkg/bin: unexpected operator
/bin/false
checking for texindex... /usr/bin/texindex
checking for dvips... test: /usr/pkg/bin: unexpected operator
/bin/false
checking for texi2html... test: /usr/pkg/bin: unexpected operator
/bin/false
checking for makeinfo... /usr/bin/makeinfo
checking for tex... test: /usr/pkg/bin: unexpected operator
no
checking for tex... test: /usr/pkg/bin: unexpected operator
no
checking for dvips... test: /usr/pkg/bin: unexpected operator
no
checking for dvips... test: /usr/pkg/bin: unexpected operator
no
checking for makeinfo... cfengine-Tutorial.html
checking for makeinfo... cfengine-Reference.html
checking for makeinfo... cfengine-Tutorial.info
checking for makeinfo... cfengine-Reference.info
checking for latex... test: /usr/pkg/bin: unexpected operator
no
checking for dvips... test: /usr/pkg/bin: unexpected operator
no
checking for latex... test: /usr/pkg/bin: unexpected operator
no
checking for dvips... test: /usr/pkg/bin: unexpected operator
no
checking for latex... test: /usr/pkg/bin: unexpected operator
no
checking for dvips... test: /usr/pkg/bin: unexpected operator
no
checking for main in -lm... yes
[...]
cc -c -I/usr/local/include -O2 -DHAVE_CONFIG_H encrypt.c
encrypt.c: In function `LoadSecretKeys':
encrypt.c:84: `des_cblock' undeclared (first use in this function)
encrypt.c:84: (Each undeclared identifier is reported only once
encrypt.c:84: for each function it appears in.)
encrypt.c:84: syntax error before `)'
encrypt.c: In function `cfencrypt':
encrypt.c:138: syntax error before `ks1'
encrypt.c:140: `C_Block' undeclared (first use in this function)
encrypt.c:140: syntax error before `)'
encrypt.c:141: syntax error before `)'
encrypt.c:142: syntax error before `)'
encrypt.c:146: `ks1' undeclared (first use in this function)
encrypt.c:146: `ks2' undeclared (first use in this function)
encrypt.c:146: `ks3' undeclared (first use in this function)
encrypt.c:146: syntax error before `)'
encrypt.c: In function `cfdecrypt':
encrypt.c:158: syntax error before `ks1'
encrypt.c:161: `C_Block' undeclared (first use in this function)
encrypt.c:161: syntax error before `)'
encrypt.c:162: syntax error before `)'
encrypt.c:163: syntax error before `)'
encrypt.c:165: `ks1' undeclared (first use in this function)
encrypt.c:165: `ks2' undeclared (first use in this function)
encrypt.c:165: `ks3' undeclared (first use in this function)
encrypt.c:165: syntax error before `)'
*** Error code 1
Stop.
From: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
To: mw@blobulent.com
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/9835
Date: Mon, 11 Sep 2000 20:34:59 +0200
--jRHKVT23PllUwdXP
Content-Type: text/plain; charset=us-ascii
Mutt made me believe that Michael Wolfson wrote:
> Yes, this fixed the pthreads problem, but the original encrypt.c problem is
> still present. There are some oddities in the configure output also.
Could you please check if installing security/openssl helps against
the compilation problem?
If that doesn't work, try the attached patch, please.
Perhaps installing print/teTeX helps against the weird configure
warnings?
Bye,
Thomas
--
Thomas Klausner - wiz@danbala.tuwien.ac.at
I think...I think it's in my basement. Let me go upstairs and check.
-- M.C. Escher (1898-1972)
--jRHKVT23PllUwdXP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-ac
$NetBSD$
--- src/encrypt.c.orig Wed Aug 11 11:32:33 1999
+++ src/encrypt.c
@@ -39,6 +39,8 @@
#ifdef HAVE_LIBCRYPTO /* must be des.h from OpenSSL */
# ifdef HAVE_OPENSSL_DES_H
# include <openssl/des.h>
+# else
+# undef HAVE_LIBCRYPTO
# endif
#endif
--jRHKVT23PllUwdXP--
State-Changed-From-To: feedback->closed
State-Changed-By: wiz
State-Changed-When: Tue Sep 12 18:03:26 PDT 2000
State-Changed-Why:
The last mentioned patch solved the problem, confirmed by submitter.
It seems the issue was with rsaref's des.h and very unclean #ifdef usage
in cfengine's code.
Thanks for the PR!
>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.