From owner-freebsd-ports@FreeBSD.ORG Wed Jan 22 13:19:15 2014 Return-Path: Delivered-To: freebsd-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 4DD2563E for ; Wed, 22 Jan 2014 13:19:15 +0000 (UTC) Received: from mail.lysator.liu.se (mail.lysator.liu.se [IPv6:2001:6b0:17:f0a0::3]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E1FC61791 for ; Wed, 22 Jan 2014 13:19:14 +0000 (UTC) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id A955D40017 for ; Wed, 22 Jan 2014 14:19:12 +0100 (CET) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id 9F34D40016; Wed, 22 Jan 2014 14:19:12 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bernadotte.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.3.1 X-Spam-Score: 0.0 Received: from mx.daemonic.se (mx.daemonic.se [IPv6:2001:470:dca9:0:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 57D4240015; Wed, 22 Jan 2014 14:19:11 +0100 (CET) Received: from mailscanner.daemonic.se (mailscanner.daemonic.se [IPv6:2001:470:dca9:0:1::6]) by mx.daemonic.se (Postfix) with ESMTPS id 3f8Rz26XZYz8ggx; Wed, 22 Jan 2014 14:19:10 +0100 (CET) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mx.daemonic.se ([IPv6:2001:470:dca9:0:1::3]) (using TLS with cipher CAMELLIA256-SHA) by mailscanner.daemonic.se (mailscanner.daemonic.se [IPv6:2001:470:dca9:0:1::6]) (amavisd-new, port 10025) with ESMTPS id DNgmuEkliOqw; Wed, 22 Jan 2014 14:19:08 +0100 (CET) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2001:470:dca9:0:1::4]) by mx.daemonic.se (Postfix) with ESMTPS id 3f8Rz027V4z8ggv; Wed, 22 Jan 2014 14:19:08 +0100 (CET) Received: from tifa.daemonic.se (tifa.daemonic.se [10.32.0.6]) by mail.daemonic.se (Postfix) with ESMTPSA id 3f8Rz01WcPz9CvV; Wed, 22 Jan 2014 14:19:08 +0100 (CET) Received: from tifa.daemonic.se (localhost [IPv6:::1]) by tifa.daemonic.se (Postfix) with ESMTP id 0D76222818; Wed, 22 Jan 2014 14:19:08 +0100 (CET) Message-ID: <52DFC54B.6040809@daemonic.se> Date: Wed, 22 Jan 2014 14:19:07 +0100 From: Niclas Zeising User-Agent: Mutt/1.5.21 MIME-Version: 1.0 To: David Demelier Subject: Re: dns/bind-tools fails to build on 10-stable References: <20140120092904.GA13438@potato.growveg.org> <52DD676C.5090007@daemonic.se> <20140120192623.GA83718@potato.growveg.org> <52DF78C2.10304@gmail.com> In-Reply-To: <52DF78C2.10304@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-ports@freebsd.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: Wed, 22 Jan 2014 13:19:15 -0000 On 01/22/14 08:52, David Demelier wrote: > > On 20/01/2014 20:26, John wrote: >> On Mon, Jan 20, 2014 at 07:14:04PM +0100, Niclas Zeising wrote: >>> On 01/20/14 10:29, John wrote: >>>> Hello list, >>>> >>>> On a new 10-stable system, I can't seem to build bind tools. I get the following >>>> error: >>>> >>>> checking host system type... x86_64-portbld-freebsd10.0 >>>> checking whether make sets $(MAKE)... yes >>>> checking how to print strings... printf >>>> checking for gcc... cc >>>> checking whether the C compiler works... no >>>> configure: error: in `/usr/ports/dns/bind-tools/work/bind-9.9.4-P2': >>>> configure: error: C compiler cannot create executables >>>> See `config.log' for more details >>>> ===> Script "configure" failed unexpectedly. >>>> Please report the problem to mat@FreeBSD.org [maintainer] and attach the >>>> "/usr/ports/dns/bind-tools/work/bind-9.9.4-P2/config.log" including the >>>> output >>>> of the failure of your make command. Also, it might be a good idea to >>>> provide >>>> an overview of all packages installed on your system (e.g. a >>>> /usr/local/sbin/pkg-static info -g -Ea). >>>> *** Error code 1 >>>> >>>> Stop. >>>> make[1]: stopped in /usr/ports/dns/bind-tools >>>> *** Error code 1 >>>> >>>> Stop. >>>> make: stopped in /usr/ports/dns/bind-tools >>>> >>>> 10-stable is r260886. The ports tree is 340327. Before I directly bother >>>> the maintainer, I wondered if this is a known issue? >>>> >>>> thanks, >>>> >>> That is a rather strange error. Can you provide config.log together >>> with /etc/make.conf and options for bind-tools? >>> Regards! >>> -- >>> Niclas >> Hello, thanks for looking. >> >> I "fixed" the problem - looking in config.log, I noticed this: >> >> configure:3284: checking build system type >> configure:3298: result: x86_64-portbld-freebsd10.0 >> configure:3318: checking host system type >> configure:3331: result: x86_64-portbld-freebsd10.0 >> configure:3352: checking whether make sets $(MAKE) >> configure:3374: result: yes >> configure:3442: checking how to print strings >> configure:3469: result: printf >> configure:3538: checking for gcc >> configure:3565: result: cc >> configure:3794: checking for C compiler version >> configure:3803: cc --version >&5 >> FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 >> Target: x86_64-unknown-freebsd10.0 >> Thread model: posix >> configure:3814: $? = 0 >> configure:3803: cc -v >&5 >> FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 >> Target: x86_64-unknown-freebsd10.0 >> Thread model: posix >> configure:3814: $? = 0 >> configure:3803: cc -V >&5 >> cc: error: argument to '-V' is missing (expected 1 value) >> cc: error: no input files >> configure:3814: $? = 1 >> configure:3803: cc -qversion >&5 >> cc: error: no input files >> configure:3814: $? = 1 >> configure:3834: checking whether the C compiler works >> configure:3856: cc -O2 -pipe -fno-strict-aliasing -L/usr/lib >> -lgssapi_krb5 -Wl,-rpath=/usr/lib:/usr/local/lib conftest.c >&5 >> /usr/bin/ld: cannot find -lgssapi_krb5 >> cc: error: linker command failed with exit code 1 (use -v to see >> invocation) >> configure:3860: $? = 1 >> configure:3898: result: no >> configure: failed program was: >> | /* confdefs.h */ >> | #define PACKAGE_NAME "" >> | #define PACKAGE_TARNAME "" >> | #define PACKAGE_VERSION "" >> | #define PACKAGE_STRING "" >> | #define PACKAGE_BUGREPORT "" >> | #define PACKAGE_URL "" >> | /* end confdefs.h. */ >> | >> >> Looked in options and gssapi was enabled by default ( was there after >> make rmconfig-recursive ) and i don't use kerebos so disabled it, now it >> builds. >> >> Enabled options resulting in successful build are IPv6 SSL and THREADS. >> Thanks anyway, hope this proves useful to someone. I can post the entire >> log but it is huge. > > I already felt in that kind of error because I disabled kerberos in my > src.conf(5) too. I think a good idea would be to enable or disable > options by default depending on some values from the src.conf(5). This > can save some time for users which have extremely restrictive > /etc/src.conf files. If you have a non default configuration in /etc/src.conf, then you have to be prepared to change configurations for ports that depends on things in the base system. Just parsing /etc/src.conf is probably not a viable option, since it can have changed without the world being rebuilt, or in some cases it's not even there (my jails, for instance, are build with a src.conf on the jailhost, this file is usually not copied to the actual jail). In this case, what might be possible to do is to check for the krb5 library on the host, and then error out if the user has selected the kerberos option. Also remember that this issue will probably mean that a binary package of bind-tools will probably not work either. Regards! -- Niclas