pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14742: build fails on psql
5+ messages / 3 participants
[nested] [flat]

Commits from this thread:
  2017-07-14 c95275fc20 4e763fb6f6  Fix broken link-command-line ordering for libpgfeutils.
* BUG #14742: build fails on psql
@ 2017-07-14 12:51  chris@cdrbill.com
  0 siblings, 1 reply; 5+ messages in thread

From: chris@cdrbill.com @ 2017-07-14 12:51 UTC (permalink / raw)
  To: pgsql-bugs; +Cc: chris@cdrbill.com

The following bug has been logged on the website:

Bug reference:      14742
Logged by:          Chris Ruprecht
Email address:      chris@cdrbill.com
PostgreSQL version: 10beta2
Operating system:   macOS 10.12.5
Description:        

The build fails at this point:

gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Wendif-labels -Wmissing-format-attribute -Wformat-security
-fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2 command.o
common.o conditional.o copy.o crosstabview.o describe.o help.o input.o
large_obj.o mainloop.o prompt.o psqlscanslash.o sql_help.o startup.o
stringutils.o tab-complete.o variables.o  -L../../../src/common -lpgcommon
-L../../../src/port -lpgport -L../../../src/interfaces/libpq -lpq
-L../../../src/port -L../../../src/common -L/usr/local/lib 
-Wl,-dead_strip_dylibs  -L../../../src/fe_utils -lpgfeutils -lpq  -lpgcommon
-lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lm
 -o psql
Undefined symbols for architecture x86_64:
  "_appendShellStringNoError", referenced from:
      _psql_get_variable in common.o
  "_psql_scan_set_passthrough", referenced from:
      _MainLoop in mainloop.o
      _main in startup.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

Configure options are:

./configure  \
  --prefix=/usr/local              \
  --enable-integer-datetimes \
  --enable-thread-safety        \
  --with-perl             \
  --with-python           \
  --with-gssapi           \
  --with-openssl             \
  --with-pam              \
  --with-zlib             \
  --with-libxml         \
  --with-libxslt        \
  --with-uuid=e2fs      \
  --with-perl \
  --with-wal-segsize=64 \
  --with-wal-segsize=16 \
  --with-bonjour



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: BUG #14742: build fails on psql
@ 2017-07-14 14:22  Tom Lane <tgl@sss.pgh.pa.us>
  parent: chris@cdrbill.com
  0 siblings, 2 replies; 5+ messages in thread

From: Tom Lane @ 2017-07-14 14:22 UTC (permalink / raw)
  To: chris@cdrbill.com; +Cc: pgsql-bugs

chris@cdrbill.com writes:
> Undefined symbols for architecture x86_64:
>   "_appendShellStringNoError", referenced from:
>       _psql_get_variable in common.o
>   "_psql_scan_set_passthrough", referenced from:
>       _MainLoop in mainloop.o
>       _main in startup.o

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.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: BUG #14742: build fails on psql
@ 2017-07-14 16:33  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 5+ messages in thread

From: Tom Lane @ 2017-07-14 16:33 UTC (permalink / raw)
  To: chris@cdrbill.com; +Cc: pgsql-bugs

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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: BUG #14742: build fails on psql
@ 2017-07-14 17:12  Chris Ruprecht <chris@cdrbill.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 5+ messages in thread

From: Chris Ruprecht @ 2017-07-14 17:12 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs

Tom,

That was the problem. There was a 9.6.3 version in /usr/local/lib.

Thank you!!


> On Jul 14, 2017, at 10:22, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> chris@cdrbill.com writes:
>> Undefined symbols for architecture x86_64:
>>  "_appendShellStringNoError", referenced from:
>>      _psql_get_variable in common.o
>>  "_psql_scan_set_passthrough", referenced from:
>>      _MainLoop in mainloop.o
>>      _main in startup.o
> 
> 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.
> 
> 			regards, tom lane

Attachments:

  signature.asc (application/pgp-signature, 1.5K) download

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: BUG #14742: build fails on psql
@ 2017-07-14 17:14  Chris Ruprecht <chris@cdrbill.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Chris Ruprecht @ 2017-07-14 17:14 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: 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

Attachments:

  signature.asc (application/pgp-signature, 1.5K) download

^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2017-07-14 17:14 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-07-14 12:51 BUG #14742: build fails on psql chris@cdrbill.com
2017-07-14 14:22 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-07-14 16:33   ` Tom Lane <tgl@sss.pgh.pa.us>
2017-07-14 17:14     ` Chris Ruprecht <chris@cdrbill.com>
2017-07-14 17:12   ` Chris Ruprecht <chris@cdrbill.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox