php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22856 zlib make error
Submitted: 2003-03-24 13:54 UTC Modified: 2003-04-09 16:54 UTC
From: mv24 at canada dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.1 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mv24 at canada dot com
New email:
PHP Version: OS:

 

 [2003-03-24 13:54 UTC] mv24 at canada dot com
apache_1.3.27
php-4.3.2RC1 
zlib-1.1.4

Configured with the following options without warnigs:

./configure \
--with-apache=/usr/local/apache_1.3.27 \
--with-config-file-path=/usr/local/apache/conf \
--with-mysql=/usr/local/mysql \
--enable-track-vars \
--enable-trans-sid \
--enable-bcmath \
--with-curl=/usr/local/curl \
--with-curlwrappers \
--with-pdflib \
--enable-static-pdflib \
--enable-gd-imgstrttf \
--with-gd=/usr/local/gd \
--with-tiff-dir=/usr/local/tiff--enable-gd-native-ttf \
--with-freetype-dir=/usr/local/include/freetype2 \
--with-jpeg-dir=/usr/local/jpeg-6b \
--with-png-dir=/usr/local/libpng \
--with-zlib


Make result (in full):

[root@smarty php]# make
gcc  -Iext/zlib/ -I/usr/local/php/ext/zlib/ -DPHP_ATOM_INC -I/usr/local/php/include -I/usr/local/php/main -I/usr/local/php -I/usr/local/php/Zend -I/usr/local/curl/include -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/gd/ -I/usr/local/mysql/include -I/usr/local/php/ext/xml/expat  -I/usr/local/php/TSRM  -g -O2  -c /usr/local/php/ext/zlib/zlib.c -o ext/zlib/zlib.o  && echo > ext/zlib/zlib.lo
In file included from /usr/local/php/ext/standard/php_standard.h:21,
                 from /usr/local/php/ext/zlib/zlib.c:48:
/usr/local/php/ext/standard/basic_functions.h:126: #error Need type which holds 32 bits
make: *** [ext/zlib/zlib.lo] Error 1

The same error was reproduced on php-4.3.0, php-4.3.2RC1, php-4.5.

Tried the following:
1.	Configure ?with-zlib and/or ?with-zlib-dir=/dir/zlib in combinations
2.	rm ?f config.cache; ./buildconf; make distclean;



Another try:
./configure \
--with-apache=/usr/local/apache_1.3.27 \
--with-config-file-path=/usr/local/apache/conf \
--with-mysql=/usr/local/mysql \
--enable-track-vars \
--enable-trans-sid \
--enable-bcmath \
--with-curl=/usr/local/curl \
--with-curlwrappers

Configures without errors or warnings.

Make stops by error again:

In file included from /usr/local/php/ext/standard/md5.h:48,
                 from /usr/local/php/ext/session/session.c:40:
/usr/local/php/ext/standard/basic_functions.h:126: #error Need type which holds 32 bits
make: *** [ext/session/session.lo] Error 1

config.log did not revile any problems

What it could be? Thank you for your time and effort.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-27 05:05 UTC] mv24 at canada dot com
After I upgraded gcc (2.96) to version 3.2;
changed PHP configure options  as follows:
./configure \
--with-apache=/usr/local/apache_1.3.27 \
--with-config-file-path=/usr/local/apache/conf \
--with-mysql=/usr/local/mysql \
--with-zlib \
--enable-track-vars \
--enable-trans-sid \
--enable-bcmath \
--with-pdflib \
--enable-static-pdflib \
--with-gd \
--enable-gd-imgstrttf \
--with-tiff-dir=/usr/local/tiff--enable-gd-native-ttf \
--with-freetype-dir=/usr/local/include/freetype2 \
--with-jpeg-dir=/usr/local/jpeg-6b \
--with-png-dir=/usr/local/libpng

it allowed me to procead with make and install the latest PHP-STABLE with Apache. 

However PHP configure option --with-curl gives multiple warnings on PHP "make":
--------------------------------------------------------
/usr/bin/ld: warning: libdl.so.1, needed by /usr/local/
lib/libcurl.so, may conflict with libdl.so.2
/usr/bin/ld: warning: libc.so.5, needed by /lib/libdl.s
o.1, may conflict with libc.so.6
/usr/lib/libc5-compat/libc.so.5: the `getwd' function i
s dangerous and should not be used.
/usr/lib/libc5-compat/libc.so.5: the `gets' function is
 dangerous and should not be used.
/usr/lib/libc5-compat/libc.so.5: the use of `tempnam' i
s dangerous, better use `mkstemp'
/usr/lib/libc5-compat/libc.so.5: the use of `tmpnam' is
 dangerous, better use `mkstemp'
/usr/lib/libc5-compat/libc.so.5: the use of `mktemp' is
 dangerous, better use `mkstemp'
/usr/lib/libc5-compat/libc.so.5: the `getpw' function i
s dangerous and should not be used.
/usr/lib/libc5-compat/libc.so.5: warning: `siggetmask'
is obsolete; `sigprocmask' is best
/usr/lib/libc5-compat/libc.so.5: the `llseek' function
may be dangerous; use `lseek64' instead.
------------------------------------------------------------

PHP "make install" ends in error:
---------------------------------------------------------
Installing PEAR environment:      /usr/local/lib/php/
make[1]: *** [install-pear-installer] Segmentation fault (core dumped)
make: *** [install-pear] Error 2
----------------------------------------------------------
 [2003-04-07 18:43 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2003-04-09 12:03 UTC] mv24 at canada dot com
Still receive the error during "make install":

[root@smarty php4-STABLE]# make install
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing PHP SAPI module
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment:      /usr/local/lib/php/
make[1]: *** [install-pear-installer] Segmentation fault (core dumped)
make: *** [install-pear] Error 2
 [2003-04-09 16:54 UTC] sniper@php.net
can not reprocude, not enough info, etc.

 [2003-08-08 06:11 UTC] julik at mac dot com
I was building PHP with zlib and a bunch of other 
modules on RedHat 8.0 and encountered the same problem. 
It happens when you build once, and then try to build 
again running
./configure
make

with any subset of modules if it includes zlib

I was examining the problem and it solved after 
removing all cached linker files with

make clean
./configure
make

Hope this helps
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 21:01:32 2024 UTC