#22856 [NoF->Opn]: zlib make error

From: Date: Wed, 09 Apr 2003 17:03:28 +0000
Subject: #22856 [NoF->Opn]: zlib make error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37457@lists.php.net to get a copy of this message
 ID:               22856
 User updated by:  mv24 at canada dot com
 Reported By:      mv24 at canada dot com
-Status:           No Feedback
+Status:           Open
 Bug Type:         Compile Failure
 Operating System: Linux
 PHP Version:      4.3.1
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2003-04-07 18:43:06] 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-02 10:42:34] sniper@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



------------------------------------------------------------------------

[2003-03-27 05:05:09] 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-03-24 14:17:14] magnus@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



------------------------------------------------------------------------

[2003-03-24 13:54:45] 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.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22856&edit=1



Thread (8 messages)

« previous php.bugs (#37457) next »