Компиляция PHP 4.3.11 + Zlib 1.2.2 + Apache 1.3.33 + GD 2.0.33 + MySQL 4.0.24

FEV

Guest
Компиляция PHP 4.3.11 + Zlib 1.2.2 + Apache 1.3.33 + GD 2.0.33 + MySQL 4.0.24

Заранее прошу прощения что часть поста будет на английском языке.
Надеюсь кто-то сможет мне помочь потому что на официальном сайте ПХП мне сказали =) что у меня кривые руки (тобиш я неправильно компилирую, что иммено не так делаю объяснить или намекнуть не удосужились, даже после моей просьбы, если нужно могу выложить ссылку на баг репорт данной проблемы).
Ну, а сейчас собственно проблема (в кратце, полное описание будет ниже):
Мне необходимо было обновить текущую версию пхп 4.3.10 на последнюю 4.3.11 вместе с обновлением Zlib библиотеки на 1.2.2.
Возникшие трудности: Непонятно откуда PHP 4.3.11 линкует старую zlib библиотеку 1.2.1 чего не должно быть совсем, причем это происходит только при определенных условиях.

А теперь более полное описание:

My Previous configuration:
Apache 1.3.33
PHP 4.3.10
Zlib 1.2.1
GD 2.0.33 or bundled version
MySQL 4.0.24

I want to update in my system
PHP 4.3.11
Zlib 1.2.2
And if possible GD 2.0.33 external library.

First i clear my system from old Zlib library (/usr/lib, /usr/local/lib, /usr/include, /usr/local/include )
and then compile zlib with static and shared libraries in /usr.
Now in my system: ldconfig -v said

libz.so.1 -> libz.so.1.2.2
and /usr/lib has

-rwxr-xr-x 1 root root 74672 Apr 25 23:35 libz.a
lrwxr-xr-x 1 root root 13 Apr 25 23:35 libz.so -> libz.so.1.2.2
lrwxr-xr-x 1 root root 13 Apr 25 23:35 libz.so.1 -> libz.so.1.2.2
-rwxr-xr-x 1 root root 71919 Apr 25 23:35 libz.so.1.2.2

/usr/include has headers source files Zlib 1.2.2.

Then i compile my ordinary configuration like this:

'./configure'
'--prefix=/usr/local/php-4.3.11'
'--with-config-file-path=/usr/local/php-4.3.11'
'--with-mysql=/usr/local/mysql'
'--with-mysql-sock=/usr/local/mysql/mysql.sock'
'--with-zlib=/usr'
'--with-gd' '--with-zlib-dir=/usr'
'--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr/local/libpng-1.2.8'
'--with-freetype-dir=/usr/local/freetype2'
'--with-ttf' '--enable-gd-native-ttf'
'--with-apache=/src/apache/apache_1.3.33'


In console php said
#/usr/local/php-4.3.11/bin/php -i

GD Support => enabled
GD Version => bundled (2.0.28 compatible)
FreeType Support => enabled
FreeType Linkage => with freetype
GIF Read Support => enabled
GIF Create Support => enabled
JPG Support => enabled
PNG Support => enabled
WBMP Support => enabled
XBM Support => enabled

ZLib Support => enabled
Compiled Version => 1.2.2
Linked Version => 1.2.2

BUT phpinfo() in Apache said:

GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

ZLib Support enabled
Compiled Version 1.2.2
Linked Version 1.2.1

It's looks very strange.

I have done many compilings and discovered this:
If i exclude GD parameters from configure (don't matter bundled version or external) i get:

'./configure'
'--prefix=/usr/local/php-4.3.11'
'--with-config-file-path=/usr/local/php-4.3.11'
'--with-mysql=/usr/local/mysql'
'--with-mysql-sock=/usr/local/mysql/mysql.sock'
'--with-zlib=/usr'
'--with-apache=/src/apache/apache_1.3.33'


console php said
#/usr/local/php-4.3.11/bin/php -i

ZLib Support => enabled
Compiled Version => 1.2.2
Linked Version => 1.2.2

AND phpinfo() in Apache said:

ZLib Support enabled
Compiled Version 1.2.2
Linked Version 1.2.2

Can u comment this ???
I don't know how to classify this. Bug? Error Compile? Something else???
Maybi this is Error of budled GD library with Zlib 1.2.1 library?
 
Сверху