From owner-freebsd-current@freebsd.org Sun Aug 12 22:27:07 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 37ADB10558EA for ; Sun, 12 Aug 2018 22:27:07 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D55F47CD5A for ; Sun, 12 Aug 2018 22:27:06 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: from mail-io0-f178.google.com (mail-io0-f178.google.com [209.85.223.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) (Authenticated sender: mmacy) by smtp.freebsd.org (Postfix) with ESMTPSA id 9C3F11C9ED for ; Sun, 12 Aug 2018 22:27:06 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: by mail-io0-f178.google.com with SMTP id v26-v6so12751411iog.5 for ; Sun, 12 Aug 2018 15:27:06 -0700 (PDT) X-Gm-Message-State: AOUpUlFvB+tyT8MWHPK4Sl75/iFLAc9fCtPEeTH2drC4N6tys3R5TZ8f XB/I4g2gcidBbmU2m9qw4cOEO5VlfllflUe/eyA= X-Google-Smtp-Source: AA+uWPzxYVGdbqNjnG7H31otavWtKfDBkXVfU1chzBAgWaVIcof7DACSej2B21QujCihoDxPpQwtYsGUTN2woVG3bXQ= X-Received: by 2002:a6b:5a08:: with SMTP id o8-v6mr12813661iob.5.1534112826124; Sun, 12 Aug 2018 15:27:06 -0700 (PDT) MIME-Version: 1.0 References: <748179e1-72bd-99e3-2267-302274be3d32@protected-networks.net> In-Reply-To: From: Matthew Macy Date: Sun, 12 Aug 2018 15:26:54 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: kernel build failure To: Warner Losh Cc: Trond.Endrestol@fagskolen.gjovik.no, Michael Butler , freebsd-current Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 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: Sun, 12 Aug 2018 22:27:07 -0000 On Sun, Aug 12, 2018 at 3:25 PM Warner Losh wrote: > > > On Sun, Aug 12, 2018, 3:40 PM Matthew Macy wrote: > >> Sorry guys, last time I touched ZFS I tried to push to make it an option >> to >> statically link and was actually told that it wasn't something anyone el= se >> wanted. The issue comes from ZFS not being in NOTES and thus not in LINT= . >> > > LINT is generated from NOTES automatically... > Yes, hence the "and thus not in LINT" > Warner > > -M >> >> On Sun, Aug 12, 2018 at 12:46 PM Trond Endrest=C3=B8l < >> Trond.Endrestol@fagskolen.gjovik.no> wrote: >> >> > On Sun, 12 Aug 2018 16:51+0200, Trond Endrest=C3=B8l wrote: >> > >> > > On Sun, 12 Aug 2018 09:37-0400, Michael Butler wrote: >> > > >> > > > Is anyone else seeing this when building a new kernel with ZFS >> > compiled in? >> > > > >> > > > Building /usr/obj/usr/src/amd64.amd64/sys/VM01/vers.o >> > > > Building /usr/obj/usr/src/amd64.amd64/sys/VM01/kernel >> > > > --- kernel --- >> > > > linking kernel >> > > > ld: error: undefined symbol: dbuf_stats_init >> > > > >>> referenced by dbuf.c >> > > > >>> dbuf.o:(dbuf_init) >> > > > >> > > > ld: error: undefined symbol: dbuf_stats_destroy >> > > > >>> referenced by dbuf.c >> > > > >>> dbuf.o:(dbuf_fini) >> > > > *** [kernel] Error code 1 >> > > >> > > I was just about to create a thread of my own. >> > > >> > > I suspect r337670 didn't add everything >> > > cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c depends on. See >> > > lines 652 and 697. >> > > >> > > Meanwhile, I'll attempt to revert to r337669. >> > >> > r337669 builds and runs. >> > >> > Looking further into r337670, it seems >> > cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dbuf.h added prototypes >> > for dbuf_stats_init() and dbuf_stats_destroy(), but no implementation >> > can be found in any of the files affected by r337670. >> > >> > -- >> > Trond. >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.or= g >> " >> >