Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Aug 2001 12:25:19 +0930
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        Wesley Biggs <BiggsW@kpe.com>
Cc:        "'freebsd-java@freebsd.org'" <freebsd-java@FreeBSD.ORG>
Subject:   Re: Java2 + PHP + FreeBSD
Message-ID:  <20010804122518.A86946@misty.eyesbeyond.com>
In-Reply-To: <5797F8B1EFF6D411845F00A0C9D634FE4AB267@LAE01>; from BiggsW@kpe.com on Fri, Aug 03, 2001 at 06:07:01PM -0700
References:  <5797F8B1EFF6D411845F00A0C9D634FE4AB267@LAE01>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 03, 2001 at 06:07:01PM -0700, Wesley Biggs wrote:
> Does anyone have experience using the PHP servlet to support PHP pages
> through a Java servlet engine?
> 
> I need to use Java 2, so I'm running linux-jdk1.3.1 rather than the native
> 1.1.8 port.  The issue seems to be that when the PHP servlet attempts to
> load in libphp4.so (using System.loadLibrary()), the ABIs don't match (Linux
> java process vs. FreeBSD shared library).
> 
> Any suggestions for how I can work around this?  I'm not a FreeBSD Linux
> emulation expert, so maybe if there's a way to make the binaries more
> compatible, that would solve my problem.
> 
> Incidentally, I tried compiling libphp4.so on a Linux box and moving it
> over, then used brandelf to label it as Linux, but that gave me the same ABI
> incompatibility error on loadLibrary().

You should be able to load a libphp4.so compiled on a Linux box with the
Linux JDK.  Note that it may be depending on other shared libraries that
aren't present though.

IMO your best solution is to simply use the 1.2.2 native JDK port, unless
you desperately need something from 1.3.1.

-- 
Greg Lewis                            Email : glewis@eyesbeyond.com
Eyes Beyond                           Phone : (801) 765 1887
Information Technology                Web   : http://www.eyesbeyond.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010804122518.A86946>