HPUX 64-bit apache/php/oracle
| From: | Brad Crowder | Date: | Wed, 19 Jul 2000 23:54:24 +0000 |
| Subject: | HPUX 64-bit apache/php/oracle | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-25166@lists.php.net to get a copy of this message | ||
FWIW,
HPUX 11.0 64-bit, apache 1.3.12 64-bit, oracle 8.1.6 64-bit, HP compiler,
various tools from porting center.
configure used:
CFLAGS="+DA2.0w -Ae" ./configure --prefix=/opt/php4 --with-mysql=no
\
--with-apxs=/opt/apache/bin/apxs --with-oci8=/opt/oracle/product/8.1.6
Couple of things.
0) hacked up apache to build 64-bit HPUX.
1) on HP-UX 64-bit, checks for the crypt function puke unless
unistd.h is included, so I modified ext/standard/config.m4 to include it if
the platform supports it (diffs at end)
2) modified ext/oci8/config.m4 to check for existence of
$OCI8_DIR/lib64, and use that as the lib path if found (this is bad,
prevents from doing a 32-bit build on the same machine. I'd love
suggestions on a better way to do this) (diffs included for amusement
purposes).
3) Whacked ltconfig to generate .so instead of .sl so apxs wouldn't
complain.
It's working fine, but i'd like to help to get this to build
out-of-the-cvs-box on either 32 or 64-bit with a configure-time switch. Any
suggestions?
Earl
*** ext/standard/config.m4 Wed Jul 19 09:19:40 2000
--- ext/standard/config.m4.new Wed Jul 19 16:19:33 2000
***************
*** 11,17 ****
--- 11,20 ----
AC_TRY_RUN([
#if HAVE_CRYPT_H
#include <crypt.h>
+ #if HAVE_UNISTD_H
+ #include <unistd.h>
#endif
+ #endif
main() {
#if HAVE_CRYPT
***************
*** 38,43 ****
--- 41,49 ----
AC_TRY_RUN([
#if HAVE_CRYPT_H
#include <crypt.h>
+ #if HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif
#endif
main() {
------------------------------------------
*** ext/oci8/config.m4 Thu Jun 22 17:46:04 2000
--- ext/oci8/config.m4.new Wed Jul 19 10:52:21 2000
***************
*** 5,10 ****
--- 5,12 ----
if test -f "$OCI8_DIR/orainst/unix.rgs"; then
OCI8_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | sed
's/[
][ ]*
/:/g' | cut -d: -f 6 | cut -c 2-4`
test -z "$OCI8_VERSION" && OCI8_VERSION=7.3
+ elif test -f $OCI8_DIR/lib64/libclntsh.s?.8.0; then
+ OCI8_VERSION=8.1-64
elif test -f $OCI8_DIR/lib/libclntsh.s?.8.0; then
OCI8_VERSION=8.1
elif test -f $OCI8_DIR/lib/libclntsh.s?.1.0; then
***************
*** 51,57 ****
AC_ADD_INCLUDE($OCI8_DIR/plsql/public)
fi
! if test -f "$OCI8_DIR/lib/sysliblist"; then
PHP_EVAL_LIBLINE(
cat $OCI8_DIR/lib/sysliblist, OCI8_SYSLIB)
elif test -f "$OCI8_DIR/rdbms/lib/sysliblist"; then
PHP_EVAL_LIBLINE(cat $OCI8_DIR/rdbms/lib/sysliblist, OCI8_SYSLIB)
--- 53,61 ----
AC_ADD_INCLUDE($OCI8_DIR/plsql/public)
fi
! if test -f "$OCI8_DIR/lib64/sysliblist"; then
! PHP_EVAL_LIBLINE(cat $OCI8_DIR/lib64/sysliblist, OCI8_SYSLIB)
! elif test -f "$OCI8_DIR/lib/sysliblist"; then
PHP_EVAL_LIBLINE(cat $OCI8_DIR/lib/sysliblist, OCI8_SYSLIB)
elif test -f "$OCI8_DIR/rdbms/lib/sysliblist"; then
PHP_EVAL_LIBLINE(cat $OCI8_DIR/rdbms/lib/sysliblist, OCI8_SYSLIB)
***************
*** 66,71 ****
--- 70,78 ----
AC_ADD_LIBRARY_WITH_PATH(clntsh, $OCI8_DIR/lib,
OCI8_SHARED_LIBADD)
;;
+ 8.1-64)
+ AC_ADD_LIBRARY_WITH_PATH(clntsh, $OCI8_DIR/lib64,
OCI8_SHARED_LIBADD)
+ ;;
8.1)
AC_ADD_LIBRARY_WITH_PATH(clntsh, $OCI8_DIR/lib,
OCI8_SHARED_LIBADD)
;;
---------------------------