Thanks for this! Will investigate.

Elliott A. Johnson wrote:
> Yeah I was getting that problem.  It seems that the autoconf looks for 
> postgresql libpq-fe.h headers as follows:
> 
>   AC_CHECK_HEADERS(pgsql/libpq-fe.h)
> 
> on line 426 of configure.ac.  For gentoo the headers are under 
> /usr/include/libpq-fe.h, so it would be nice to have a way to specify the 
> path to libpq-fe.h in a --with-libpq-fe option of something.
> 
> After working past the postgresql headers issue, the b3 build that I just 
> tried blows up when trying to build cf.know:
> 
> make[2]: Entering directory 
> `/home/elliott/source/archive/cfengine-3.0.0b3/src'
> /bin/sh ../libtool --tag=CC   --mode=link gcc -g -O2 -Wreturn-type 
> -Wmissing-prototypes -Wuninitialized -pthread -g -O2 -I/usr/include 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -pthread -g -O2 -I/usr/include 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -L/usr/lib -L/usr/lib    -o 
> cf-know cfknow.o graph.o ontology.o  -ldb -L/usr/lib -lcrypto libpromises.la  
> -lnss_nis -lpthread -lgvc -lpq -lrt -lpcre -lm  -L../pub -lcfpub
> gcc -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -pthread -g -O2 
> -I/usr/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -g -O2 
> -I/usr/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -o cf-know cfknow.o 
> graph.o ontology.o  -L/usr/lib -ldb -lcrypto ./.libs/libpromises.a 
> -L/home/elliott/source/archive/cfengine-3.0.0b3/pub -lnss_nis -lpthread 
> /usr/lib/libgvc.so /usr/lib/libgraph.so /usr/lib/libcdt.so 
> /usr/lib/libpathplan.so /usr/lib/libexpat.so /usr/lib/libltdl.so -ldl -lpq 
> -lrt /usr/lib/libpcre.so -lz -lbz2 -lm -lcfpub
> cfknow.o: In function `ShowHtmlResults':
> /home/elliott/source/archive/cfengine-3.0.0b3/src/cfknow.c:2096: undefined 
> reference to `CanonifyName'
> cfknow.o: In function `ShowAssociationsLTM':
> /home/elliott/source/archive/cfengine-3.0.0b3/src/cfknow.c:1203: undefined 
> reference to `CanonifyName'
> /home/elliott/source/archive/cfengine-3.0.0b3/src/cfknow.c:1232: undefined 
> reference to `CanonifyName'
> /home/elliott/source/archive/cfengine-3.0.0b3/src/cfknow.c:1234: undefined 
> reference to `CanonifyName'
> cfknow.o: In function `Name2Id':
> /home/elliott/source/archive/cfengine-3.0.0b3/src/cfknow.c:1961: undefined 
> reference to `CanonifyName'
> cfknow.o:/home/elliott/source/archive/cfengine-3.0.0b3/src/cfknow.c:1573: 
> more undefined references to `CanonifyName' follow
> .....
> 
> With about 2500 more lines of undefined references.
> 
> I've attached the full output with this email.
> 
> --
> elliott
> 
> ----- "Walter Franzini" <[EMAIL PROTECTED]> wrote:
>> On Debian etch with gcc 4.1.2 compilation fails with the following
>> error:
>>
>> ------------------------------------------------------------------------
>> /bin/bash ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
>>  -I/usr/include  -pthread  -g -O2 -Wreturn-type -Wmissing-prototypes
>> -Wuninitialized -pthread -g -O2  -D_LARGEFILE_SOURCE
>> -D_FILE_OFFSET_BITS=64   -pthread -g -O2  -D_LARGEFILE_SOURCE
>> -D_FILE_OFFSET_BITS=64 -MT cf_sql.lo -MD -MP -MF .deps/cf_sql.Tpo -c
>> -o cf_sql.lo cf_sql.c
>>  gcc -DHAVE_CONFIG_H -I. -I/usr/include -pthread -g -O2 -Wreturn-type
>> -Wmissing-prototypes -Wuninitialized -pthread -g -O2
>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -g -O2
>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MT cf_sql.lo -MD -MP -MF
>> .deps/cf_sql.Tpo -c cf_sql.c -o cf_sql.o
>> cf_sql.c: In function 'CfConnectDB':
>> cf_sql.c:104: error: 'CfdbConn' has no member named 'pq_conn'
>> cf_sql.c:106: error: 'CfdbConn' has no member named 'pq_conn'
>> cf_sql.c:106: error: 'CONNECTION_BAD' undeclared (first use in this
>> function)
>> cf_sql.c:106: error: (Each undeclared identifier is reported only
>> once
>> cf_sql.c:106: error: for each function it appears in.)
>> cf_sql.c:108: error: 'CfdbConn' has no member named 'pq_conn'
>> cf_sql.c: In function 'CfCloseDB':
>> cf_sql.c:143: error: 'CfdbConn' has no member named 'pq_conn'
>> cf_sql.c: In function 'CfNewQueryDB':
>> cf_sql.c:211: error: 'CfdbConn' has no member named 'pq_res'
>> cf_sql.c:211: error: 'CfdbConn' has no member named 'pq_conn'
>> cf_sql.c:213: error: 'CfdbConn' has no member named 'pq_res'
>> cf_sql.c:213: error: 'PGRES_COMMAND_OK' undeclared (first use in this
>> function)
>> cf_sql.c:213: error: 'CfdbConn' has no member named 'pq_res'
>> cf_sql.c:213: error: 'PGRES_TUPLES_OK' undeclared (first use in this
>> function)
>> cf_sql.c:215: error: 'CfdbConn' has no member named 'pq_conn'
>> cf_sql.c:220: error: 'CfdbConn' has no member named 'pq_res'
>> cf_sql.c:221: error: 'CfdbConn' has no member named 'pq_res'
>> cf_sql.c: In function 'CfFetchRow':
>> cf_sql.c:286: error: 'CfdbConn' has no member named 'pq_res'
>> cf_sql.c:286: warning: assignment makes pointer from integer without a
>> cast
>> cf_sql.c: In function 'CfDeleteQuery':
>> cf_sql.c:332: error: 'CfdbConn' has no member named 'pq_res'
>> make[2]: *** [cf_sql.lo] Error 1
>> make[2]: Leaving directory `/home/frawa0/src/cfengine-3.0.0b3/src'
>> make[1]: *** [all] Error 2
>> make[1]: Leaving directory `/home/frawa0/src/cfengine-3.0.0b3/src'
>> make: *** [all-recursive] Error 1
>> ------------------------------------------------------------------------
>>
>> -- 
>> Walter Franzini
>> http://aegis.stepbuild.org/
>>
>> PGP Public key ID: 1024D/CB3FEB43
>> Key fingerprint  : FA26 C33B CAFF 7848 EFEB  7327 96AA 2D57 CB3F EB43
>> Key server       : http://www.keyserver.net
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Bug-cfengine mailing list
>> Bug-cfengine@cfengine.org
>> https://cfengine.org/mailman/listinfo/bug-cfengine

-- 


Mark Burgess

Web: http://www.iu.hio.no/~mark
Tlf: +47 22453272
_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to