On Sat, Nov 8, 2008 at 1:18 AM, Martin Costabel <[EMAIL PROTECTED]> wrote: > 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.
is there an easy way to alter the packages to allow 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?) 10.5.5 > >> 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. right.. that's one that I built. the other architectures won't link due to undefined externals from all the fink libs. I need to roll my own php binary because the default one does not have all the extensions I need. I think in the past I've stripped httpd down to just i386 to get around this, but I've noticed it runs much slower when I do this. maybe this is a question for apache/php lists, but is there a better way I could be building php so that httpd running as x86_64 can load php as i386? -- -- 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
