php-install Digest 24 Mar 2003 23:01:03 -0000 Issue 1304

Topics (messages 10397 through 10400):

Problems with PHP 4.3.1 and RH 7.3
        10397 by: Juvenal A. Silva Jr.

Problems running configure (locks up)
        10398 by: Eli White

Make error on 4.3.1. zlib  to blame?
        10399 by: Amaro Cordo

File Download instead of script execution
        10400 by: Tom Tsongas

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi,

I had installed the PHP 4.1.2 that I modified slightly from the RH 7.3 SRPM
to include informix (as a module) and dbase support (not active in the
original RPM from RH 7.3). It worked OK for a long time, but I found some
bugs in the Informix handle of blobs, and when I got to post a bug on
php.net, I saw there that I can only post bugs for the latest version of PHP
(4.3.1 at the moment).

I grab this version from php.net (tarball) and generate another RPM (based
on the previous one) with all the modules that I need. It compiled fine
(even a patch that I created to compile the informix module cleanly wasn't
needed), but at execution time I got the following error on error_log when I
call session_start():

[Mon Mar 24 00:54:23 2003] [notice] child pid 24016 exit signal Segmentation
fault (11)
[Mon Mar 24 00:54:26 2003] [notice] child pid 24013 exit signal Segmentation
fault (11)

Here is my configure directive:

./configure
        --prefix=/usr \
        --with-config-file-path=/etc \
        --disable-debug \
        --enable-pic \
        --disable-rpath \
        --enable-safe-mode \
        --enable-inline-optimization \
        --enable-memory-limit \
        --enable-zend-multibyte \
        --enable-shared \
        --enable-libgcc \
        --enable-sigchild \
        --with-tsrm-pthreads \
        --with-layout=GNU \
        --enable-dbase \
        --enable-bcmath \
        --enable-debugger \
        --enable-exif \
        --enable-ftp \
        --enable-magic-quotes \
        --enable-safe-mode \
        --enable-sockets \
        --enable-sysvmsg \
        --enable-sysvsem \
        --enable-sysvshm \
        --enable-discard-path \
        --enable-track-vars \
        --enable-trans-sid \
        --enable-yp \
        --enable-wddx \
        --enable-bcmath \
        --enable-shmop \
        --enable-versioning \
        --enable-calendar \
        --enable-dbx \
        --disable-dio \
        --enable-mbstring \
        --enable-mbregex \
        --enable-thread-safety \
        --with-openssl \
        --with-qtdom \
        --with-readline \
        --with-zlib \
        --with-bz2 \
        --with-db2 \
        --with-db3 \
        --with-flatfile \
        --with-curl \
        --with-dom=/usr \
        --with-exec-dir=/usr/bin \
        --with-freetype-dir=/usr \
        --with-png-dir=/usr \
        --with-gd=/usr \
        --enable-gd-native-ttf \
        --with-ttf \
        --with-gdbm \
        --with-gettext \
        --with-ncurses \
        --with-gmp \
        --with-iconv \
        --with-jpeg-dir=/usr \
        --with-mm \
        --with-png \
        --with-pspell \
        --with-regex=system \
        --with-xml \
        --with-expat-dir=/usr \
        --with-imap=shared \
        --with-imap-ssl \
        --with-kerberos=/usr/kerberos \
        --with-ldap=shared \
        --with-snmp=shared \
        --enable-ucd-snmp-hack \
        --with-mysql=shared,/usr \
        --with-pgsql=shared \
        --with-unixODBC=shared \
        --with-informix=shared,/opt/informix \
        --with-apxs=/usr/sbin/apxs

And here is my kernel and glibc info:
Linux <machine-name> 2.4.18-4SGI_XFS_1.1 #1 Tue May 28 08:42:00 CDT 2002
i686 unknown (stock SRPM from RH 7.3 with SGI XFS patches applied by me
manually)
glibc-2.2.5-40 (stock RPM RH 7.3)

Can any of you have any idea of what was wrong...???

Thanks for your wise support. Any additional information that you need to
help me, just ask.

Cheers,

Juvenal A. Silva Jr.
TR&D - Technology, Research & Development



--- End Message ---
--- Begin Message --- Hey there, I've run PHP for a long while now, and just went to compile 4.3.1 and had a problem.

I'm running on Solaris 2.8, and unpacked php 4.3.1, ran the following configure, and got the following ouput:

> configure --with-apxs=/var/html/apache/bin/apxs --with-gd --with-jpeg-d=/opt/X11R5 --with-ttf --enable-gd-native-ttf --with-mysql --with-config-file-path=/var/html/apache/php --disable-posix --disable-session --disable-ctype --prefix=/var/html/apache/php

loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for working sed... sed
checking host system type... sparc-sun-solaris2.8

At that point, it just completely hangs. Nothing else happens, it just sits there. Never had this problem before with previous versions. Any thoughts?

Eli


--- End Message ---
--- Begin Message ---
From: mv24 at canada dot com

Operating system: Linux

PHP version: 4.3.1

PHP Bug Type: Compile Failure

Bug description: zlib make error

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):

[EMAIL PROTECTED] 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 bug report at http://bugs.php.net/?id=22856&edit=2



--- End Message ---
--- Begin Message --- Hey folks.

I just loaded the latest Apache (v.2.0.44) and PHP (v.4.3.1) onto my SUN box running Solaris 8. Apache starts just fine but when I attempt to launch a PHP script, I get a file download dialog box instead of having the script execute.

I had Apache 1.3.20 and PHP 4.0.4 running on several systems at my disposal and never encountered this issue before. I thought that maybe it was the MIME setting but I have that set correctly from what I can see:

AddType application/x-httpd-php .php

I saw some previous threads regarding the LoadModule issues but those were Windows installs. I compiled and configured PHP to load as a static module.

Any ideas folks?
- Tom Tsongas


--- End Message ---

Reply via email to