From owner-freebsd-stable@FreeBSD.ORG Fri Oct 14 17:08:53 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CE8B16A41F; Fri, 14 Oct 2005 17:08:53 +0000 (GMT) (envelope-from girgen@pingpong.net) Received: from mxfep04.bredband.com (mxfep04.bredband.com [195.54.107.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0240C43D45; Fri, 14 Oct 2005 17:08:51 +0000 (GMT) (envelope-from girgen@pingpong.net) Received: from ironport.bredband.com ([195.54.107.82] [195.54.107.82]) by mxfep04.bredband.com with ESMTP id <20051014170848.GUFZ4878.mxfep04.bredband.com@ironport.bredband.com>; Fri, 14 Oct 2005 19:08:48 +0200 Received: from c-57cd72d5.022-2016-73746f39.cust.bredbandsbolaget.se (HELO palle.girgensohn.se) ([213.114.205.87]) by ironport.bredband.com with ESMTP; 14 Oct 2005 19:08:36 +0200 X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAA== X-IronPort-AV: i="3.97,215,1125871200"; d="scan'208"; a="3111274:sNHT26100612" Received: from palle.girgensohn.se (palle.girgensohn.se [127.0.0.1]) by palle.girgensohn.se (Postfix) with ESMTP id 507D017BC7; Fri, 14 Oct 2005 19:08:48 +0200 (CEST) Date: Fri, 14 Oct 2005 19:08:48 +0200 From: Palle Girgensohn To: Michael Nottebrock , freebsd-stable@freebsd.org Message-ID: In-Reply-To: <200510141740.05616.lofi@freebsd.org> References: <82117273F2B3D8076639D8D3@palle.girgensohn.se> <200510141729.14633.lofi@freebsd.org> <200510141740.05616.lofi@freebsd.org> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: nectar@freebsd.org Subject: Re: linking problems with heimdal in base (ports version works) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 17:08:53 -0000 --On fredag, oktober 14, 2005 17.40.03 +0200 Michael Nottebrock wrote: > On Friday, 14. October 2005 17:29, Michael Nottebrock wrote: >> On Friday, 14. October 2005 16:04, Palle Girgensohn wrote: >> > This gives me problems. I maintain the postgresql ports, and postgresql >> > supports Kerberos. Problem is, when installing the heimdal port, >> > everything works fine, but when using the base heimdal, I can't get >> > programs linking with postgresq's libpq.so to link, since the configure >> > scripts cannot find symbols that are in for example libasn1.so. Most >> > ports seem to only pick up the -lkrb5, not all the other libs needed. >> >> Then those ports are buggy. The respective configure scripts should run >> krb5-config --libs and use that output to determine which additional >> libraries need to be linked in. > > FWIW: As a stop-gap solution until this can be fixed in the upstream > sources, you probably can do something like this in the port Makefile: > > HEIMDAL_CFLAGS!=krb5-config --cflags > HEIMDAL_LDFLAGS!=krb5-config --libs > > CONFIGURE_ARGS+=CFLAGS=${HEIMDAL_CFLAGS} LDFLAGS=${HEIMDAL_LDFLAGS} I'm actually doing that already, but postgresql build process bugs out somehow. I'll have to dedicate some time to this, I guess. Still, isn't it strange that the kerberos libs don't have any dependencies registered? A quick check shows that they are almost the only libs in /usr/lib that have zero output from ldd. /Palle