Project

General

Profile

Bug #4982

Error on executing "CREATE LANGUAGE plphp;" with PHP 5.1.1

Added by bford - over 18 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
High
Assignee:
Álvaro Herrera
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
fixed

Description

I have Debian GNU/Linux 3.1 with Apache 2.0.55 and PHP 5.1.1 - both built from source.

I have followed the installation instructions, but had to modify the Makefile a little. Now it looks like this:

# $Id: Makefile 25 2005-11-30 14:38:06Z alvherre $

MODULE_big = plphp
OBJS = plphp.o plphp_io.o plphp_spi.o
REGRESS = basic trigger
PG_CPPFLAGS = $(shell php-config --includes)
SHLIB_LINK = -lphp5 -L/usr/lib/apache2/modules -L/usr/local/apache2/modules

REGRESS_OPTS = --dbname=$(PL_TESTDB) --load-language=plphp
#REGRESS = base shared arrayret cargs cset ptrig strig pseudo pspi sspi arr_in bset
REGRESS = base shared trigger spi raise pseudo validator

PGXS = $(shell pg_config --pgxs)
include $(PGXS)

After those modifications 'make' and 'make install' went errorless. Same with both inserts in "pg_pltemplate". And then excuting "CREATE LANGUAGE plphp;" failed with the following message:

ERROR: could not load library "/usr/local/pgsql-8.1.0/lib/plphp.so": /usr/local/apache2/modules/libphp5.so: undefined symbol: apr_pool_cleanup_run

Also available in: Atom PDF