Hi All,

I have the following problem under Ubuntu 8.10 (intrepid).

I need tu use PHP with gd.so  pdo.so  pdo_pgsql.so  pgsql.so
libraries. I installed everything through apt-get, but PHP complained
something about PDO. After googleing, I found out that the built-in
PDO interferes with the libraries, and this article suggested to
recompile PHP. I did it so:
./configure --with-apxs2=/usr/bin/apxs2 --disable-pdo --disable-cgi
--with-zlib --with-gettext --with-config-file-path=/etc/php5/apache2/
--enable-mbstring
When I move libphp5.so to apache2 module dir, and restart apache, it
seems to work. However, PHP logs the following:

[30-Jan-2009 10:58:39] PHP Warning:  PHP Startup: Unable to load
dynamic library '/usr/lib/php5/20060613+lfs/pdo.so' -
/usr/lib/php5/20060613+lfs/pdo.so: undefined symbol: executor_globals
in Unknown on line 0
[30-Jan-2009 10:58:39] PHP Warning:  PHP Startup: Unable to load
dynamic library '/usr/lib/php5/20060613+lfs/gd.so' -
/usr/lib/php5/20060613+lfs/gd.so: undefined symbol: core_globals in
Unknown on line 0
[30-Jan-2009 10:58:39] PHP Warning:  PHP Startup: Unable to load
dynamic library '/usr/lib/php5/20060613+lfs/pgsql.so' -
/usr/lib/php5/20060613+lfs/pgsql.so: undefined symbol:
executor_globals in Unknown on line 0
[30-Jan-2009 10:58:39] PHP Warning:  PHP Startup: pdo_pgsql: Unable to
initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
 in Unknown on line 0

I understand only the last one.

Google didn't give any meaningful result for these messages, only some
7 year old ones for PHP4. I tried also with PHP 5.2.8 (Intrepid has
5.2.6, this source was my first try), same result.

What is wrong?
Thank you in advance.

My php.ini (it is read) without unnecessary module settings:

short_open_tag = On
asp_tags = Off
precision    =  12
y2k_compliance = On
output_buffering = Off
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func=
serialize_precision = 100
allow_call_time_pass_reference = On
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
disable_classes =
expose_php = On
max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend
parsing request data
memory_limit = 16M
error_reporting  =  E_ALL & ~E_NOTICE
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 0
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
error_log = /var/log/php5/php.log
variables_order = "EGPCS"
register_globals = Off
register_long_arrays = On
register_argc_argv = On
auto_globals_jit = On
post_max_size = 8M
magic_quotes_gpc = On
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
doc_root =
user_dir =
extension_dir = "/usr/lib/php5/20060613+lfs/"
enable_dl = Off
file_uploads = Off
upload_max_filesize = 2M
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
extension=gd.so
extension=pgsql.so
extension=pdo.so
extension=pdo_pgsql.so
SMTP = localhost
smtp_port = 25
sql.safe_mode = Off
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to