php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31199 u_int32_t doesn't exist
Submitted: 2004-12-20 14:02 UTC Modified: 2004-12-21 11:04 UTC
From: laurent dot faillie at st dot com Assigned: derick (profile)
Status: Closed Package: Compile Failure
PHP Version: 4.3.10 OS: HPUX 10.20
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: laurent dot faillie at st dot com
New email:
PHP Version: OS:

 

 [2004-12-20 14:02 UTC] laurent dot faillie at st dot com
Description:
------------
Compilation problem found on HP-UX 10.20 (I haven't tested w/ more recent HP-UX).

* php-4.3.10/Zend/zend_strtod.c fails to compile as u_int32_t isn't defined anywere.

The workaround is to add

#ifdef __hpux__
#include <model.h>
typedef uint32_t        u_int32_t;
#endif

somewhere in the begining of zend_strtod.c.




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-20 16:17 UTC] laurent dot faillie at st dot com
It fails also later w/ another problem :

/bin/sh /projets/depots/php-4.3.10/libtool --silent --preserve-dup-deps --mode=compile gcc  -I/usr/local/apache2/include  -D_XOPEN_SOURCE_EXTENDED -D_REENTRANT -I/usr/local/apache2/include   -I/usr/local/apache2/include  -Isapi/apache2handler/ -I/projets/depots/php-4.3.10/sapi/apache2handler/ -DPHP_ATOM_INC -I/projets/depots/php-4.3.10/include -I/projets/depots/php-4.3.10/main -I/projets/depots/php-4.3.10 -I/projets/depots/php-4.3.10/Zend -I/usr/local/include -I/usr/local/pgsql/include -I/projets/depots/php-4.3.10/ext/xml/expat  -I/projets/depots/php-4.3.10/TSRM  -g -O2  -prefer-pic -c /projets/depots/php-4.3.10/sapi/apache2handler/sapi_apache2.c -o sapi/apache2handler/sapi_apache2.lo 
In file included from /projets/depots/php-4.3.10/main/php_network.h:58,
                 from /projets/depots/php-4.3.10/ext/standard/fsock.h:38,
                 from /projets/depots/php-4.3.10/ext/standard/php_standard.h:44,
                 from /projets/depots/php-4.3.10/sapi/apache2handler/sapi_apache2.c:33:
/usr/include/netinet/in.h:96: error: conflicting types for `u_int'
/opt/TWWfsw/gcc33/lib/gcc-lib/hppa2.0-hp-hpux10.20/3.3/include/sys/types.h:302: error: previous declaration of `u_int'
gmake: *** [sapi/apache2handler/sapi_apache2.lo] Error 1

This time, the cause is 
#define in_addr_t u_int
in /projets/depots/php-4.3.10/main/php_config.h
=> I think it's a problem w/ configure scripts.

As soon as this 2 bugs are corrected, PHP 4.3.10 compiles successfully under HP-UX 10.20

Bye

Laurent
 [2004-12-21 11:04 UTC] laurent dot faillie at st dot com
Ok, no compilation problem under HP-UX 10.20 w/ this new archive :-)

So I close the ticket.

Thanks

Laurent
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 08:01:29 2024 UTC