Re: PHP 4.0.x HP-UX 11 iPlanet 4.1
| From: | James Greenhalgh | Date: | Thu, 12 Oct 2000 21:00:02 +0000 |
| Subject: | Re: PHP 4.0.x HP-UX 11 iPlanet 4.1 | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-297@lists.php.net to get a copy of this message | ||
I know this one ;-)
If you look in /usr/include/sys, both pthread.h and unistd.h define
pthread_atfork(). Unfortunately, they do it inconsistantly:
sys/pthread.h: extern int pthread_atfork(void (*prepare)(void), void
(*parent)(void), void (*child)(void));
sys/unistd.h: extern int pthread_atfork(void (*prepare)(), void
(*parent)(),void (*child)());
They both arguably mean the same thing, but the compiler doesn't think so.
You'll have to hack the source a bit, copy unistd.h to my_unistd.h, change
it to match the pthread version, and include my_unistd.h instead.
Alternatively you might choose to just edit the include file directly -
that was my personal solution.
james
--
James Greenhalgh - Unix Systems Architect
FIGHT THE RIP BILL! www.stand.org.uk Your privacy depends on it!
BOYCOTT THE PUMPS! www.boycott-the-pumps.com
* The views in this message are not those of Powernet International *
On Thu, 12 Oct 2000, Scott A Winkle wrote:
> Hi All:
>
> Please help if you can. I am trying to compile PHP 4.0.x (Tried every
> version in the 4.0 to no avail...) under HP-UX 11 using --with-nsapi
>
> It configures just fine. When I try to make, here are the results:
>
> www8# make
> Making all in Zend
> cd .. \
> && CONFIG_FILES=Zend/Makefile CONFIG_HEADERS= /bin/sh
> ./config.status
> creating Zend/Makefile
> /bin/sh ../libtool --silent --mode=compile c++ -DHAVE_CONFIG_H -I.
> -I. -
> I.. -D_REENTRANT -DXML_BYTE_ORDER=21 -I../TSRM -DTHREAD=1 -c
> zend-scanner-cc
> .cc
> In file included from /usr/include/unistd.h:11,
> from zend-scanner-cc.cc:2592:
> /usr/include/sys/unistd.h:188: declaration of C function `int
> pthread_atfork(voi
> d (*)(...), void (*)(...), void (*)(...))' conflicts with
> /usr/include/sys/pthread.h:440: previous declaration `int
> pthread_atfork(void (*
> )(), void (*)(), void (*)())' here
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
> Stop.
>
>
> Anyone have ideas? I am using the newest gcc (2.95.2)
>
>
> Thanks,
>
>
> Scott Winkle
> swinkle@wittenberg.edu
> Web Team / Wittenberg University Computing Center
> Phone: (937) 327-7478
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net
> For additional commands, e-mail: php-install-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>