Package: flow-tools
Version: 0.68-2
Severity: serious
Tags: patch

flow-tools fails to build because it cannot find libpq-fe.h:

> source='flow-export.c' object='flow_export-flow-export.o' libtool=no \
> depfile='.deps/flow_export-flow-export.Po' 
> tmpdepfile='.deps/flow_export-flow-export.TPo' \
> depmode=gcc3 /bin/sh ../depcomp \
> gcc -I./../lib -L./../lib  -I. -I. -I../lib    -L/usr/lib/mysql 
> -I/usr/include/mysql -L/usr/lib -I/usr/include/postgresql -g -Wall -c -o 
> flow_export-flow-export.o `test -f 'flow-export.c' || echo './'`flow-export.c
> flow-export.c:65:22: error: libpq-fe.h: No such file or directory
> flow-export.c:69:1: warning: "DB_DEFAULT_DBPORT" redefined
> flow-export.c:56:1: warning: this is the location of the previous definition
> flow-export.c: In function 'format3':
> flow-export.c:700: warning: assignment makes integer from pointer without a 
> cast
> flow-export.c: In function 'format5':
> flow-export.c:872: error: 'PGconn' undeclared (first use in this function)
> flow-export.c:872: error: (Each undeclared identifier is reported only once
> flow-export.c:872: error: for each function it appears in.)
> flow-export.c:872: error: 'conn' undeclared (first use in this function)
> flow-export.c:873: error: 'PGresult' undeclared (first use in this function)
> flow-export.c:873: error: 'res' undeclared (first use in this function)
> flow-export.c:913: warning: implicit declaration of function 'PQsetdbLogin'
> flow-export.c:915: warning: implicit declaration of function 'PQstatus'
> flow-export.c:915: error: 'CONNECTION_BAD' undeclared (first use in this 
> function)
> flow-export.c:916: warning: implicit declaration of function 'PQerrorMessage'
> flow-export.c:937: warning: implicit declaration of function 'PQexec'
> flow-export.c:938: warning: implicit declaration of function 'PQresultStatus'
> flow-export.c:938: error: 'PGRES_COMMAND_OK' undeclared (first use in this 
> function)
> flow-export.c:939: warning: implicit declaration of function 'PQclear'
> flow-export.c:950: warning: implicit declaration of function 'PQfinish'

The attached patch fixes this problem.

-- 
Matt
diff -u flow-tools-0.68/debian/patches/02_postgre 
flow-tools-0.68/debian/patches/02_postgre
--- flow-tools-0.68/debian/patches/02_postgre
+++ flow-tools-0.68/debian/patches/02_postgre
@@ -38,7 +38,7 @@
  if test $ac_cv_lib_pq_PQsetdbLogin = yes; then
  
 -      PGSQLCFLAGS="-L$WHERE_PGSQL/lib -I$WHERE_PGSQL/include/pgsql"
-+      PGSQLCFLAGS="-L$WHERE_PGSQL/lib -I$WHERE_PGSQL/include/postgresql"
++      PGSQLCFLAGS="-L$WHERE_PGSQL/lib -I$WHERE_PGSQL/include/postgresql/8.0"
        PGSQLLIB="-lpq"
        cat >>confdefs.h <<\_ACEOF
  #define HAVE_PGSQL 1

Attachment: signature.asc
Description: Digital signature

Reply via email to