Red Hat Bugzilla – Bug 112244
Makefile.port for building C extension functions is missing
Last modified: 2013-07-02 22:59:46 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5)
Description of problem:
If you try to build any of the sample extension DLLs in
/usr/share/doc/postgresql-docs-7.3.4/tutorial (or try to make your own
functions), you need to include /usr/include/pgsql/Makefile.global to
set up the PG build environment in your Makefile.
However, Makefile.global needs to include
$(top_builddir)/src/Makefile.port to set platform-specific build options.
Unfortunately, "Makefile.port" is (a) not included in the RPM, and (b)
is hard-coded to reside in the "src" directory (see Makefile.global).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Actual Results: Cannot build shared object server extensions.
Expected Results: Should be able to build 'em.
We can certainly include Makefile.port in the RPM, but I don't think
that gets the job done --- the tutorial Makefile is designed for
building in a normal build tree, as is Makefile.global itself.
There doesn't seem to be any easy way to use these makefiles in
building modules after-the-fact using files installed where the
RPMs put them. I think I'll have to punt on this for the moment,
and consult Lamar Owen and some other people about what to do.
This is fixed (finally) in PostgreSQL 8.0, which we should have in
Fedora Core 4.