#22076 [Com]: PHP 4.3.0 crashes on OpenBSD 3.2 sparc64 when zlib is linked
| From: | php at gotontheinter dot net | Date: | Mon, 21 Jul 2003 18:24:44 +0000 |
| Subject: | #22076 [Com]: PHP 4.3.0 crashes on OpenBSD 3.2 sparc64 when zlib is linked | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-44437@lists.php.net to get a copy of this message | ||
ID: 22076
Comment by: php at gotontheinter dot net
Reported By: slash at peereboom dot us
Status: No Feedback
Bug Type: Zlib Related
Operating System: OpenBSD 3.2 SPARC64
PHP Version: 4.3.0
New Comment:
latest stable doesn't build for me on obsd 3.2/sparc64:
/bin/sh /opt/php4-STABLE-200307211730/libtool --silent
--preserve-dup-deps --mode=compile gcc -mv8 -mcpu=v9 -m64 -Iext/iconv/
-I/opt/php4-STABLE-200307211730/ext/iconv/ -DPHP_ATOM_INC
-I/opt/php4-STABLE-200307211730/include
-I/opt/php4-STABLE-200307211730/main -I/opt/php4-STABLE-200307211730
-I/opt/php4-STABLE-200307211730/Zend -I/usr/local/include
-I/usr/local//include -I/opt/php4-STABLE-200307211730/ext/xml/expat
-I/opt/php4-STABLE-200307211730/TSRM -g -O2 -prefer-pic -c
/opt/php4-STABLE-200307211730/ext/iconv/iconv.c -o ext/iconv/iconv.lo
/opt/php4-STABLE-200307211730/ext/iconv/iconv.c:43: `#include' expects
"FILENAME" or <FILENAME>
Config.nice has (direct from the 4.2.3 ports):
#
# Created by configure
CC='gcc -mv8 -mcpu=v9 -m64' \
'./configure' \
'--with-apxs=/usr/sbin/apxs' \
'--enable-cli' \
'--with-iconv=/usr/local/' \
'--with-gettext=/usr/local' \
'--enable-dio' \
'--without-pear' \
'--enable-bcmath' \
'--enable-session' \
'--enable-trans-sid' \
'--enable-calendar' \
'--enable-ctype' \
'--enable-ftp' \
'--with-pcre-regex' \
'--with-posix' \
'--enable-sockets' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--enable-yp' \
"$@"
Previous Comments:
------------------------------------------------------------------------
[2003-05-09 07:30:16] 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-05-01 20:27:40] 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-02-05 16:27:30] slash at peereboom dot us
[root@sparc64 php-4.3.0]# cat config.nice
#! /bin/sh
#
# Created by configure
'./configure' \
'--with-zlib' \
'--enable-debug' \
"$@"
[root@sparc64 php-4.3.0]# l /usr/lib/libz*
-r--r--r-- 1 root bin 83270 Oct 3 20:28 /usr/lib/libz.a
-r--r--r-- 1 root bin 67266 Oct 3 20:28 /usr/lib/libz.so.1.4
-r--r--r-- 1 root bin 91040 Oct 3 20:28 /usr/lib/libz_p.a
-r--r--r-- 1 root bin 82904 Oct 3 20:28 /usr/lib/libz_pic.a
I also downloaded zlib 1.1.4 and compiled it myself with the same
results.
------------------------------------------------------------------------
[2003-02-05 16:17:09] msopacua@php.net
What's the zlib version on this box and could you cat/paste
config.nice?
------------------------------------------------------------------------
[2003-02-05 13:47:24] slash at peereboom dot us
vi a.c
int main()
{
char *a, *b;
a = 0;
b = 0;
strcpy(a, b);
return 0;
}
[root@sparc64 root]# gcc -o a a.c -g
[root@sparc64 root]# ./a
Segmentation fault (core dumped)
[root@sparc64 root]# gdb -c a.core a
GNU gdb 4.16.1
Copyright 1996 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "sparc64-unknown-openbsd3.2"...
Core was generated by `a'.
Program terminated with signal 11, Segmentation fault.
#0 0x403855b0 in ?? ()
(gdb) bt
#0 0x403855b0 in ?? ()
#1 0x1004dc in ___start ()
(gdb)
Seems to work...
I used OpenBSD's 3.2 native compiler and debugger.
[root@sparc64 root]# gcc -v
Reading specs from
/usr/lib/gcc-lib/sparc64-unknown-openbsd3.2/2.95.3/specs
gcc version 2.95.3 20010125 (prerelease)
[root@sparc64 root]# gdb -v
GNU gdb 4.16.1
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22076
--
Edit this bug report at http://bugs.php.net/?id=22076&edit=1