Re: BUG #13497: Build with dtrace fails

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: dmilith(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #13497: Build with dtrace fails
Date: 2015-07-22 20:13:01
Message-ID: 20150722201301.GP5596@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

dmilith(at)gmail(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2015-07-22 22:47:59 Re: BUG #13490: Segmentation fault on pg_stat_activity
Previous Message Andres Freund 2015-07-22 18:42:42 Re: [HACKERS] Gsets: ROW expression semantic broken between 9.4 and 9.5