From owner-freebsd-current@FreeBSD.ORG Mon Nov 7 18:43:23 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 769A3106564A for ; Mon, 7 Nov 2011 18:43:23 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id F13248FC0C for ; Mon, 7 Nov 2011 18:43:22 +0000 (UTC) Received: by bkbzs8 with SMTP id zs8so1723546bkb.13 for ; Mon, 07 Nov 2011 10:43:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=/lmbwyC6HZATeIeK3FAt1lm54hJwMyWV+In52LXke1c=; b=dX2W0XokFskVVOeOyC+ecCJNLrXk+R4MRrKz4ytuTsZJYZ00y9c3GCHeV6W3rK2OwH HeCbhs9tZ0I6eG10K6gHoM4U+oTGov+yxGWoiqcfH2+4Ny2YplPWMhHBSP5+T4yEyL95 ffaUCIVqE015GEY9kDJfhVc6O6NQbrK6KRK8s= MIME-Version: 1.0 Received: by 10.182.225.3 with SMTP id rg3mr9331175obc.77.1320691400988; Mon, 07 Nov 2011 10:43:20 -0800 (PST) Received: by 10.182.122.33 with HTTP; Mon, 7 Nov 2011 10:43:20 -0800 (PST) In-Reply-To: References: <20111107075734.GC91353@server.vk2pj.dyndns.org> Date: Mon, 7 Nov 2011 10:43:20 -0800 Message-ID: From: Garrett Cooper To: Alexander Yerenkow Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, Peter Jeremy Subject: Re: Problem compiling kernel 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: Mon, 07 Nov 2011 18:43:23 -0000 On Mon, Nov 7, 2011 at 1:57 AM, Alexander Yerenkow wro= te: > > > 2011/11/7 Garrett Cooper >> >> On Nov 6, 2011, at 11:57 PM, Peter Jeremy wrote: >> >> > On 2011-Nov-06 17:41:49 +0200, Alexander Yerenkow >> > wrote: >> >> And problem compiling kernel for amd64 arch. >> >> >> >> I attached full log: >> >> >> >> http://www.box.net/shared/juajg1o2lg1mxbht5x9b >> > >> > It looks like you did a parallel - in which case the actual error is >> > buried somewhere in that output. =A0Please repeat without any '-j' >> > and post the last 50-100 lines of output. >> >> ip_fw_nat.o: In function >> `del_redir_spool_cfg':/zpool0/testenv/sources/9/sys/netinet/ipfw/ip_fw_n= at.c:123: >> undefined reference to `LibAliasRedirectDelete' >> ip_fw_nat.o: In function `ipfw_nat_destroy': >> /zpool0/testenv/sources/9/sys/netinet/ipfw/ip_fw_nat.c:615: undefined >> reference to `LibAliasUninit' >> /zpool0/testenv/sources/9/sys/netinet/ipfw/ip_fw_nat.c:615: undefined >> reference to `LibAliasUninit' >> ip_fw_nat.o: In function `ifaddr_change': >> /zpool0/testenv/sources/9/sys/netinet/ipfw/ip_fw_nat.c:80: undefined >> reference to `LibAliasSetAddress' >> ip_fw_nat.o: In function `ipfw_nat_del': >> /zpool0/testenv/sources/9/sys/netinet/ipfw/ip_fw_nat.c:482: undefined >> reference to `LibAliasUninit'ip_fw_nat.o: In function >> `ipfw_nat_cfg':/zpool0/testenv/sources/9/sys/netinet/ipfw/ip_fw_nat.c:43= 7: >> undefined reference to >> `LibAliasSetMode'/zpool0/testenv/sources/9/sys/netinet/ipfw/ip_fw_nat.c:= 438: >> undefined reference to `LibAliasSetAddress' >> ip_fw_nat.o: In function >> `add_redir_spool_cfg':/zpool0/testenv/sources/9/sys/netinet/ipfw/ip_fw_n= at.c:193: >> undefined reference to >> `LibAliasAddServer'/zpool0/testenv/sources/9/sys/netinet/ipfw/ip_fw_nat.= c:158: >> undefined reference to >> `LibAliasRedirectAddr'/zpool0/testenv/sources/9/sys/netinet/ipfw/ip_fw_n= at.c:167: >> undefined reference to `LibAliasRedirectPort' >> /zpool0/testenv/sources/9/sys/netinet/ipfw/ip_fw_nat.c:178: undefined >> reference to `LibAliasRedirectProto'ip_fw_nat.o: In function >> `ipfw_nat_cfg':/zpool0/testenv/sources/9/sys/netinet/ipfw/ip_fw_nat.c:41= 6: >> undefined reference to `LibAliasInit'ip_fw_nat.o: In function `ipfw_nat'= : >> /zpool0/testenv/sources/9/sys/netinet/ipfw/ip_fw_nat.c:216: undefined >> reference to `m_megapullup' >> /zpool0/testenv/sources/9/sys/netinet/ipfw/ip_fw_nat.c:295: undefined >> reference to `LibAliasOut' >> /zpool0/testenv/sources/9/sys/netinet/ipfw/ip_fw_nat.c:276: undefined >> reference to `LibAliasOutTry' >> /zpool0/testenv/sources/9/sys/netinet/ipfw/ip_fw_nat.c:292: undefined >> reference to `LibAliasIn' >> >> You need to compile with libalias support. > > Thanks, that does fix the problem. > Is there somewhere request for feature that config must check kernel conf= ig > for dependencies specified? Or maybe even auto-dependency :) > What I mean, someone working at kernel configuration/sanity check util at > all? Or mabye it's not requested feature? Unfortunately our build system isn't really kind in this regard, and typically the answer has been "you should understand what's going into your KERNCONF instead of having the build system automatically handle it for you" (or at least that was the song and dance I got on questions@ 9 years ago when I first started using FreeBSD). It would be nice if the ipfw authors actually generated a manpage that listed the requirements ;)... Also, FWIW: ./ip_fw_nat.c:MODULE_DEPEND(ipfw_nat, libalias, 1, 1, 1); Cheers, -Garrett