Matthew Peltzer wrote:
> In short: how do I get fink to build x86_64 binaries?

Short answer: You don't, unless the package is specifically made for this.

> In long:
> I'm attempting to build php-5.2.6 on a core 2 duo macbook pro.

Same system here (at least, same machine, on 10.5.5; which MacOSX 
version do you have installed?)

> My strategy is to use fink for managing extensions, and build php
> manually from source, and use the default installation of apache2.

Not sure if I can help, but I have two remarks.

> I am able to get a php build linked to fink installed libraries, but
> httpd complains to /var/log/system.log on 'apachectl graceful':
> 
> org.apache.httpd[27595]: httpd: Syntax error on line 115 of /private/
> etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/libphp5.so
> into server: dlopen(/usr/libexec/a
> pache2/libphp5.so, 10): no suitable image found.  Did
> find:\n\t/usr/libexec/apache2/libphp5.so: mach-o
> , but wrong architecture

This is not a fink-installed library. This comes with OSX, and it is 
updated regularly with security updates and system updates. The version 
I have here was installed by the 10.5.5 system update.

> 'file /usr/libexec/apache2/libphp5.so' reports:
> /usr/libexec/apache2/libphp5.so: Mach-O bundle i386

I get

file /usr/libexec/apache2/libphp5.so
/usr/libexec/apache2/libphp5.so: Mach-O universal binary with 4 
architectures
/usr/libexec/apache2/libphp5.so (for architecture ppc7400):     Mach-O 
bundle ppc
/usr/libexec/apache2/libphp5.so (for architecture ppc64):       Mach-O 64-bit 
bundle ppc64
/usr/libexec/apache2/libphp5.so (for architecture i386):        Mach-O bundle 
i386
/usr/libexec/apache2/libphp5.so (for architecture x86_64):      Mach-O 64-bit 
bundle x86_64

It seems to me you want to reinstall your latest system update.

-- 
Martin


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to