Re: building module regression



On 11/30/08, Marko Zec <zec@xxxxxxxx> 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
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Memory >3.5GB not used?
    ... When I went to rebuild the kernel I got this message: ... *** Error code 1 ... # PAE -- Generic kernel configuration file for FreeBSD/i386 PAE ... # What follows is a list of drivers that are normally in GENERIC, ...
    (freebsd-questions)
  • Re: building module regression
    ... On Sun, 30 Nov 2008, Paul B. Mahol wrote: ... With latest kernel it is no more possible ... to do something like this (with net drivers): ... *** Error code 1 ...
    (freebsd-current)
  • Re: building module regression
    ... On Sun, 30 Nov 2008, Paul B. Mahol wrote: ... to do something like this (with net drivers): ... *** Error code 1 ... It is introduced once ifdef VIMAGE are removed from net/vnet.h in ...
    (freebsd-current)
  • Re: GetLastError / SetLastError functionality from inside a driver
    ... world of drivers into a user mode mindset. ... will receive a drivers 101 tutorial via this newsgroup. ... kernel, I would strongly recommend you take a class or two or at a minimum ... For now if you can guide me on how do i send the error code back. ...
    (microsoft.public.development.device.drivers)
  • building module regression
    ... With latest kernel it is no more possible ... to do something like this (with net drivers): ... *** Error code 1 ... It is introduced once ifdef VIMAGE are removed from net/vnet.h in ...
    (freebsd-current)