Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Mar 2001 19:26:24 +0400 (MSD)
From:      ilya@martynov.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/26110: Can't build port sysutils/cfengine with db3
Message-ID:  <20010326152624.6072E6AE@juil.domain>

next in thread | raw e-mail | index | archive | help

>Number:         26110
>Category:       ports
>Synopsis:       Can't build port sysutils/cfengine with db3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 26 07:30:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Ilya Martynov
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
AGAVA Software
>Environment:

FreeBSD 4.2-STABLE i386 with installed port database/db3

>Description:

If port database/db3 is installed then port sysutils/cfengine can't be
build.

>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.

>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:

--- 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
 
 /*******************************************************************/

With this patch it does compile.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010326152624.6072E6AE>