Re: [PHP3] Compiling 4.0b2 or 3.0.12 on OpenBSD?
| From: | Dan Moschuk | Date: | Sat, 09 Oct 1999 16:58:28 +0000 |
| Subject: | Re: [PHP3] Compiling 4.0b2 or 3.0.12 on OpenBSD? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-11650@lists.php.net to get a copy of this message | ||
[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.
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
Any ideas?
Thanks,
--
Dan Moschuk (TFreak!dan@freebsd.org)
"Try not. Do, or do not. There is no try."
-- Yoda