Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Nov 2011 10:43:20 -0800
From:      Garrett Cooper <yanegomi@gmail.com>
To:        Alexander Yerenkow <yerenkow@gmail.com>
Cc:        freebsd-current@freebsd.org, Peter Jeremy <peterjeremy@acm.org>
Subject:   Re: Problem compiling kernel
Message-ID:  <CAGH67wQ2xc3MBNGrnh4biHSFsTDMbCN5LYnR2gcsPLDAoV8z6w@mail.gmail.com>
In-Reply-To: <CAPJF9wkf7=Rhn-fu==D3q7-6sUvVwk8bAEpsy-0fWxGLK7diEw@mail.gmail.com>
References:  <CAPJF9wmL%2Be1M%2BP4AZwA-v=n5%2BroTm8UHUcOwXH2C1j0BukYxGQ@mail.gmail.com> <20111107075734.GC91353@server.vk2pj.dyndns.org> <A5FD7CCF-6CBD-43A7-8520-38B529BC8418@gmail.com> <CAPJF9wkf7=Rhn-fu==D3q7-6sUvVwk8bAEpsy-0fWxGLK7diEw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 7, 2011 at 1:57 AM, Alexander Yerenkow <yerenkow@gmail.com> wro=
te:
>
>
> 2011/11/7 Garrett Cooper <yanegomi@gmail.com>
>>
>> On Nov 6, 2011, at 11:57 PM, Peter Jeremy wrote:
>>
>> > On 2011-Nov-06 17:41:49 +0200, Alexander Yerenkow <yerenkow@gmail.com>
>> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wQ2xc3MBNGrnh4biHSFsTDMbCN5LYnR2gcsPLDAoV8z6w>