From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 13:57:36 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 449A0106564A for ; Fri, 7 Jan 2011 13:57:36 +0000 (UTC) (envelope-from gleb.kurtsou@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id C9F058FC14 for ; Fri, 7 Jan 2011 13:57:35 +0000 (UTC) Received: by fxm16 with SMTP id 16so16897865fxm.13 for ; Fri, 07 Jan 2011 05:57:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=Wcher6iriY0Zw0b+HiGoJ9wpKf/DQR0ZFPSGwtoXCt0=; b=B9Wa9y/kc71eu251JY8pzXwO+KtVBtrQzR0umw9A+9+rOHxEWhH19LBJ/aF5vRb6Zr J4QaxIMYEgvgKrb5+WBg3D/kjWSj78GKp5g9W2qjvGOGGhrDwh9ya+oUjPGOP2z2utfx RwGY1Rn3dtlwqvE4/n3KU3KmQL+qK2moNyCo0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=SA7zN6JAFJ9ui9CVc+J6ZpqpFwCY9vO4xIOR3F+7uGLASoZZDjCqFea1il3RC2fy29 fRXVB1SZk14/fNO65ZL0rmEzkGAtQ07UX9Krv67BohHTKpOTMoDVhnN1i4yJSPAlym66 qU0YZv4hrr+ifhzn/p23LaUFkqXoJ/j7k5UzA= Received: by 10.223.96.138 with SMTP id h10mr1936506fan.120.1294408654058; Fri, 07 Jan 2011 05:57:34 -0800 (PST) Received: from localhost (lan-78-157-92-5.vln.skynet.lt [78.157.92.5]) by mx.google.com with ESMTPS id a25sm6148782fak.44.2011.01.07.05.57.32 (version=SSLv3 cipher=RC4-MD5); Fri, 07 Jan 2011 05:57:33 -0800 (PST) Date: Fri, 7 Jan 2011 15:56:36 +0200 From: Gleb Kurtsou To: Lev Serebryakov Message-ID: <20110107133555.GA12490@tops.skynet.lt> References: <1241746160.20110107151559@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1241746160.20110107151559@serebryakov.spb.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-hackers@freebsd.org Subject: Re: Building "third-party" modules for kernel with debug options? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2011 13:57:36 -0000 On (07/01/2011 15:15), Lev Serebryakov wrote: > Hello, Freebsd-hackers. > > > I've found, that "struct bio" is depend on state of "DIAGNOSTIC" > flag ("options DIAGNOSTIC" in kernel config). But when I build > third-party GEOM (or any other) module with using of , > there is no access to these options. So, module, built from ports, can > fail on user's kernel, even if it built with proper kernel sources in > "/usr/src/sys". Is here any solution for this problem? Set KERNBUILDDIR before building module for options to be picked up, e.g.: export KERNBUILDDIR=`make -C /sys -V .OBJDIR`/`uname -i` cd /module/path; make > > P.S. NB: GEOM module is only example, question is about modules & > kernel options in general, so I put this message on Hackers list. > > -- > // Black Lion AKA Lev Serebryakov > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"