vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Chris Ruprecht <chris@ruprecht.org> writes: > I am trying to build PG 8.3Beta4 for MacOS Leopard. > It works fine when using the default i386 architecture. However, this > is not an option as Apple, in their wisdom, have chosen to build > Apache as a 64-bit application and their PHP 5.2.4 module without PG > support as a Intel 32, Intel 64, PPC 32 and PPC 64 type module. For > those that don't know: Under MacOS, it is possible to build > executables that will run native on multiple architectures, all > contained in a single file - kind of weird, and pretty bloated. You're not going to have a lot of luck building PG for those four architectures from a single build run --- you really need a different pg_config.h for each case. The specific failure you're seeing seems to stem from SIZEOF_DATUM not agreeing with sizeof(Datum), but you can bet your bottom dollar that that's just the tip of the iceberg. I'd be somewhat interested to see a build approach that supports this, but I don't want to spend any of my own time on it. I have a vague suspicion that Apple probably built PHP four separate times and then melded the executables after the fact. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly |
| ||||
| Chris Ruprecht wrote: > Hey Tom, Shane, > I'm good to run with the x86_64 only binary since my Apache is built > using that architecture. That's not a real reason to run pg in 64 bit. Although you would need php and libpq to be the same architecture as apache (the running architect if multiple available) - the postgresql server can be 32 bit. If apache is only 64 bit then you will need a 64 bit libpq. Apache calls functions in the php module which then calls functions in the libpq - they must all have matching architectures available to do this which is why apple supplies fat binary libs with osx. From there to postgresql is a network connection (or local socket) so each program is just sending data to the other - they don't need to be the same architecture any more than you need a 64 bit sparc browser to connect to a 64 bit sparc web server. -- Shane Ambler pgSQL (at) Sheeky (dot) Biz Get Sheeky @ http://Sheeky.Biz ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly |
| Thread Tools | |
| Display Modes | |
|
|