From owner-freebsd-current@FreeBSD.ORG Sun Nov 30 16:38:16 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4357D1065670 for ; Sun, 30 Nov 2008 16:38:16 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by mx1.freebsd.org (Postfix) with ESMTP id EA34D8FC26 for ; Sun, 30 Nov 2008 16:38:15 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by an-out-0708.google.com with SMTP id b6so754716ana.13 for ; Sun, 30 Nov 2008 08:38:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ntDbG4F6nu9XeDoMjWw80SKcL55Aubk5reuoPXiXeuM=; b=dUthc6BCGAchpvE9EIsY3ylGoZmwnIyhjEKz3brAiVWMahfyz5+i6zmlWAu9wq0RYW 9wzYMNCUb59WXwBRZL3YlKVp9nCKLMijN6wVtyBixx7QyMWoq2oVIl6fTrIq/U7wPmWg pzAXf6B5Az6Gb/u0HeaGRnxTFkFF25t27ivZc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=k2lN5+a+WFSyOUCYCkY4187H9oWNrnvo1mjSnIbqVQ1yJz7VSq35NBtGcFQB/Nufuc ZGgA4MuKtSmrmJpBepkz9G4fPiwIL2cVeHMX63uVmxiMmXdbKRF37ir9yWmLfAYOn1MZ /QrhyCgs0BVUm/T6tYlr0gLDZwv0JLsxYQy48= Received: by 10.231.10.194 with SMTP id q2mr270864ibq.0.1228063094953; Sun, 30 Nov 2008 08:38:14 -0800 (PST) Received: by 10.231.10.196 with HTTP; Sun, 30 Nov 2008 08:38:14 -0800 (PST) Message-ID: <3a142e750811300838u59268442l4ecb7b2e52ac3a34@mail.gmail.com> Date: Sun, 30 Nov 2008 17:38:14 +0100 From: "Paul B. Mahol" To: "Marko Zec" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3a142e750811300815we050f66l5abc85d02fe3931b@mail.gmail.com> Cc: freebsd-current Subject: Re: building module regression X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 30 Nov 2008 16:38:16 -0000 On 11/30/08, Marko Zec wrote: > On Sun, 30 Nov 2008, Paul B. Mahol wrote: > >> Hello >> >> With latest kernel it is no more possible >> to do something like this (with net drivers): >> >> # cd /sys/modules/mii && make >> >> In file included from @/net/if_var.h:723, >> from @/net/if.h:458, >> from /usr/src/sys/modules/mii/../../dev/mii/acphy.c:82: >> @/net/vnet.h:36:23: error: opt_route.h: No such file or directory >> *** Error code 1 >> >> Stop in /usr/src/sys/modules/mii >> >> It is introduced once ifdef VIMAGE are removed from net/vnet.h in >> 185419 revision. > > Yes #including any opt_*.h from an .h file is evil and will have > to be backed out, bz@ and I are discussing possible not-so-evil > alternatives and will hopefully replace the current hack soon. > > Thanks for reporting this, > > Marko > > Nice trick is to add opt_route.h into every module Makefile that have this problem. -- Paul