From owner-freebsd-ports@FreeBSD.ORG Thu Apr 3 14:06:42 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5994414B for ; Thu, 3 Apr 2014 14:06:42 +0000 (UTC) Received: from lordcow.org (lordcow.org [41.203.5.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Private", Issuer "Private" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A539FB5 for ; Thu, 3 Apr 2014 14:06:41 +0000 (UTC) Received: from lordcow.org (localhost [127.0.0.1]) by lordcow.org (8.14.5/8.14.5) with ESMTP id s33DsjOs078635 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 3 Apr 2014 15:54:45 +0200 (SAST) (envelope-from lordcow@lordcow.org) Received: (from lordcow@localhost) by lordcow.org (8.14.5/8.14.5/Submit) id s33Dse6A078634 for ports@freebsd.org; Thu, 3 Apr 2014 15:54:40 +0200 (SAST) (envelope-from lordcow) Date: Thu, 3 Apr 2014 15:54:40 +0200 From: Gareth de Vaux To: ports@freebsd.org Subject: postgresql-server fails with krb5 support Message-ID: <20140403135440.GA76638@lordcow.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.22 (2013-10-16) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lordcow.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2014 14:06:42 -0000 Hi all, postgresql93-server builds fine unless I add krb5 support (MIT, but doesn't seem to matter). It fails with: cc -O -pipe -DLDAP_DEPRECATED -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv initdb.o findtimezone.o localtime.o encnames.o -L../../../src/port -L../../../src/common -L/usr/local/lib -Wl,-rpath,/usr/lib:/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -Wl,--as-needed -Wl,-R'/usr/local/lib' -lpgport -lpgcommon -lxml2 -lssl -lcrypto -lkrb5 -lcom_err -lz -lreadline -lcrypt -lm -o initdb initdb.o: In function `check_authmethod_unspecified': initdb.c:(.text+0x27): undefined reference to `libintl_gettext' initdb.o: In function `warn_on_mount_point': initdb.c:(.text+0x4f): undefined reference to `libintl_gettext' initdb.c:(.text+0x7b): undefined reference to `libintl_gettext' initdb.c:(.text+0x99): undefined reference to `libintl_gettext' initdb.o: In function `check_authmethod_valid': initdb.c:(.text+0x130): undefined reference to `libintl_gettext' etc -lintl gets dropped from the compile line when -lkrb5 is added for some reason. $ uname -a FreeBSD imap1 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Thu Aug 16 13:53:45 SAST 2012 root@imap1:/usr/obj/usr/src/sys/GENERIC amd64