NYCPHP Meetup

NYPHP.org

[nycphp-talk] Request from Germany

Hans Zaunere lists at zaunere.com
Tue Jun 28 10:12:35 EDT 2005


Guten tag,

> I'm not sure if I'm at the right place to ask, but one of my PHP UG
> Colleagues -- Aaron Wormus .. here in Frankfurt (Germany) suggested to
> me that your group is using a 64bit machine and maybe encountered the
> same problem as I have.
> 
> If I'm completely wrong - I say sorry - but I would appreciate a hint to
> whom to write...

You're right on...

> The problem:
> I try on a 64bit SuSE 9.3 to compile PHP5 --with-oci8-instant-client
> support. Oracle doesn't provide 64bit version of the instant client.
> 
> Therefor the compilation fails because of incompatibilities even after
> some modifications in the oracle files (see php.net/oic.8 annotations).
> My idea was to compile php as 32bit binarie by providing
> 
> export CC='gcc -m32'
> 
> to the build process. But with these parameter the other extsenions (the
> one based on libxml2 for example) doesn't work any more.
> 
> I work for 4 days on this issue and I'm quite frustrated.
> 
> BTW the compilation with the Oracle Client from a Database install
> doen't work either with 64bit even if I'm using the 64bit Version of
> Oracle 9 (i.e. --with-oci8).

Well, this is a tough problem.  The original 64bit problem I had was trying to get PHP to compile on a box (either Fedora or SuSE) that had *only* 64 bit libs (/usr/lib64 and /lib64).  PHP 5's ./configure had /lib and /usr/lib hardwired.  The only solution is to use PHP 5.1 (right now, beta 2).  Which version are you using?

Mixing 32bit and 64bit libraries is asking for trouble.  Try version 5.1 of PHP with the 64bit Oracle libs.  When compiling, you need to supply --with-libdir=lib64

And an important gotcha:  if you have both 32bit and 64bit libraries installed on a system, PHP will default to using the 32 bit libs (/lib and /usr/lib), resulting in what's basically a 32bit build.  You need to use the new --with-libdir to force a 64bit build.

And, this all of course assumes a 32/64 hybrid system (like Opteron) and not something like Itanium.

> I'm thankful for every hint and suggestion.

No problem.

> All the best from Germany

And the best from NY.


---
Hans Zaunere
President, Founder

New York PHP
http://www.nyphp.org

AMP Technology
Supporting Apache, MySQL and PHP







More information about the talk mailing list