Re: [PHP4BETA] PHP on OpenBSD 2.5+

From: Date: Tue, 12 Oct 1999 05:25:41 +0000
Subject: Re: [PHP4BETA] PHP on OpenBSD 2.5+
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-5495@lists.php.net to get a copy of this message
OpenBSD is just about to release 2.6. You're thinking about FreeBSD perhaps, it's up to 3.3. I don't really understand enough about how to automake stuff works (still trying to learn this stuff), so I don't really know where the appropriate place to put it is. As I don't have access to a FreeBSD or a NetBSD box, I can't test their configurations of dlopen() so this might not be just an openBSD issue. ahp ----- Original Message ----- From: Andi Gutmans <andi@zend.com> To: Adam H. Pendleton <apendleton@vgsinc.com>; <php4beta@lists.php.net> Sent: Tuesday, October 12, 1999 01:20 Subject: Re: [PHP4BETA] PHP on OpenBSD 2.5+ > 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/ > > -- > PHP 4 Beta

« previous php.version4 (#5495) next »