From owner-freebsd-stable@FreeBSD.ORG Sat Mar 4 11:57:40 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1288B16A420; Sat, 4 Mar 2006 11:57:40 +0000 (GMT) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7330E43D45; Sat, 4 Mar 2006 11:57:39 +0000 (GMT) (envelope-from dunstan@freebsd.czest.pl) Received: from laptop.freebsd.czest.pl (gw98.internetdsl.tpnet.pl [80.53.74.98]) by freebsd.czest.pl (8.13.4/8.12.9) with ESMTP id k24C4P5m028139; Sat, 4 Mar 2006 12:04:26 GMT (envelope-from dunstan@freebsd.czest.pl) Received: from laptop.freebsd.czest.pl (localhost [127.0.0.1]) by laptop.freebsd.czest.pl (8.13.4/8.13.4) with ESMTP id k24C0Rck000784; Sat, 4 Mar 2006 13:00:27 +0100 (CET) (envelope-from dunstan@laptop.freebsd.czest.pl) Received: (from dunstan@localhost) by laptop.freebsd.czest.pl (8.13.4/8.13.4/Submit) id k24C0Rp9000783; Sat, 4 Mar 2006 13:00:27 +0100 (CET) (envelope-from dunstan) Date: Sat, 4 Mar 2006 13:00:27 +0100 From: "Wojciech A. Koszek" To: Ben Kelly Message-ID: <20060304120026.GA654@FreeBSD.czest.pl> Mail-Followup-To: Ben Kelly , stable@freebsd.org, wkoszek@freebsd.org References: <200603032047.54811.bkelly@vadev.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline In-Reply-To: <200603032047.54811.bkelly@vadev.org> User-Agent: Mutt/1.5.11 X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-2.0.2 (freebsd.czest.pl [80.48.250.4]); Sat, 04 Mar 2006 12:04:27 +0000 (UTC) Cc: stable@freebsd.org, wkoszek@freebsd.org Subject: Re: missing dependency - crypto.ko to zlib.ko X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Mar 2006 11:57:40 -0000 --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On ptk, mar 03, 2006 at 08:47:54 -0500, Ben Kelly wrote: > To: stable@freebsd.org, wkoszek@freebsd.org > From: Ben Kelly > Date: Fri, 3 Mar 2006 20:47:54 -0500 > Subject: missing dependency - crypto.ko to zlib.ko > User-Agent: KMail/1.8.3 >=20 > Hello all, >=20 > I upgraded my RELENG_6 server today and ran into a strange problem. When= ever=20 > I try to kldload crypto.ko the operation fails and I get the following er= ror=20 > in my dmesg: >=20 > link_elf: symbol inflateInit2_ undefined >=20 > I was indirectly trying to load crypto because I had geom_eli.ko in my=20 > loader.conf. I don't have any crypto hardware in the box. >=20 > I'm guessing this is related to this commit: >=20 > http://lists.freebsd.org/pipermail/cvs-src/2006-March/060511.html >=20 > It appears that the MODULE_DEPEND macro was added to cryptodev.c, but not= to=20 > crypto.c. >=20 > I tried adding MODULE_DEPEND to crypto.c and the problem went away. I'm = not=20 > that familiar with the module system, so perhaps there is something else= =20 > wrong with my configuration and this is the wrong fix. In any case, here= is=20 > the patch: >=20 >=20 > --- 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); > DECLARE_MODULE(crypto, crypto_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); > +MODULE_DEPEND(crypto, zlib, 1, 1, 1); >=20 > /* > * Create a new session. >=20 >=20 > For reference, I am running: >=20 > FreeBSD vir.in.vadev.org 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Fri = Mar =20 > 3 16:23:47 EST 2006 bkelly@vir.in.vadev.org:/usr/obj/usr/src/sys/SERV= ER =20 > i386 >=20 > Last cvsup'd at 2006-03-03 04:07:00 EST. >=20 > Please let me know if there is a better way to fix this. Any input would= be=20 > appreciated. Will be fixed ASAP. Thanks ! --=20 Wojciech A. Koszek wkoszek@FreeBSD.org http://FreeBSD.czest.pl/dunstan/ --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFECYFaYjytYsnyUUURAjCCAKC9Nx5vA+ISXxEi1dqG2skdus65cwCggUyH SMeWtwJxKMpXZbRMuyv9IQM= =qbTW -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--