[php-src] Issue #14560: php is not configured with --with-pgsql option

From: Date: Thu, 13 Jun 2024 11:05:34 +0000
Subject: [php-src] Issue #14560: php is not configured with --with-pgsql option
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247089@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/14560 Author: kvelaro ### Description The following code: pgsql source ``` git clone https://github.com/postgres/postgres.git pg-src cd pg-src git checkout tags/REL_16_3 ./configure --prefix=/opt/pgsql make install clean ``` php-source ``` git clone https://github.com/php/php-src.git cd php-src git checkout tags/php-8.1.15 ./buildconf --force ./configure --disable-all \ --prefix=/opt/php81\ --exec-prefix=/opt/php81 \ --with-config-file-path=/opt/php81 \ --with-libdir=/opt/php81 \ --with-oci8=shared,instantclient,/opt/oracle/instantclient_21_13 \ --with-pdo-oci=instantclient,/opt/oracle/instantclient_21_13 \ --enable-bcmath \ --enable-ctype \ --enable-dom \ --enable-embed \ --enable-fd-setsize=999999 \ --enable-fileinfo \ --enable-filter \ --enable-ftp \ --enable-intl \ --enable-mbstring \ --enable-opcache \ --enable-pcntl \ --enable-pdo \ --enable-phar \ --enable-posix \ --enable-session \ --enable-simplexml \ --enable-sockets \ --enable-static \ --enable-tokenizer \ --enable-xml \ --enable-xmlreader \ --enable-xmlwriter \ --with-curl \ --with-gmp \ --with-iconv \ --with-libxml \ --with-openssl \ --with-pear \ --with-pgsql=/opt/pgsql \ --with-sodium \ --with-zip \ --with-zlib ``` pg_config ``` root@6f3036b311f5:/opt/php-src# /opt/pgsql/bin/pg_config BINDIR = /opt/pgsql/bin DOCDIR = /opt/pgsql/share/doc HTMLDIR = /opt/pgsql/share/doc INCLUDEDIR = /opt/pgsql/include PKGINCLUDEDIR = /opt/pgsql/include INCLUDEDIR-SERVER = /opt/pgsql/include/server LIBDIR = /opt/pgsql/lib PKGLIBDIR = /opt/pgsql/lib LOCALEDIR = /opt/pgsql/share/locale MANDIR = /opt/pgsql/share/man SHAREDIR = /opt/pgsql/share SYSCONFDIR = /opt/pgsql/etc PGXS = /opt/pgsql/lib/pgxs/src/makefiles/pgxs.mk CONFIGURE = '--prefix=/opt/pgsql' CC = gcc CPPFLAGS = -D_GNU_SOURCE CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -O2 CFLAGS_SL = -fPIC LDFLAGS = -Wl,--as-needed -Wl,-rpath,'/opt/pgsql/lib',--enable-new-dtags LDFLAGS_EX = LDFLAGS_SL = LIBS = -lpgcommon -lpgport -lz -lreadline -lm VERSION = PostgreSQL 16.3 ``` Resulted in this output: ``` checking for PQlibVersion in -lpq... no configure: error: Unable to build the PostgreSQL extension: at least libpq 9.1 is required ``` But I expected this output instead: ``` Everything went good, ready to compile and install ``` ### PHP Version 8.1.15 ### Operating System Ubuntu 22.04 under Docker

« previous php.bugs (#247089) next »