pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: pltcl crash on recent macOS
Date: Mon, 20 Jun 2022 12:36:47 +0200
Message-ID: <c3ee9749-393f-56e7-9143-e9d9577cf717@enterprisedb.com> (raw)
In-Reply-To: <4042380.1655175943@sss.pgh.pa.us>
References: <a78c847a-4f79-9286-be99-e819e9e4139e@enterprisedb.com>
	<CA+hUKGKrgb6A6CrLRPCZWTgEW5art06hLVCAQCbewYdz7Zumgw@mail.gmail.com>
	<3809545.1655136068@sss.pgh.pa.us>
	<375b5de3-8dd8-9b41-3d82-15ac08c05d88@enterprisedb.com>
	<4042380.1655175943@sss.pgh.pa.us>

On 14.06.22 05:05, Tom Lane wrote:
> I'd be okay with just dropping the -lc from pl/tcl/Makefile and seeing
> what the buildfarm says.  The fact that we needed it in 1998 doesn't
> mean that we still need it on supported versions of Tcl; nor was it
> ever anything but a hack for us to be overriding what TCL_LIBS says.

Ok, I propose to proceed with the attached patch (with a bit more 
explanation added) for the master branch (for now) and see how it goes.

Attachments:

0001-PL-Tcl-Don-t-link-with-lc-explicitly.patch (text/plain, 887B) download From 394ab358d7437768d2c2570381f2cdcef51dc2c4 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut <peter@eisentraut.org> Date: Mon, 20 Jun 2022 12:34:13 +0200 Subject: [PATCH] PL/Tcl: Don't link with -lc explicitly Discussion: https://www.postgresql.org/message-id/flat/a78c847a-4f79-9286-be99-e819e9e4139e%40enterprisedb.com --- src/pl/tcl/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile index 25e65189b6..314f9b2eec 100644 --- a/src/pl/tcl/Makefile +++ b/src/pl/tcl/Makefile @@ -15,7 +15,7 @@ override CPPFLAGS := -I. -I$(srcdir) $(TCL_INCLUDE_SPEC) $(CPPFLAGS) # On Windows, we don't link directly with the Tcl library; see below ifneq ($(PORTNAME), win32) -SHLIB_LINK = $(TCL_LIB_SPEC) $(TCL_LIBS) -lc +SHLIB_LINK = $(TCL_LIB_SPEC) $(TCL_LIBS) endif PGFILEDESC = "PL/Tcl - procedural language" -- 2.36.1

view thread (11+ messages)  latest in thread

Message-ID: <c3ee9749-393f-56e7-9143-e9d9577cf717@enterprisedb.com>
Permalink:  ../c3ee9749-393f-56e7-9143-e9d9577cf717@enterprisedb.com/
Also on:    postgresql.org/message-id/c3ee9749-393f-56e7-9143-e9d9577cf717@enterprisedb.com

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: peter.eisentraut@enterprisedb.com, tgl@sss.pgh.pa.us, thomas.munro@gmail.com
  Subject: Re: pltcl crash on recent macOS
  In-Reply-To: <c3ee9749-393f-56e7-9143-e9d9577cf717@enterprisedb.com>
  References: <a78c847a-4f79-9286-be99-e819e9e4139e@enterprisedb.com> <CA+hUKGKrgb6A6CrLRPCZWTgEW5art06hLVCAQCbewYdz7Zumgw@mail.gmail.com> <3809545.1655136068@sss.pgh.pa.us> <375b5de3-8dd8-9b41-3d82-15ac08c05d88@enterprisedb.com> <4042380.1655175943@sss.pgh.pa.us> <c3ee9749-393f-56e7-9143-e9d9577cf717@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox