From owner-freebsd-stable@freebsd.org Thu Jul 5 12:13:46 2018 Return-Path: Delivered-To: freebsd-stable@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 329051022CAA for ; Thu, 5 Jul 2018 12:13:46 +0000 (UTC) (envelope-from driesm.michiels@gmail.com) Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 90FA579182; Thu, 5 Jul 2018 12:13:45 +0000 (UTC) (envelope-from driesm.michiels@gmail.com) Received: by mail-wr1-x442.google.com with SMTP id q10-v6so1052906wrd.4; Thu, 05 Jul 2018 05:13:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:content-language :thread-index; bh=CBEbXYVutc/zZBc6IZGjknVjtgE16xJqdMSER8/7tZ4=; b=D1QgF6YCQW2p/7w7H/XHDSQpVPRnxPZjqm00VoYu0sZIH/zeme108OpKp1+Yk8ErhB AJ4smOLbi1CEw2Pi7p1rAeAQJx2Lyf5aBlVyU5ZTcuQn1cjw2t4dHq/10no2ZGZQSaQq Xjr3LLp12/B8TBg8QV40gXUIHT6EBhhalaCP/3I8whLnMCgFhfJt8kOWmwDMsZEDx96q vCFX1RZZ8EEKJgPfmnKDawAeT8BvAxk5gZ8e1KneN6nl7Vd3H7Xh1NLHYkaEQpibisMg dWS+2vOEXUjxOItt96XCjXwpgEk2Z/tIKxGea3ONbv/4tGWRp4SOQxD3it5/F81Fnbr7 Ms0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:content-language :thread-index; bh=CBEbXYVutc/zZBc6IZGjknVjtgE16xJqdMSER8/7tZ4=; b=Lxm8xfTqFKJ1yaljNmEU3QkH2NKpc8zc/tzvAwvsvuvJhs8lqWxCTI0+JHfGw4ho4F gDJ9Q2sBMBuAlhP1Mdeny6ZWsIX/9acI+aQwgBhSgxAeRCfzvhV0JnwNO5DZrDeKM6sx NMRWEZOxzg0kNqljQtdAKC0ppbCNIKJjOlF0VhROhoDuv9/heh1xBK3vaTuxdGcfR4Vz bY2lhEYDPGoil0BAeVAhYhZ5s4mbt5bgsR4Q2z+jzTolXRTyOG1K73NNKyMSQRt3EHMq f53bDf1cBAyIZ3huO3tGMpVIwNcC8irBTH7GiWdMqQY+5/6yTyoRKNw7FwD5TfEBk42M lcKw== X-Gm-Message-State: APt69E2NHy78s76IGzuuMiHTsux+JoGwLkd3dikdsKRigbyaxZxeKBg2 r8YxxOQ3Wlu8PfHwW/LqG+hvY3Be X-Google-Smtp-Source: AAOMgpcX4a1kOWHwAv62Tz7zQCdM0m6DQ8SGC+35JXX18zoanhdjm7weWDpjxqces6+X7QnE9Pcifw== X-Received: by 2002:adf:fb43:: with SMTP id c3-v6mr4716985wrs.32.1530792824168; Thu, 05 Jul 2018 05:13:44 -0700 (PDT) Received: from DriesPC (ptr-8sibhe27nh9xc4j1ahg.18120a2.ip6.access.telenet.be. [2a02:1811:2503:a700:39f5:ab63:beca:6e54]) by smtp.gmail.com with ESMTPSA id r194-v6sm11421557wmd.36.2018.07.05.05.13.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 05:13:43 -0700 (PDT) From: "Dries Michiels" To: "'Konstantin Belousov'" Cc: References: <006601d4144e$993ad000$cbb07000$@gmail.com> <20180705110505.GF5562@kib.kiev.ua> <007601d41457$89f91620$9deb4260$@gmail.com> In-Reply-To: <007601d41457$89f91620$9deb4260$@gmail.com> Subject: RE: Kernel build fails Date: Thu, 5 Jul 2018 14:13:42 +0200 Message-ID: <007701d41459$9e2189f0$da649dd0$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Content-Language: nl-be Thread-Index: AQG53nWcD+kRNyE/ZnRCJifu5BxaVQLs0/ZpAZ2VLpWkkKJhcA== X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2018 12:13:46 -0000 > > You have RACCT but not RCTL in the kernel config ? Try this. > > This is correct! > > > diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index > > b8bcbd49420..457a590cdf5 100644 > > --- a/sys/kern/kern_jail.c > > +++ b/sys/kern/kern_jail.c > > @@ -3988,8 +3988,10 @@ prison_racct_attach(struct prison *pr) static > > void prison_racct_modify(struct prison *pr) { > > +#ifdef RCTL > > struct proc *p; > > struct ucred *cred; > > +#endif > > struct prison_racct *oldprr; > > > > ASSERT_RACCT_ENABLED(); > > I'm trying the patch as we speak thanks kib. Patch works fine. Kernel builds without problems. Will probably add RCTL to my kernel config though. Thanks!