Re: Apple's ranlib warns about protocol_openssl.c

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Apple's ranlib warns about protocol_openssl.c
Date: 2021-12-16 15:48:19
Message-ID: 3f72b209-7478-6f72-d5db-bd2b143931a4@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 16.12.21 16:25, Tom Lane wrote:
> Thomas Munro <thomas(dot)munro(at)gmail(dot)com> writes:
>> Apple's ranlib doesn't like empty translation units[1], but
>> protocol_openssl.c doesn't define any symbols (unless you have an
>> ancient EOL'd openssl), so longfin and CI say:
>
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
>> file: libpgcommon.a(protocol_openssl.o) has no symbols
>
>> I guess we still can't switch to (Apple) libtool. Maybe configure
>> should be doing a test and adding it to LIBOBJS or a similar variable
>> only if necessary, or something like that?
>
> Hmm ... right now, with only one test to make, the configure change
> wouldn't be that hard; but that might change in future, plus I'm
> unsure how to do it in MSVC.
>
> A lazy man's answer could be to ensure the translation unit isn't
> empty, say by adding

These are not errors, right? So why is this a problem?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2021-12-16 15:50:28 Re: [PATCH] Accept IP addresses in server certificate SANs
Previous Message Joshua Brindle 2021-12-16 15:43:15 Re: Granting SET and ALTER SYSTE privileges for GUCs