From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | "Rainer J(dot)H(dot) Brandt" <rjhb(at)bb-c(dot)de>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: 64bit initdb failure on macOS 10.11 and 10.12 |
Date: | 2017-07-05 14:29:38 |
Message-ID: | e2a2c788-2ea1-6284-643f-3c5a63affba4@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 07/04/2017 11:56 PM, Rainer J.H. Brandt wrote:
> Tom Lane writes:
>> Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> writes:
>>> On 07/04/2017 01:29 PM, Rainer J.H. Brandt wrote:
>>>> Good to know. I removed those options and tried again.
>>
>>> Did you run make clean before re-running ./configure?
>>
>> Personally I do "make distclean" before changing any configure options.
>> I'm not sure how much difference that really makes, but why waste brain
>> cells chasing such issues? Build cycles are cheap.
> Right, and it's not the issue here. I always do each build in a freshly
> unpacked source tree.
>
>> The whole thing's odd though --- certainly many people are building
>> PG successfully on macOS. There's got to be something unusual about
>> Rainer's build environment, but what?
> I thought so, too, but I'm beginning to doubt it. I'm now down to
>
> ./configure --prefix=/opt/bb/170705
>
> and the initdb failure is the same. The build machine is a few months old
> and has current OS and Xcode, and certainly no other build tools or other
> relevant stuff. I have no special environment variables set.
I do not build on OS X so this is a bit of a reach for me, still here it
goes. From your original post the error was:
"reating 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"
You also mentioned you have done 32 bit builds that worked.
Now when I do 64 bit build on Linux the libraries end up in ~/lib64/:
/usr/local/pgsql/lib64> l ascii_and_mic.so
-rwxr-xr-x 1 root root 9760 Jun 14 07:32 ascii_and_mic.so*
Yet in your case I see ~/lib/. Not sure how OS X handles 32bit/64bit,
which is where I am reaching. Just wondering if there is cross
contamination going on?
Another thought, what does:
ldd ascii_and_mic.so
show?
>
> It's been a while since I built PG on macOS, but I regularly do on other
> operating systems, and haven't had any trouble in a very long time.
>
> Rainer
>
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2017-07-05 14:33:28 | Re: Invalid field size |
Previous Message | Thomas Kellerer | 2017-07-05 14:29:22 | Re: Feature proposal, DBURL: psql pgsql://joe:p4zzw0rd@example.org:2345/dbname |