Looks like you perhaps have postgres libs without postgres header
files. Check your packages and I'll see if the code needs adapting to
detect this.

Walter Franzini 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
> ------------------------------------------------------------------------
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Bug-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/bug-cfengine

-- 


Mark Burgess

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

Reply via email to