Re: postgresql 9.0.4 source compilation issue on OSX - Mailing list pgsql-hackers

From Bhavin Kamani
Subject Re: postgresql 9.0.4 source compilation issue on OSX
Date
Msg-id BANLkTim07r9-8+_XL-WW3+B=zspYWDKsvw@mail.gmail.com
Whole thread Raw
In response to Re: postgresql 9.0.4 source compilation issue on OSX  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Thanks Bob for your lead. I was finally able to solve my issue. I had earlier installed the binary version of postgresql. As I had to compile certain contrib/modules sometime back, I had chosen to set USE PGXS=1 in my .zshrc file. This was causing these errors. It was silly mistake from my end. Thanks a ton for your lead which helped me discover the root cause.

- Bhavin

On Thu, Jun 9, 2011 at 7:19 PM, Robert Haas <robertmhaas@gmail.com> wrote:
On Thu, Jun 9, 2011 at 2:59 AM, Bhavin Kamani <bhavinkamani@gmail.com> wrote:
> I am installing postgresql using homebrew on OSX. I am getting strange
> compilation errors. Googling did not help me in getting any lead to the
> resolution. When I compile it on a standalone basis (without using brew) I
> still get the same error. Compiling 9.1beta1 source package also gave me the
> same set of errors.
> Any lead/help will be highly appreciated.

I'm not exactly sure what's going on here, but contrib modules can be
built in two ways: with PGXS, or without PGXS.  Typically, you compile
without PGXS when you're building the server and it's contrib modules,
and with PGXS if the server is already installed (and thus pg_config
is present) and you just want to compile one more module.  Here it
looks like you're doing an in-tree compile but somehow PGXS is getting
enabled anyway - not sure what's going on there.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgsql-hackers by date:

Previous
From: Kohei KaiGai
Date:
Subject: Re: [v9.2] SECURITY LABEL on shared database object
Next
From: Christopher Browne
Date:
Subject: Re: FOREIGN TABLE doc fix