Subject: Can't build databases/php-pdo_pgsql
To: None <tech-pkg@netbsd.org>
From: Konrad Neuwirth <konrad@mailathome.or.at>
List: tech-pkg
Date: 02/07/2006 18:35:59
Hello,

 I'm currently rebuilding one of our webservers, and facing a problem: 

[amelie:/usr/pkgsrc/databases/php-pdo_pgsql]# make
===> Checking for vulnerabilities in php-pdo_pgsql-5.1.2.1.0.1nb1
===> Configuring for php-pdo_pgsql-5.1.2.1.0.1nb1
configure: WARNING: If you wanted to set the --build type, don't use
--host.
    If a cross compiler is detected then cross compile mode will be used.
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/pkg/bin/gsed
checking for i386--netbsdelf-gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking whether cc understands -c and -o together... yes
checking if compiler supports -R... yes
checking build system type... i386-unknown-netbsdelf2.99.11
checking host system type... i386--netbsdelf
checking target system type... i386--netbsdelf
checking for PHP prefix... /usr/pkg
checking for PHP includes... -I/usr/pkg/include/php
-I/usr/pkg/include/php/main -I/usr/pkg/include/php/TSRM
-I/usr/pkg/include/php/Zend -I/usr/pkg/include/php/ext
checking for PHP extension directory... /usr/pkg/lib/php/20040412
checking for PHP installed headers prefix... /usr/pkg/include/php
checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if you want to
regenerate PHP parsers.
checking for gawk... /usr/bin/awk
checking if /usr/bin/awk is broken... no
checking for PostgreSQL support for PDO... yes, shared
checking for pg_config... /usr/pkg/bin/pg_config
checking for openssl dependencies... yes
gnome-config: not found
checking for PQescapeString in -lpq... yes
checking for PQsetnonblocking in -lpq... yes
checking for PQcmdTuples in -lpq... yes
checking for PQoidValue in -lpq... yes
checking for PQclientEncoding in -lpq... yes
checking for PQparameterStatus in -lpq... yes
checking for PQprotocolVersion in -lpq... yes
checking for PQtransactionStatus in -lpq... yes
checking for PQunescapeBytea in -lpq... yes
checking for PQExecParams in -lpq... no
checking for PQresultErrorField in -lpq... yes
checking for pg_encoding_to_char in -lpq... yes
checking for PQprepare in -lpq... yes
checking for PDO includes... checking for PDO
includes... /usr/pkg/include/php/ext
configure: error:
You've configured extension pdo_pgsql, which depends on extension pdo,
but you've either not enabled pdo, or have disabled it.

*** Error code 1

Alas, php-pdo is installed:

[amelie:/usr/pkgsrc/databases/php-pdo_pgsql]# pkg_info | grep php
php-5.1.2           PHP Hypertext Preprocessor version 5
ap-php-5.1.2nb5     Apache (apache13) module for PHP5
php-pdo-5.1.2.1.0.2nb1 PHP extension for PHP Data Objects (base)

And the appropriate directory does contain stuff: 

[amelie:/usr/pkgsrc/databases/php-pdo_pgsql]# ls /usr/pkg/include/php/ext
date      hash      libxml    pcre      pdo       session   standard  xml

I'm stymied.

What is going wrong? 

Thank you,
 Konrad