Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJdgt-0000rn-RR for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Jul 2015 08: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 1ZJdgs-0006wR-Vf for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Jul 2015 08: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 1ZJdgH-0006Fo-Ne for pgsql-bugs@postgresql.org; Mon, 27 Jul 2015 08:22:41 +0000 Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZJdgE-0003WM-E6 for pgsql-bugs@postgresql.org; Mon, 27 Jul 2015 08:22:41 +0000 Received: by pdjr16 with SMTP id r16so48961710pdj.3 for ; Mon, 27 Jul 2015 01:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=9m0QOsh1ZnmGdsX3ka77h573smw+uag5NATbbibd0ck=; b=KDEEZcK6w6kznnGcsSQ6rzJ2euj6SWtiXZy2bT/q4fUbJHYssVz65R+oHqiFCD55hz hggG+GOqBwRwBq9X02Rg3VKyIZ9m6vTsuAgQ+1UFX+DU0WcYxB2TdBoHuDq9X8reA8eH 3uRMHJ31Tr9lNt6AXQ+AUcvwNcKlq5PFioE0IOmrJZD0oT61YEFFBnedLjVvMnOTFs7F UZ+oHOxwVy2UwqM3hKnXxylxukwSafjxGc3pJeYegtaasn/KzxAIU1TzCySVoCQI3DJW OcH1WEWSROmBoj0nshapjLh8a+py+IHBKMfxmirlfPjVIWF0yRdnitBpXi9e+MIRiEJx NuDA== X-Received: by 10.70.65.5 with SMTP id t5mr67454089pds.16.1437985355832; Mon, 27 Jul 2015 01:22:35 -0700 (PDT) Received: from [192.168.1.2] (c-50-137-62-165.hsd1.or.comcast.net. [50.137.62.165]) by smtp.googlemail.com with ESMTPSA id bf5sm28126962pad.43.2015.07.27.01.22.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 01:22:34 -0700 (PDT) Subject: Re: BUG #13497: Build with dtrace fails To: pgsql-bugs@postgresql.org References: <20150713095427.2334.7697@wrigleys.postgresql.org> <20150722201301.GP5596@postgresql.org> From: Lacey Powers Message-ID: <55B5EA48.6000008@gmail.com> Date: Mon, 27 Jul 2015 01:22:32 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <20150722201301.GP5596@postgresql.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) 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 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