Project

General

Profile

Bug #4989

PL/php won't compile with threaded PHP library.

Added by Alexey Klyukin over 17 years ago. Updated about 17 years ago.

Status:
Closed
Priority:
High
Assignee:
Alexey Klyukin
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
fixed

Description

If underlaying PHP library is built with --enable-maintainer-zts configure option, PL/php won't compile with the following error messages:

alexk@katana:~/devel/plphp/repo/trunk$ make
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -g -fpic -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -I/usr/local/php5/include/php/ext/date/lib -g -I. -I/usr/local/pgsql/include/server -I/usr/local/pgsql/include/internal -D_GNU_SOURCE   -c -o plphp.o plphp.c -MMD -MP -MF .deps/plphp.Po
plphp.c:291: error: syntax error before â,â token
plphp.c: In function âplphp_initâ:
plphp.c:372: error: âtsrm_lsâ undeclared (first use in this function)
plphp.c:372: error: (Each undeclared identifier is reported only once
plphp.c:372: error: for each function it appears in.)
plphp.c: In function âplphp_call_handlerâ:
plphp.c:510: error: âtsrm_lsâ undeclared (first use in this function)
plphp.c: In function âplphp_validatorâ:
plphp.c:628: error: âtsrm_lsâ undeclared (first use in this function)
plphp.c: In function âplphp_compile_functionâ:
plphp.c:1383: error: âtsrm_lsâ undeclared (first use in this function)
plphp.c: In function âplphp_call_php_funcâ:
plphp.c:1570: error: âtsrm_lsâ undeclared (first use in this function)
plphp.c: In function âplphp_call_php_trigâ:
plphp.c:1620: error: âtsrm_lsâ undeclared (first use in this function)
make: *** [plphp.o] Error 1
#1

Updated by Alexey Klyukin about 17 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

It it possible to compile it now, but the backend segfaults on loading the library even before calling functions from plphp.so.

Also available in: Atom PDF