From owner-freebsd-ports Mon Mar 26 7:30: 8 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6BC7037B719 for ; Mon, 26 Mar 2001 07:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2QFU1704502; Mon, 26 Mar 2001 07:30:01 -0800 (PST) (envelope-from gnats) Received: from unity.agava.ru (unity.agava.ru [213.59.3.227]) by hub.freebsd.org (Postfix) with ESMTP id 2FB4B37B71B for ; Mon, 26 Mar 2001 07:28:12 -0800 (PST) (envelope-from ilya@martynov.org) Received: from relay2.agava.net.ru (unknown [193.125.142.2]) by unity.agava.ru (Postfix) with ESMTP id 900E127E97A for ; Mon, 26 Mar 2001 19:28:04 +0400 (MSD) Received: from gw.office.agava.ru (2.oivt.mipt.ru [193.125.142.2]) by relay2.agava.net.ru (Postfix) with ESMTP id 37EB243496 for ; Mon, 26 Mar 2001 19:26:59 +0400 (MSD) Received: from juil.domain (juil.domain [192.168.1.50]) by gw.office.agava.ru (Postfix) with ESMTP id 04D8C5EA4 for ; Mon, 26 Mar 2001 19:26:59 +0400 (MSD) Received: by juil.domain (Postfix, from userid 1001) id 6072E6AE; Mon, 26 Mar 2001 19:26:24 +0400 (MSD) Message-Id: <20010326152624.6072E6AE@juil.domain> Date: Mon, 26 Mar 2001 19:26:24 +0400 (MSD) From: ilya@martynov.org Reply-To: ilya@martynov.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/26110: Can't build port sysutils/cfengine with db3 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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 +# 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