https://bugzilla.novell.com/show_bug.cgi?id=361431 User max@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=361431#c11 Reinhard Max <max@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID --- Comment #11 from Reinhard Max <max@novell.com> 2008-04-17 11:00:50 MST --- (In reply to comment #10 from Dirk Mueller)
details please..
a) http://www.postgresql.org/docs/8.3/static/app-pgconfig.html
"The pg_config utility prints configuration parameters of the currently installed version of PostgreSQL. It is intended, for example, to be used by software packages that want to interface to PostgreSQL to facilitate finding the required header files and libraries."
This just means that the --*dir options of pg_config can be used to find the directories where PostgreSQL placed its own header and library files. The --*flags and --libs options are documented to contain the values that were used to build PostgreSQL, not as something to be used to build 3rd party software. Take a look at PostgreSQL's own extension building infrastructure, which consists of several Makefiles located under %_libdir/postgresql/pgxs . It uses pg_config, but only to query the various installation directories, not for anything else.
b) regarding comment 4) you do ship a static vresion of it
rpm -ql postgresql-devel | grep libpq.a /usr/lib/libpq.a
Indeed. I found that out earlier today, and will change it with the next submidssion of the PostgreSQL packages.
c) if pg_config is not there, it will not use it and then succeed as well. however, if pg_config is there, it will use and trust the output.
.. which is a bug, because it uses the output in an unintended and undocumented way.
if the output is wrong (like here), it should be fixed.
The output is exactly as documented, although the documentation could be clearer in saying that it is only intended to find out how the PostgreSQL installation at hand was built and not for anything else. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.