missing dependency - crypto.ko to zlib.ko

Ben Kelly bkelly at vadev.org
Sat Mar 4 01:47:59 UTC 2006

Hello all,

I upgraded my RELENG_6 server today and ran into a strange problem.  Whenever 
I try to kldload crypto.ko the operation fails and I get the following error 
in my dmesg:

  link_elf: symbol inflateInit2_ undefined

I was indirectly trying to load crypto because I had geom_eli.ko in my 
loader.conf.  I don't have any crypto hardware in the box.

I'm guessing this is related to this commit:


It appears that the MODULE_DEPEND macro was added to cryptodev.c, but not to 

I tried adding MODULE_DEPEND to crypto.c and the problem went away.  I'm not 
that familiar with the module system, so perhaps there is something else 
wrong with my configuration and this is the wrong fix.  In any case, here is 
the patch:

--- crypto.c.orig       Fri Mar  3 20:21:35 2006
+++ crypto.c    Fri Mar  3 20:21:04 2006
@@ -252,6 +252,7 @@
 MODULE_VERSION(crypto, 1);
+MODULE_DEPEND(crypto, zlib, 1, 1, 1);

  * Create a new session.

For reference, I am running:

  FreeBSD vir.in.vadev.org 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Fri Mar  
3 16:23:47 EST 2006     bkelly at vir.in.vadev.org:/usr/obj/usr/src/sys/SERVER  

Last cvsup'd at 2006-03-03 04:07:00 EST.

Please let me know if there is a better way to fix this.  Any input would be 


- Ben

More information about the freebsd-stable mailing list