Thread: pg_config.h on interix
I've got pg 7.4.1 compiled (but not linked) on interix. The major obstacle was that configure was not writing pg_config.h properly. It leaves everything commented even though configure gives reasonable answers to all the questions. Any suggestions? Regards, Merlin
"Merlin Moncure" <merlin.moncure@rcsonline.com> writes: > I've got pg 7.4.1 compiled (but not linked) on interix. The major > obstacle was that configure was not writing pg_config.h properly. It > leaves everything commented even though configure gives reasonable > answers to all the questions. > Any suggestions? It looks like that transformation depends mostly on sed. Have you got a good sed in that environment? Also I think it is writing and then executing a temporary shell script, so that might be a source of issues. regards, tom lane
For me the configure went well and I got Postgresql to compile, link and even run. The only problem is that the encodings didn't go in that well and there was no definition for sync() in the libraries. If someone knows where to find it or how to change it to allow the syncing to work, I'd appreciate it. Some encodings did go in after trying twice (don't know why it needs to be done that way...) but some won't. I'm checking this problem but otherwise the server works great. Command line tools dump core, but that's a minor problem anyway. -- Sami Kuhmonen feenix@iqs.fi IQS Partners Finland http://iqs.fi/
Sami Kuhmonen wrote: > For me the configure went well and I got Postgresql to compile, link and > even run. The only problem is that the encodings didn't go in that well > and there was no definition for sync() in the libraries. If someone knows > where to find it or how to change it to allow the syncing to work, I'd > appreciate it. #define sync() ;) ...The MinGW version has no sync either. The NT Kernel simply does not have the capability. Ultimately the interix version will probably inherit the same code as the SRA based sync. Hopefully, the recent discussions about the bgwriter will bear fruit as this will mitigate the lack of sync. Unfortunately, even with Interix, a production postgres server will have to wait until 7.5/8.0. > Some encodings did go in after trying twice (don't know why it needs to be > done that way...) but some won't. I'm checking this problem but otherwise > the server works great. Command line tools dump core, but that's a minor > problem anyway. You are luckier than me...I just couldn't get through linking because of encodings and other problems. I was planning on rebuilding sed and giving it another shot. Could you give a quick rundown of which build tools you updated and your configure options? Also, how did you update config.guess etc.? (you compiled the 7.4.1 source, right? or cvs?) I had to grab some of the m4 stuff from the 7.2.2 port provided by interopsystems. Regards, Merlin