php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33381 pgsql.c is missing an include line
Submitted: 2005-06-17 05:34 UTC Modified: 2005-07-07 07:01 UTC
From: david dot tulloh at infaze dot com dot au Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5CVS-2005-06-17 (dev) OS: linux
Private report: No CVE-ID: None
 [2005-06-17 05:34 UTC] david dot tulloh at infaze dot com dot au
Description:
------------
Compiling php5-200506170030 with pgsql gave the following errors during linking:

ext/pgsql/.libs/pgsql.o(.text+0xcb5): In function `zm_deactivate_pgsql':
/home/lod/Downloads/php5-200506170030/ext/pgsql/pgsql.c:563: undefined reference to `executor_globals'
ext/pgsql/.libs/pgsql.o(.text+0x1035): In function `php_pgsql_do_connect':
/home/lod/Downloads/php5-200506170030/ext/pgsql/pgsql.c:778: undefined reference to `executor_globals'
ext/pgsql/.libs/pgsql.o(.text+0x11dd):/home/lod/Downloads/php5-200506170030/ext/pgsql/pgsql.c:757: undefined reference to `executor_globals'
ext/pgsql/.libs/pgsql.o(.text+0x1240):/home/lod/Downloads/php5-200506170030/ext/pgsql/pgsql.c:752: undefined reference to `executor_globals'
ext/pgsql/.libs/pgsql.o(.text+0x1293):/home/lod/Downloads/php5-200506170030/ext/pgsql/pgsql.c:651: undefined reference to `executor_globals'
ext/pgsql/.libs/pgsql.o(.text+0x13cb):/home/lod/Downloads/php5-200506170030/ext/pgsql/pgsql.c:712: more undefined references to `executor_globals' follow
ext/pgsql/.libs/pgsql.o(.text+0x456e): In function `php_pgsql_fetch_hash':
/home/lod/Downloads/php5-200506170030/ext/pgsql/pgsql.c:1956: undefined reference to `core_globals'
ext/pgsql/.libs/pgsql.o(.text+0x6402): In function `zif_pg_lo_import':
/home/lod/Downloads/php5-200506170030/ext/pgsql/pgsql.c:2761: undefined reference to `core_globals'
ext/pgsql/.libs/pgsql.o(.text+0x66e6): In function `zif_pg_lo_export':
/home/lod/Downloads/php5-200506170030/ext/pgsql/pgsql.c:2859: undefined reference to `core_globals'
ext/pgsql/.libs/pgsql.o(.text+0xd57e): In function `php_pgsql_result2array':
/home/lod/Downloads/php5-200506170030/ext/pgsql/pgsql.c:5532: undefined reference to `core_globals'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


adding the line:
#include "Zend/zend_exceptions.h"
fixed the problem.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-17 14:24 UTC] tony2001@php.net
What was your ./configure line?
 [2005-06-25 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2005-07-07 07:01 UTC] david dot tulloh at infaze dot com dot au
fixed in CVS,
#include "zend_exceptions.h" added.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 11:01:33 2025 UTC