On Mon, Nov 7, 2011 at 1:57 AM, Alexander Yerenkow <[email protected]> wrote:
>
>
> 2011/11/7 Garrett Cooper <[email protected]>
>>
>> On Nov 6, 2011, at 11:57 PM, Peter Jeremy wrote:
>>
>> > On 2011-Nov-06 17:41:49 +0200, Alexander Yerenkow <[email protected]>
>> > 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.  Please 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_nat.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:437:
>> 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_nat.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_nat.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:416:
>> 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 config
> 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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[email protected]"

Reply via email to