note 18596 added to install.hpux
| From: | james at nospam dot hp dot com | Date: | Tue, 29 Jan 2002 00:46:31 +0000 |
| Subject: | note 18596 added to install.hpux | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-25944@lists.php.net to get a copy of this message | ||
To build for HP-UX 10.X/11.X (and some other UNIX variants) with '--enable-sockets',
you'll get an error about 'u_int' being redefined in /usr/include/netinet/in.h and
ext/sockets/sockets.c will fail to compile. The problem is this line from main/php_config.h:
#define in_addr_t u_int
The above define is a problem because HP-UX (and some other UNIXs) typedef in_addr_t. A good
workaround is to replace this define in main/php_config.h with the lines from the HP-UX 11.X
netinet/in.h header file (which will work for 10.X as well):
#ifndef _IN_ADDR_T
#define _IN_ADDR_T
#ifdef __LP64__
typedef unsigned int in_addr_t;
#else
typedef unsigned long in_addr_t;
#endif
#endif
--
http://www.php.net/manual/en/install.hpux.php
http://master.php.net/manage/user-notes.php?action=edit+18596
http://master.php.net/manage/user-notes.php?action=delete+18596
http://master.php.net/manage/user-notes.php?action=reject+18596