In short: how do I get fink to build x86_64 binaries?

In long:
I'm attempting to build php-5.2.6 on a core 2 duo macbook pro.
My strategy is to use fink for managing extensions, and build php
manually from source, and use the default installation of apache2.

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

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

so, i'm guessing i need to build a fat version, or at least a x86_64
version of php.  When I attempt to build a x86_64 version of php, by
'export CFLAGS="-arch x86_64' before running './configure' and 'make',
during linking I get a lot of errors about undefined symbols, probably
one for each imported function because as far as I can tell none of
the fink libraries are built for x86_64.

I have configured fink to build from source, and not to download
binaries.  I've run 'export CFLAGS="-arch x86_64"' before installing
anything from fink, but as far as i can tell only i386 versions are
built.

So, how do I get fink to build x86_64 binaries?

-- 
-- Matthew Peltzer
-- [EMAIL PROTECTED]

-------------------------------------------------------------------------
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