Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Apr 2010 12:06:12 -0700
From:      Garrett Cooper <yanefbsd@gmail.com>
To:        Demelier David <demelier.david@gmail.com>
Cc:        freebsd-stable@freebsd.org, bms@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: buildworld fails on ifmcstat
Message-ID:  <i2j7d6fde3d1004281206o23b317efy98e8b68f1a8c574@mail.gmail.com>
In-Reply-To: <20100428184933.GA27186@Melon.malikania.fr>
References:  <20100428184933.GA27186@Melon.malikania.fr>

next in thread | previous in thread | raw e-mail | index | archive | help

On Wed, Apr 28, 2010 at 11:49 AM, Demelier David
<demelier.david@gmail.com> wrote:
> Hi,
>        I tried to make buildworld with a custom src.conf to prevent many
>        useless things since I want to build for a jail.
>
>        This is what I added:
>
>        .if defined(BUILD_JAIL)
>        WITHOUT_ACPI="YES"
>        WITHOUT_APM="YES"
>        WITHOUT_GAMES="YES"
>        WITHOUT_AMD="YES"
>        WITHOUT_AUTHPF="YES"
>        WITHOUT_AUDIT="YES"
>        WITHOUT_BLUETOOTH="YES"
>        WITHOUT_BOOT="YES"
>        WITHOUT_BSNMP="YES"
>        WITHOUT_CDDL="YES"
>        WITHOUT_DICT="YES"
>        WITHOUT_EXAMPLES="YES"
>        WITHOUT_FORTH="YES"
>        WITHOUT_GCOV="YES"
>        WITHOUT_FLOPPY="YES"
>        WITHOUT_GPIB="YES"
>        WITHOUT_HTML="YES"
>        WITHOUT_IPFILTER="YES"
>        WITHOUT_IPX="YES"
>        WITHOUT_IPFW="YES"
>        WITHOUT_JAIL="YES"
>        WITHOUT_KVM="YES"
>        WITHOUT_LEGACY_CONSOLE="YES"
>        WITHOUT_LIB32="YES"
>        WITHOUT_LPR="YES"
>        WITHOUT_NDIS="YES"
>        WITHOUT_NETCAT="YES"
>        WITHOUT_NETGRAPH="YES"
>        WITHOUT_NIS="YES"
>        WITHOUT_NTP="YES"
>        WITHOUT_PF="YES"
>        WITHOUT_PORTSNAP="YES"
>        WITHOUT_PPP="YES"
>        WITHOUT_QUOTAS="YES"
>        WITHOUT_SENDMAIL="YES"
>        WITHOUT_RESCUE="YES"
>        WITHOUT_SHAREDOCS="YES"
>        WITHOUT_SYSCONS="YES"
>        WITHOUT_SYSINSTALL="YES"
>        WITHOUT_USB="YES"
>        WITHOUT_WIRELESS="YES"
>        .endif
>
>        make BUILD_JAIL=yes buildworld now fails on :
>
>        ===> usr.sbin/ifmcstat (all)
>        cc -O2 -pipe  -DINET6 -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /usr/src/usr.sbin/ifmcstat/ifmcstat.c
>        cc1: warnings being treated as errors
>        /usr/src/usr.sbin/ifmcstat/ifmcstat.c:170: warning: 'in6_ifinfo' used but never defined
>        *** Error code 1

    I would avoid the cross-post next time. The issue might be that
that application should be properly compiled when WITHOUT_INET6 is
specified, but it's kind of odd though because you don't have that
specified above... If you looked through the source around line 170
you'll find out that that function requires WITH_KVM to be defined as
well in order for you to use the function definition (and not just the
prototype).
    I've CCed bms@ for assistance.
Thanks,
-Garrett



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