pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: TalGloz <glozmantal@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Linker errors while creating a PostgreSQL C extension function.
Date: Sat, 25 Aug 2018 13:23:39 -0700 (MST)
Message-ID: <1535228619331-0.post@n3.nabble.com> (raw)
In-Reply-To: <d1f46930cf916f0afbfeb52185169b9a9049a1d0.camel@cybertec.at>
References: <1534676183995-0.post@n3.nabble.com>
	<CAAfz9KOKj2rqsd6fBeqEcvMCMNMvcxK7S7AgF+rtmTiP9z27iQ@mail.gmail.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>
	<d1f46930cf916f0afbfeb52185169b9a9049a1d0.camel@cybertec.at>

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




view thread (21+ messages)

Message-ID: <1535228619331-0.post@n3.nabble.com>
Permalink:  ../1535228619331-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1535228619331-0.post@n3.nabble.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-general@postgresql.org
  Cc: glozmantal@gmail.com
  Subject: Re: Linker errors while creating a PostgreSQL C extension function.
  In-Reply-To: <1535228619331-0.post@n3.nabble.com>
  References: <1534676183995-0.post@n3.nabble.com> <CAAfz9KOKj2rqsd6fBeqEcvMCMNMvcxK7S7AgF+rtmTiP9z27iQ@mail.gmail.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> <d1f46930cf916f0afbfeb52185169b9a9049a1d0.camel@cybertec.at> <1535228619331-0.post@n3.nabble.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