Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZIKDH-0005UA-GU for pgsql-bugs@arkaria.postgresql.org; Thu, 23 Jul 2015 17:23:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZIKDH-0004s4-2H for pgsql-bugs@arkaria.postgresql.org; Thu, 23 Jul 2015 17:23:19 +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.84) (envelope-from ) id 1ZIKCd-0001L8-Pm for pgsql-bugs@postgresql.org; Thu, 23 Jul 2015 17:22:39 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZIKCW-0003Sy-KR for pgsql-bugs@postgresql.org; Thu, 23 Jul 2015 17:22:39 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [186.37.86.38]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id D327E40130B; Thu, 23 Jul 2015 10:22:24 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id B4C253D42; Wed, 22 Jul 2015 22:13:01 +0200 (CEST) Date: Wed, 22 Jul 2015 22:13:01 +0200 From: Alvaro Herrera To: dmilith@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13497: Build with dtrace fails Message-ID: <20150722201301.GP5596@postgresql.org> References: <20150713095427.2334.7697@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150713095427.2334.7697@wrigleys.postgresql.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.6 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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