From owner-freebsd-current@FreeBSD.ORG Sun Apr 3 22:47:16 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22E8B106566B; Sun, 3 Apr 2011 22:47:16 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id DC2D08FC08; Sun, 3 Apr 2011 22:47:15 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:b138:26d4:ce6d:1fe4] (unknown [IPv6:2001:7b8:3a7:0:b138:26d4:ce6d:1fe4]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id C62205C59; Mon, 4 Apr 2011 00:47:14 +0200 (CEST) Message-ID: <4D98F8F6.3060409@FreeBSD.org> Date: Mon, 04 Apr 2011 00:47:18 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.16pre) Gecko/20110319 Lanikai/3.1.10pre MIME-Version: 1.0 To: Christer Solskogen References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, freebsd-ports@freebsd.org Subject: Re: clang and postgresql90 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2011 22:47:16 -0000 On 2011-04-03 20:15, Christer Solskogen wrote: > I'm just wondering if anyone else has trouble compiling postgresql90 > with clang. I get this (and I cant seem to find anything online that > somebody else had that same problem): ... > libpq/auth.o: In function `ClientAuthentication': > auth.c:(.text+0x51e): undefined reference to `gss_accept_sec_context' > auth.c:(.text+0x5c7): undefined reference to `gss_release_buffer' ... This error is not related to clang, but a problem with postgresql's configure script, in combination with the updated binutils in the base system. You will get the same error if you use gcc. Patch: http://www.andric.com/freebsd/binutils/bu217-databases-postgresql90-server-1.diff Similar one for postgres 8.4: http://www.andric.com/freebsd/binutils/bu217-databases-postgresql84-server-1.diff