Re: [PHP4BETA] PHP on OpenBSD 2.5+

From: Date: Tue, 12 Oct 1999 05:20:02 +0000
Subject: Re: [PHP4BETA] PHP on OpenBSD 2.5+
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-5494@lists.php.net to get a copy of this message
Isn't OpenBSD up to version 3.2 or something like that? Any idea if this is consistent with the latest versions of OpenBSD? Maybe this should go into the libtool/automake build process and not into the source code but I'll wait for one of the build junkies to say that they think. Andi At 12:59 AM 10/12/99 -0400, Adam H. Pendleton wrote:
I am compiling PHP4 on my OpenBSD box and I recieve the following error doing a make: zend_extensions.c: In function `zend_load_extension': zend_extensions.c:50: `RTLD_NOW' undeclared (first use in this function) zend_extensions.c:50: (Each undeclared identifier is reported only once zend_extensions.c:50: for each function it appears in.) RTLD_NOW is used by zend_load_extension in a dlopen() call. From the OpenBSD man page on dlopen(): "The second argument currently has no effect, but should be set to DL_LAZY for future compatibility." Therefore the second parameter, at least on OpenBSD machines, needs to be DL_LAZY. Perhpaps some code like this: # if !defined(RTLD_NOW) && defined(DL_LAZY) # define RTLD_NOW DL_LAZY # endif in zend_config.h.in. This of course must come AFTER the line: # if !define(RTLD_NOW) && defined(DL_LAZY) # define RTLD_NOW DL_NOW # endif Just tested this on my OpenBSD machine and it seems to have worked (at least I didn't get the error...:-) ahp -- PHP 4 Beta
--- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.version4 (#5494) next »