php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30869 compile freeze
Submitted: 2004-11-23 08:50 UTC Modified: 2004-12-17 15:20 UTC
From: touv at ouvaton dot org Assigned: derick (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.0.2 OS: HP-UX 11
Private report: No CVE-ID: None
 [2004-11-23 08:50 UTC] touv at ouvaton dot org
Description:
------------
When I try to compile PHP, cc freeze at this point :

% export CC=cc
% export CFLAGS="-O +DS2.0 +DA2.0W"
% ./configure --with-libxml-dir=/usr/local/libs/libxml2-2.6.9-64
(...)
% make
(...)
cc  -Iext/standard/ -I/tmp/php-5.0.2/ext/standard/ -DPHP_ATOM_INC -I/tmp/php-5.0.2/include -I/tmp/php-5.0.2/main -I/tmp/php-5.0.2 -I/tmp/php-5.0.2/Zend -I/usr/local/libs/libxml2-2.6.9-64/include/libxml2 -I/usr/local/libs/libiconv-1.9.1-64/include  -I/usr/include -I/usr/include/X11 -I/usr/contrib/include -I/usr/contrib/include/X11 -I/usr/local/libs/zlib-1.1.4-64/include -I/usr/local/libs/libxml2-2.6.9-64/include -I/tmp/php-5.0.2/TSRM  -w -O +DS2.0 +DA2.0W  -c /tmp/php-5.0.2/ext/standard/http_fopen_wrapper.c -o ext/standard/http_fopen_wrapper.o  && echo > ext/standard/http_fopen_wrapper.lo




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-16 12:51 UTC] sniper@php.net
Please try using this CVS snapshot:

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

And try without setting CFLAGS prior to running configure!

 [2004-12-17 09:30 UTC] touv at ouvaton dot org
I try with php5-STABLE-200412161530 version and I have the same problem. But if I replace this lines (around line 443 in http_fopen_wrapper.c) :
------------------------------------------
p = http_header_line;
while(*p) {
    while(*p == '\n' || *p == '\r')	{
       *p = '\0';
       p--;
       found_eol = 1;
   }
   if (found_eol)
      break;
   p++;
}
-----------------------------------------
by this lines :
-----------------------------------------
p = http_header_line;
while(*p) {
    while(*p == '\n' || *p == '\r')	{
       *p = '\0';
       p--;
       goto bughpux;
    }
    p++;
}
bughpux:
------------------------------------------------
It's work...


But after that  have a other compiling problem, in a other file ...
 [2004-12-17 11:58 UTC] touv at ouvaton dot org
So the other compiling problem is on zend_strtod.c, around line 140, I replace this line :
-------------------------------------------
#define ULong	u_int32_t
-------------------------------------------
by this line
-------------------------------------------
#define ULong	uint32_t
-------------------------------------------

And now php work 

% file /usr/local/libs/php5-test/bin/php
/usr/local/libs/php5-test/bin/php:     ELF-64 executable object file - PA-RISC 2.0 (LP64)
%
 [2004-12-17 12:02 UTC] derick@php.net
I've made some fuxes last night which where not in the snapshot yet, can you please retry the latest snapshot?
 [2004-12-17 14:48 UTC] touv at ouvaton dot org
I try with php5-STABLE-200412171130 version, and I only have the problem with http_fopen_wrapper.c
So the problem in zend_strtod.c is fixed ! Thanks
 [2004-12-17 15:20 UTC] derick@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Please open a new report for that (if you didn't already do that). Thanks!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 21:01:33 2025 UTC