Re: Re: [PHP3] Compiling 4.0b2 or 3.0.12 on OpenBSD?
| From: | Sascha Schumann | Date: | Sat, 09 Oct 1999 17:06:38 +0000 |
| Subject: | Re: Re: [PHP3] Compiling 4.0b2 or 3.0.12 on OpenBSD? | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-11653@lists.php.net to get a copy of this message | ||
On Sat, Oct 09, 1999 at 12:58:28PM -0400, Dan Moschuk wrote:
>
> [cc:'d to -dev]
>
> | Has anyone managed to compile either 3.0.12 or 4.0b2 on an OpenBSD machine
> | yet?
> |
> | The two machines in question are...
> |
> | OpenBSD spirit 2.6 SPIRIT#2 i386
> | OpenBSD rinoa 2.6 RINOA#1 i386
> |
> | 4.0b2 fails archiving the object files, 3.0.12 fails with the following:
>
> I've managed to get 4.0b2 to get pretty close...
>
> The first problem was in OpenBSD, RTLD_NOW is not defined. A quick edit
> to libzend/config.unix.h to change it to DL_NOW fixed up the compiliation
> errors.
I've committed an appropiate fix for libzend.
> Unfortunately, we didn't make it past the linking stage.
>
> ld -Bforcearchive -Bshareable -o libphp4.so ./mod_php4.o libmodphp4-so.a
> -L/home/dan/php-4.0b2/ext/pcre/pcrelib -lpcre -L/home/dan/php-4.0b2/regex -lregex
> -L/usr/local/lib/mysql -lmysqlclient -Llibzend -lzend -Lext -lphpext
> -L/home/dan/php-4.0b2/ext/pcre/pcrelib -lpcre -L/home/dan/php-4.0b2/regex -lregex
> -L/usr/local/lib/mysql -lmysqlclient -lm -lresolv -R/usr/local/lib/mysql
> ld: ext/libphpext.a(apache___.SYMDEF): bad magic
> apxs:Break: Command failed with rc=65536
> *** Error code 1
Please try the current CVS. All libtool-supported platforms
should be able to build PHP 4 as a shared library.
http://www.php.net/version4/cvs.php
--
Regards,
Sascha Schumann
Consultant