PANIC: sym(4) didn't MODULE_DEPEND cam(4).

Norikatsu Shigemura nork at FreeBSD.org
Fri Sep 10 10:17:18 PDT 2004


	I found a problem.  sym(4) module didn't MODULE_DEPEND on
	cam(4).  So modulaized sym(4) will be panic on boot with
	following message.

- - - - - - - - - - - - - - - - - - - - - - - - - - -
(snip)
link_elf: symbol xpt_print_path undefined
KLD file sym.ko - could not finalize loading
kernel trap 12 with interrupts disabled
(snip)
- - - - - - - - - - - - - - - - - - - - - - - - - - -

	I made a patch to fix this problem.  In my environment, this
	looks good works.  Anyone, please commit following patch.

Index: sym_hipd.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/sym/sym_hipd.c,v
retrieving revision 1.48
diff -u -r1.48 sym_hipd.c
--- sym_hipd.c	17 Mar 2004 17:50:45 -0000	1.48
+++ sym_hipd.c	10 Sep 2004 17:10:34 -0000
@@ -8501,6 +8501,7 @@
 static devclass_t sym_devclass;
 
 DRIVER_MODULE(sym, pci, sym_pci_driver, sym_devclass, 0, 0);
+MODULE_DEPEND(sym, cam, 1, 1, 1);
 
 
 static struct sym_pci_chip sym_pci_dev_table[] = {


More information about the freebsd-current mailing list