- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: PHP compilation error on HP-UX11 64bit
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2002 10:59 PM
06-17-2002 10:59 PM
PHP compilation error on HP-UX11 64bit
installed, I receive the following error
-------------------------------------------------------------------------
Making all in main
gcc -I. -I/ora04/php-4.2.1/main -I/ora04/php-4.2.1/main -I/ora04/php-4.2.1 -
I/ora04/php-4.2.1/Zend -I/ora04/php-4.2.1/ext/mysql/libm
ysql -I/ora04/php-4.2.1/ext/xml/expat -I/ora04/php-4.2.1/TSRM -g -O2 -c
main.c && touch main.lo
In file included from php_network.h:37,
from /ora04/php-4.2.1/ext/standard/fsock.h:32,
from /ora04/php-4.2.1/ext/standard/php_standard.h:43,
from main.c:52:
/usr/include/sys/socket.h:199: conflicting types for `socklen_t'
php.h:114: previous declaration of `socklen_t'
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:484: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:486: parse error before "bsize_t"
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
-----------------------------------------------------------
Has anyone experienced the same error? It looks like same environment
variable definition differs...
Any help will be appreciated.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2002 11:11 PM
06-17-2002 11:11 PM
Re: PHP compilation error on HP-UX11 64bit
I will try compiling on a server here (with various compilers) but I cant find it - where did you download php 4.2.1 from ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2002 11:20 PM
06-17-2002 11:20 PM
Re: PHP compilation error on HP-UX11 64bit
I had exactly the same error when trying to compile perl modules with gcc.
The core of the problem is that gcc is not supported on HPUX 11i (www.gnu.org). But, there is a workaround:
http://gcc.gnu.org/ml/gcc-bugs/2001-09/msg00139.html
Try solution 2 (the one thqt solved my problem).
Hope this helps,
Rik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2002 12:19 AM
06-18-2002 12:19 AM
Re: PHP compilation error on HP-UX11 64bit
In file included from php_network.h:37,
from /ora04/php-4.2.1/ext/standard/fsock.h:32,
from /ora04/php-4.2.1/ext/standard/php_standard.h:43,
from main.c:52:
/usr/include/sys/socket.h:199: conflicting types for `socklen_t'
php.h:114: previous declaration of `socklen_t'
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2002 12:30 AM
06-18-2002 12:30 AM
Re: PHP compilation error on HP-UX11 64bit
Could you try to add the compile flag _HPUX_SOURCE?
As is
gcc .... -D_HPUX_SOURCE ...
Bye,
Rik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2002 12:59 AM
06-18-2002 12:59 AM
Re: PHP compilation error on HP-UX11 64bit
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DHPUX11 -DMOD_SSL=208103 -D
MOD_PERL -DUSE_PERL_SSI -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE -DUINT32_MAX_BROKEN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_
BITS=64 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -DCHROOT -I../TSRM -g -O2 -prefer-pic -c -o zend_constants.lo `test
-f zend_constants.c || echo './'`zend_constants.c
Unless Im totally off-track...
Do you have any other thoughts?
Thank you.
BTW, php 4.2.1 is from php.net
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 12:11 AM
06-19-2002 12:11 AM
Re: PHP compilation error on HP-UX11 64bit
On my side it works, my config is :
apache 1.3.19, php 4.2.1, compile with gcc 2.95.2,
OS is HPUX11.00, 64 bit,
options for configure are :
./configure --with-oci8=... --with-mysql=....
--with-apache=... --enable-track-vars --with-gd=/opt/gd --with-jpeg-dir=/opt/jpeg --with-ldap=...
I compiled php in static mode..
few warnings, but compilation is OK and it works...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 01:34 AM
06-19-2002 01:34 AM
Re: PHP compilation error on HP-UX11 64bit
I have also found links saying that gcc dont compile well on 11i. Now trying to install newer version of gcc - 3.1, hope this helps.
Keep u posted. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 02:49 AM
06-19-2002 02:49 AM
Re: PHP compilation error on HP-UX11 64bit
/usr/include/sys/socket.h:199: conflicting types for `socklen_t'
php.h:114: previous declaration of `socklen_t'.
Does anyone has compiled version with oci8 and oracle?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2002 12:41 AM
06-20-2002 12:41 AM
Re: PHP compilation error on HP-UX11 64bit
Can you try with an older gcc if gcc is the problem.
In theory, there's a binary compatibility with older version.
Of course you'll not use features of the 64 bits (direct access to high memory). But to use it you need to make your own programs ! I'm not sure you want to create your own php version for 64 bits.
If you want I can compile a version of httpd for you just to check if it's work on your environnement. All what I need are the options PHP and apache (path and so on). I used to do it between 64 bit and 32 bit hosts and it works.
warning, httpd binary is about 8 Mbyte !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2002 02:07 AM
06-20-2002 02:07 AM
Re: PHP compilation error on HP-UX11 64bit
config as follows:
--with-apxs=/opt/apache/bin/apxs --enable-track-vars
--with-oci8=/oracle/product/8.1.7
--with-oracle=/oracle/product/8.1.7 --enable-sigchild
would greatly appreciate it!
BTW, 8Mb is not a problem - we've put 15Mb limit! dima@klasco.lt is the email. THANK U!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 12:22 AM
06-24-2002 12:22 AM
Re: PHP compilation error on HP-UX11 64bit
Hope it's not to late and you are still alive !
I never succeded to compile with apxs, then I created a static mode with APache.
I changed in fact --with-apxs with --with_apache=
Options I used to create httpd are :
./configure "--with-layout=Apache" "--prefix=/home/http" "--sysconfdir=/home/http/etc" "--disable-module=all" "--enable-module=so" "--activate-module=src/modules/php4/libphp4.a"
Don't forget to copy php.ini in /usr/local/lib and place the good options.
I didn't try entirely the httpd because my filesystems aren't the same as yours. but httpd -l and httpd-v works !.
Don't forget also to configure your httpd.conf .
I send to your address the httpd file !