Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ftf6C-0004Ug-8W for pgsql-general@arkaria.postgresql.org; Sat, 25 Aug 2018 20:23:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ftf6A-0005Td-BH for pgsql-general@arkaria.postgresql.org; Sat, 25 Aug 2018 20:23:54 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1ftf6A-0005TV-3V for pgsql-general@lists.postgresql.org; Sat, 25 Aug 2018 20:23:54 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ftf5z-00064E-BH for pgsql-general@postgresql.org; Sat, 25 Aug 2018 20:23:53 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 5A051EBEE3B7 for ; Sat, 25 Aug 2018 13:23:39 -0700 (MST) Date: Sat, 25 Aug 2018 13:23:39 -0700 (MST) From: TalGloz To: pgsql-general@postgresql.org Message-ID: <1535228619331-0.post@n3.nabble.com> In-Reply-To: References: <1534676183995-0.post@n3.nabble.com> <1534680422044-0.post@n3.nabble.com> <2455c526-58ab-4f2b-a9c0-f2b2890ca365@manitou-mail.org> <1534704516779-0.post@n3.nabble.com> <30248.1534706191@sss.pgh.pa.us> <1534876314698-0.post@n3.nabble.com> Subject: Re: Linker errors while creating a PostgreSQL C extension function. 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 I removed the flag --no-undefined and it was compiled and worked like a charm. I needed the flag to spot the linker errors for linking with the external *libseal.a* library. As for my other question regarding the unused linker path *-L"/usr/local/lib"*. I'm using Fedora 28 (RedHat) and in this distribution the default path for libs is /usr/lib64, so I can use this setting or change it to include the */usr/local/lib* path as well. Best regards, Tal -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html