64bit initdb failure on macOS 10.11 and 10.12

From: rjhb(at)bb-c(dot)de (Rainer J(dot)H(dot) Brandt)
To: pgsql-general(at)postgresql(dot)org
Subject: 64bit initdb failure on macOS 10.11 and 10.12
Date: 2017-07-04 18:56:23
Message-ID: 22875.58583.783998.648334@x2270a.bb-c.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I got this initdb error for a 64bit-build on macOS El Capitan and Sierra:

initdb -D /data/pg/hawk -E UTF8 --locale=C"
The files belonging to this database system will be owned by user "rjhb".
This user must also own the server process.

The database cluster will be initialized with locale "C".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /data/pg/hawk ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
creating template1 database in /data/pg/hawk/base/1 ... ok
initializing pg_authid ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating collations ... ok
creating conversions ... FATAL: could not load library "/opt/bb/170704/lib/postgresql/ascii_and_mic.so": dlopen(/opt/bb/170704/lib/postgresql/ascii_and_mic.so, 10): Symbol not found: _check_encoding_conversion_args
Referenced from: /opt/bb/170704/lib/postgresql/ascii_and_mic.so
Expected in: /opt/bb/170704/bin/postgres
in /opt/bb/170704/lib/postgresql/ascii_and_mic.so
STATEMENT: CREATE OR REPLACE FUNCTION ascii_to_mic (INTEGER, INTEGER, CSTRING, INTERNAL, INTEGER) RETURNS VOID AS '$libdir/ascii_and_mic', 'ascii_to_mic' LANGUAGE C STRICT;

child process exited with exit code 1
initdb: removing contents of data directory "/data/pg/hawk"
Exit 1

This is reproducible with 9.4.5, 9.5.4, 9.6.3, and 10 beta.
I configured with ./configure CC='gcc -m64' --prefix=/opt/bb/170704
and also tried with CFLAGS=-m64 LDFLAGS=-m64.

With the same procedures, but 32-bit-builds, I don't get this error,
and everything works fine. Unfortunately, I need the 64-bit version.

Does the error ring a bell somewhere?

Thanks, Rainer

--
Email: rjhb(at)bb-c(dot)de
Telefon: 0172/9593205

Brandt & Brandt Computer GmbH
Am Wiesenpfad 6, 53340 Meckenheim
Geschäftsführer: Rainer J.H. Brandt und Volker A. Brandt
Handelsregister: Amtsgericht Bonn, HRB 10513

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2017-07-04 19:09:45 Re: Invalid field size
Previous Message Daniel Verite 2017-07-04 18:51:00 Re: Invalid field size