Apple's ranlib warns about protocol_openssl.c

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Apple's ranlib warns about protocol_openssl.c
Date: 2021-12-16 02:44:43
Message-ID: CA+hUKG+_ryH6HyuZGkSm01WvBa1vGZ4sB_u9dXu706MBF3g66w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

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?

[1] https://www.postgresql.org/message-id/flat/28521.1426352337%40sss.pgh.pa.us

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2021-12-16 02:51:55 Re: Rewriting the test of pg_upgrade as a TAP test - take three - remastered set
Previous Message Amit Kapila 2021-12-16 02:42:57 Re: Skipping logical replication transactions on subscriber side