I'm working on building the port for FreeBSD but cfengine isn't  
compiling at all.  With basic "--prefix=/test/local" options it fails  
with the following.  Changing the prefix line to say "--with- 
berkeleydb=/usr/local" appears to have solved the problem but it's  
unclear why this is necessary.

/usr/local/bin/bash ../libtool --tag=CC    --mode=compile gcc - 
DHAVE_CONFIG_H -I.  -I/usr/include   -D_THREAD_SAFE -g -O2 -Wreturn- 
type -Wmissing-prototypes -Wuninitialized -fPIC -D_THREAD_SAFE  -g - 
O2   -D_THREAD_SAFE -DBUILDTIN_GCC_THREAD -D_THREAD_SAFE  -g -O2   - 
D_THREAD_SAFE -DBUILDTIN_GCC_THREAD -MT env_context.lo -MD -MP - 
MF .deps/env_context.Tpo -c -o env_context.lo env_context.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/include - 
D_THREAD_SAFE -g -O2 -Wreturn-type -Wmissing-prototypes - 
Wuninitialized -fPIC -D_THREAD_SAFE -g -O2 -D_THREAD_SAFE - 
DBUILDTIN_GCC_THREAD -D_THREAD_SAFE -g -O2 -D_THREAD_SAFE - 
DBUILDTIN_GCC_THREAD -MT env_context.lo -MD -MP -MF .deps/ 
env_context.Tpo -c env_context.c -o env_context.o
env_context.c: In function `NewPersistentContext':
env_context.c:110: error: structure has no member named `open'
env_context.c:110: error: `DB_CREATE' undeclared (first use in this  
function)
env_context.c:110: error: (Each undeclared identifier is reported only  
once
env_context.c:110: error: for each function it appears in.)
env_context.c:126: warning: passing arg 4 of pointer to function makes  
integer from pointer without a cast
env_context.c:126: error: too many arguments to function
env_context.c:128: error: `DB_NOTFOUND' undeclared (first use in this  
function)
env_context.c:130: error: structure has no member named `err'
env_context.c:131: error: too many arguments to function
env_context.c:145: error: too many arguments to function
env_context.c:168: warning: passing arg 4 of pointer to function makes  
integer from pointer without a cast
env_context.c:168: error: too many arguments to function
env_context.c:177: error: too many arguments to function
env_context.c: In function `DeletePersistentContext':
env_context.c:198: error: structure has no member named `open'
env_context.c:198: error: `DB_CREATE' undeclared (first use in this  
function)
env_context.c:215: warning: passing arg 3 of pointer to function makes  
integer from pointer without a cast
env_context.c:215: error: too many arguments to function
env_context.c:221: error: too many arguments to function
env_context.c: In function `LoadPersistentContext':
env_context.c:230: error: `DBC' undeclared (first use in this function)
env_context.c:230: error: `dbcp' undeclared (first use in this function)
env_context.c:231: error: `DB_ENV' undeclared (first use in this  
function)
env_context.c:231: error: `dbenv' undeclared (first use in this  
function)
env_context.c:248: error: structure has no member named `open'
env_context.c:248: error: `DB_CREATE' undeclared (first use in this  
function)
env_context.c:254: error: too many arguments to function
env_context.c:260: error: structure has no member named `cursor'
env_context.c:263: error: structure has no member named `err'
env_context.c:274: error: `DB_NEXT' undeclared (first use in this  
function)
env_context.c:283: warning: passing arg 3 of pointer to function makes  
integer from pointer without a cast
env_context.c:283: error: too many arguments to function
env_context.c:297: error: too many arguments to function
*** Error code 1

Stop in /d/usr/ports/sysutils/cfengine3/work/cfengine-3.0.1a6/src.
*** Error code 1

Stop in /d/usr/ports/sysutils/cfengine3/work/cfengine-3.0.1a6/src.
*** Error code 1

Stop in /d/usr/ports/sysutils/cfengine3/work/cfengine-3.0.1a6.


-- 
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source  
and other randomness


_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to