Package: libapache-mod-auth-pgsql Version: 0.9.12-7 Severity: serious Tags: patch
libapache-mod-auth-pgsql fails to build because it cannot find libpq-fe.h, which has moved to /usr/include/postgresql/8.0: > cc -c -I/usr/include/postgresql -I/usr/include/apache-1.3 -I -g -O2 -DEAPI > -fPIC mod_auth_pgsql.c -o mod_auth_pgsql.o > mod_auth_pgsql.c:98:22: error: libpq-fe.h: No such file or directory > mod_auth_pgsql.c: In function 'auth_pg_md5': > mod_auth_pgsql.c:420: warning: pointer targets in passing argument 2 of > 'ap_MD5Update' differ in signedness > mod_auth_pgsql.c: In function 'auth_pg_md5_base64': > mod_auth_pgsql.c:450: warning: pointer targets in passing argument 2 of > 'ap_MD5Update' differ in signedness > mod_auth_pgsql.c: In function 'do_pg_query': > mod_auth_pgsql.c:534: error: 'PGconn' undeclared (first use in this function) > mod_auth_pgsql.c:534: error: (Each undeclared identifier is reported only once > mod_auth_pgsql.c:534: error: for each function it appears in.) > mod_auth_pgsql.c:534: error: 'pg_conn' undeclared (first use in this function) > mod_auth_pgsql.c:535: error: 'PGresult' undeclared (first use in this > function) > mod_auth_pgsql.c:535: error: 'pg_result' undeclared (first use in this > function) > mod_auth_pgsql.c:547: error: 'CONNECTION_OK' undeclared (first use in this > function) > mod_auth_pgsql.c:564: error: 'PGRES_EMPTY_QUERY' undeclared (first use in > this function) > mod_auth_pgsql.c:571: error: 'PGRES_TUPLES_OK' undeclared (first use in this > function) > mod_auth_pgsql.c:582: warning: assignment makes pointer from integer without > a cast The attached patch makes it look in the new location. -- Matt
diff -u libapache-mod-auth-pgsql-0.9.12/debian/rules libapache-mod-auth-pgsql-0.9.12/debian/rules --- libapache-mod-auth-pgsql-0.9.12/debian/rules +++ libapache-mod-auth-pgsql-0.9.12/debian/rules @@ -12,9 +12,9 @@ build: build-stamp build-stamp: dh_testdir - PG_DIR=/usr/include/postgresql PG_LIB=/usr/lib ./configure \ + PG_DIR=/usr/include/postgresql/8.0 PG_LIB=/usr/lib ./configure \ --with-pgsql=yes --with-apxs=/usr/bin/apxs - $(MAKE) CPPFLAGS=-I/usr/include/postgresql + $(MAKE) CPPFLAGS=-I/usr/include/postgresql/8.0 touch build-stamp install: build
signature.asc
Description: Digital signature