Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to build postgresql 7.4.6 on a 64bit machine for 64bit. I'm not sure whether this code is 64bit compatible. Is there a way to check?

If it is 64bit compatible, do I need to do anything to make sure it builds in 64bit?

The source code is from


share|improve this question
What's happening when you try to build it? – Ƭᴇcʜιᴇ007 Feb 25 '12 at 6:42
up vote 3 down vote accepted

According to this historical Gentoo ebuild, postgresql 7.4.6 was considered stable in Gentoo on x86, sparc, alpha, hppa and amd64 architectures. (I assume you aren't talking about IA-64.)

The same ebuild makes provisions for some patching for hppa architecture, and always applies this patch, which appears to remove some termcap linking problem and change how the server is started and stopped. There does not seem to be any special considerations for amd64 at all.

In conclusion, it does not seem you should have any trouble building and running this, provided you have all the required libraries and headers available.

share|improve this answer
Thanks for your response. I was able to complete the build for x86_64. I was wondering how were able to conclude from this script that the postgresql 7.4.6 was considered stable on all those architectures? Does "stable" mean they were able to build for those architectures without errors, or does it mean they actually tested out postgresql on each architecture and ensured it could run? – barrrista Feb 27 '12 at 23:09
There's a line starting with KEYWORDS= that lists stable architectures, like x86 and sparc, and unstable ones with a tilde, like ~ppc and ~ia64. – Eroen Feb 27 '12 at 23:15
In Gentoo, a stable release is one that is suggested for production use and somebody claims to have used it for a time, while unstable generally means it seems to work. However, I just noticed this bug, it might help if you build it with frame pointers. However, building an application from many years past could be difficult if you are on a modern system, as many libraries change over time and you generally only have the lower bounds on what versions work. You might get something out of your build log, though. – Eroen Feb 27 '12 at 23:26
Remember that it was stable with the rest of a then-stable system 7 years ago, not with an up-to-date system today. – Eroen Feb 27 '12 at 23:28
The complete tree can be found here, with a link on top ("dead files") to hide or show files that have been deleted. AFAIK the other large distros don't have similar information easily available on how their builds were done. – Eroen Feb 28 '12 at 7:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .