BUG #14742: build fails on psql
Chris Ruprecht <chris@cdrbill.com>
From: chris@cdrbill.com
To: pgsql-bugs@postgresql.org
Cc: chris@cdrbill.com
Date: 2017-07-14T12:51:06Z
Lists: pgsql-bugs
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
Commits
-
Fix broken link-command-line ordering for libpgfeutils.
- c95275fc202c 10.0 landed
- 4e763fb6f634 9.6.4 landed