From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: dmilith@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13497: Build with dtrace fails
Date: Wed, 22 Jul 2015 22:13:01 +0200
Message-ID: <20150722201301.GP5596@postgresql.org> (raw)
In-Reply-To: <20150713095427.2334.7697@wrigleys.postgresql.org>
References: <20150713095427.2334.7697@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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?).
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: alvherre@2ndquadrant.com, dmilith@gmail.com
Subject: Re: BUG #13497: Build with dtrace fails
In-Reply-To: <20150722201301.GP5596@postgresql.org>
References: <20150713095427.2334.7697@wrigleys.postgresql.org> <20150722201301.GP5596@postgresql.org>
* 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