Date: Sun, 30 Nov 2008 17:38:14 +0100 From: "Paul B. Mahol" <onemda@gmail.com> To: "Marko Zec" <zec@icir.org> Cc: freebsd-current <freebsd-current@freebsd.org> Subject: Re: building module regression Message-ID: <3a142e750811300838u59268442l4ecb7b2e52ac3a34@mail.gmail.com> In-Reply-To: <Pine.LNX.4.63.0811300817470.32000@jack.ICSI.Berkeley.EDU> References: <3a142e750811300815we050f66l5abc85d02fe3931b@mail.gmail.com> <Pine.LNX.4.63.0811300817470.32000@jack.ICSI.Berkeley.EDU>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/30/08, Marko Zec <zec@icir.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3a142e750811300838u59268442l4ecb7b2e52ac3a34>