Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hafkn-0000HL-Bu for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Jun 2019 12:19:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hafkl-0000F7-Pq for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Jun 2019 12:19:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hafkl-0000F0-Gu for pgsql-hackers@lists.postgresql.org; Tue, 11 Jun 2019 12:19:51 +0000 Received: from mx2.mailbox.org ([80.241.60.215]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hafki-0004zX-2H for pgsql-hackers@postgresql.org; Tue, 11 Jun 2019 12:19:50 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id BBC9DA01BC; Tue, 11 Jun 2019 14:19:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id wLNEhZpYBDzW; Tue, 11 Jun 2019 14:19:38 +0200 (CEST) Date: Tue, 11 Jun 2019 15:19:43 +0300 From: Pavlo Golub Message-ID: <345138875.20190611151943@cybertec.at> To: PostgreSQL-development CC: Craig Ringer Subject: ReplicationSlotCtl: undefined reference MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Greetings. Trying to build pg extension I've got error: ``` pglogical_monitoring.o:pglogical_monitoring.c:(.rdata$.refptr.ReplicationSlotCtl[.refptr.ReplicationSlotCtl]+0x0): undefined reference to `ReplicationSlotCtl' collect2: error: ld returned 1 exit status ``` But according to https://commitfest.postgresql.org/16/1390/ it should be marked with PGDLLIMPORT. However checking sources there is no this spec (https://github.com/postgres/postgres/blob/fff2a7d7bd09db38e1bafc1303c29b10a9805dc0/src/include/replication/slot.h#L172): ``` extern ReplicationSlotCtlData *ReplicationSlotCtl; ``` Am I correct or missing smth? Craig, it supposed to be your proposal about ReplicationSlotCtl and patch. Am I right? -- Kind regards, Pavlo mailto:pavlo.golub@cybertec.at