pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lacey Powers <lacey.leanne@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #13497: Build with dtrace fails
Date: Mon, 27 Jul 2015 01:22:32 -0700
Message-ID: <55B5EA48.6000008@gmail.com> (raw)
In-Reply-To: <20150722201301.GP5596@postgresql.org>
References: <20150713095427.2334.7697@wrigleys.postgresql.org>
	<20150722201301.GP5596@postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>



On 07/22/2015 13:13, Alvaro Herrera wrote:
> dmilith@gmail.com wrote:
>
>> utils/probes.o: In function `dtrace_dof_init':
>> /usr/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti.c:(.text+0xd7):
>> undefined reference to `elf_version'
>> clang: error: linker command failed with exit code 1 (use -v to see
>> invocation)
>> Makefile:57: recipe for target 'postgres' failed
>>
>>
>> To fix this, I needed to add -lelf to LDFLAGS. The build passes.
> Grumble.
>
> Isn't this a platform bug?  I mean, if you specify to build with dtrace,
> maybe the -lelf should be implicit, or something.  I assume there's a
> manpage in FreeBSD for this stuff, what does it say?
>
> If we need to workaround, I guess we could add a SEARCH_AC_LIBS to
> configure when DTrace is specified (maybe only on freebsd?).
>

Hi All,

Yes, this is a known oddity with FreeBSD specifically, not with PostgreSQL.

Discussed here:

https://lists.freebsd.org/pipermail/freebsd-dtrace/2015-January/000342.html

And addressed in the ports tree as well:

https://svnweb.freebsd.org/ports/head/databases/postgresql92-server/Makefile?view=markup#l168

Though, sadly, the need to link -lelf is not clear if you're building 
from source and not using the ports tree, unless you do some searching 
around.

Hope that helps,

Lacey


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)

Message-ID: <55B5EA48.6000008@gmail.com>
Permalink:  ../55B5EA48.6000008@gmail.com/
Also on:    postgresql.org/message-id/55B5EA48.6000008@gmail.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-bugs@postgresql.org
  Cc: lacey.leanne@gmail.com
  Subject: Re: BUG #13497: Build with dtrace fails
  In-Reply-To: <55B5EA48.6000008@gmail.com>
  References: <20150713095427.2334.7697@wrigleys.postgresql.org> <20150722201301.GP5596@postgresql.org> <55B5EA48.6000008@gmail.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