It seems that libtool is broken. I have no idea why this is happening

M

Jo Rhett wrote:
> 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.
> 
> 

-- 
Mark Burgess

-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway

Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to