Bug 26110

Summary: Can't build port sysutils/cfengine with db3
Product: Ports & Packages Reporter: ilya <ilya>
Component: Individual Port(s)Assignee: freebsd-ports (Nobody) <ports>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description ilya 2001-03-26 16:30:01 UTC
If port database/db3 is installed then port sysutils/cfengine can't be
build.

Fix: The problem is that cfengine includes wrong include file. I've fixed
problem for myself with next hack - patch to be placed in
sysutils/cfengine/files:



With this patch it does compile.--MbDqTcSRRRPsXwdb2zOdEArQcZ7UkaVOWkkWAIeKIQQ0cLor
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- src/misc.c~	Wed Jan 24 18:28:01 2001
+++ src/misc.c	Mon Mar 26 19:18:47 2001
@@ -39,7 +39,7 @@
 
 
 #ifdef HAVE_DB_H
-# include <db.h>
+# include "/usr/local/include/db3/db.h"
 #endif
 
 /*******************************************************************/
How-To-Repeat: 
First install port database/db3. Try to build sysutils/cfengine. It dies
with messages:

cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/include  -O -pipe -pthread  -c misc.c
misc.c: In function `ChecksumChanged':
misc.c:454: `DB_ENV' undeclared (first use in this function)
misc.c:454: (Each undeclared identifier is reported only once
misc.c:454: for each function it appears in.)
misc.c:454: `dbenv' undeclared (first use in this function)
misc.c:455: `DBC' undeclared (first use in this function)
misc.c:455: `dbcp' undeclared (first use in this function)
misc.c:456: syntax error before `recno'
misc.c:521: structure has no member named `open'
misc.c:521: `DB_CREATE' undeclared (first use in this function)
misc.c:526: too many arguments to function
misc.c:551: warning: passing arg 3 of pointer to function makes integer from pointer without a cast
misc.c:551: too many arguments to function
misc.c:559: warning: passing arg 4 of pointer to function makes integer from pointer without a cast
misc.c:559: too many arguments to function
misc.c:565: warning: passing arg 4 of pointer to function makes integer from pointer without a cast
misc.c:565: too many arguments to function
misc.c:594: warning: passing arg 3 of pointer to function makes integer from pointer without a cast
misc.c:594: too many arguments to function
misc.c:602: warning: passing arg 4 of pointer to function makes integer from pointer without a cast
misc.c:602: too many arguments to function
misc.c:608: too many arguments to function
misc.c:614: too many arguments to function
misc.c:637: warning: passing arg 4 of pointer to function makes integer from pointer without a cast
misc.c:637: too many arguments to function
misc.c:642: too many arguments to function
gmake[1]: *** [misc.o] Error 1
gmake[1]: Leaving directory `/usr/ports/sysutils/cfengine/work/cfengine-1.6.3/src'
gmake: *** [all-recursive] Error 1
*** Error code 2

Stop in /usr/ports/sysutils/cfengine.
*** Error code 1

Stop in /usr/ports/sysutils/cfengine.
*** Error code 1

Stop in /usr/ports/sysutils/cfengine.
Comment 1 Peter Pentchev 2001-04-14 14:15:41 UTC
As cfengine was recently updated to actually use db3, can this PR be closed?

G'luck,
Peter

-- 
I am jealous of the first word in this sentence.
Comment 2 Peter Pentchev freebsd_committer freebsd_triage 2001-04-14 14:16:02 UTC
State Changed
From-To: open->feedback

Awaiting feedback from the originator and the maintainer.
Comment 3 m_ilya 2001-04-16 10:21:03 UTC
PP> As cfengine was recently updated to actually use db3, can this PR
PP> be closed?

Probably yes. I'm sorry but I can't test it right now :( But if in future
I'll find a problem I can always open new PR :)

-- 
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| Ilya Martynov (http://martynov.org/)                                    |
| GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80  E4AE BE1A 53EB 323B DEE6 |
| AGAVA Software Company (http://www.agava.com/)                          |
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Comment 4 Peter Pentchev freebsd_committer freebsd_triage 2001-04-16 11:23:14 UTC
State Changed
From-To: feedback->closed

Originator agrees that the problem is probably fixed now that cfengine 
actually builds with db3.