Re: BUG #14742: build fails on psql

Chris Ruprecht <chris@cdrbill.com>

From: Chris Ruprecht <chris@cdrbill.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Date: 2017-07-14T17:14:48Z
Lists: pgsql-bugs
I was thinking the same thing, we should be able to build what ever release, regardless if there is a previous release already installed ;).


> On Jul 14, 2017, at 12:33, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> I wrote:
>> appendShellStringNoError() and psql_scan_set_passthrough() should be in
>> src/fe_utils/libpgfeutils.a, but they are both new as of v10.  I suppose
>> you're somehow linking against a 9.6 or earlier version of that
>> library.  Looking at the link line, -L/usr/local/lib is probably the
>> source of the problem.  Do you have any idea how it got there?
>> I don't see an equivalent reference to the --prefix lib directory
>> when I do this, so it's not that.
> 
> On further consideration, however that got there, it's definitely a
> bug in our makefiles that the -L flag for src/fe_utils isn't being
> placed in front of -L flags for system libraries.  I've pushed a fix
> for that.  Thanks for the report!
> 
> 			regards, tom lane

Commits

  1. Fix broken link-command-line ordering for libpgfeutils.