From owner-freebsd-current Tue Feb 19 21: 8:49 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail.sat.t.u-tokyo.ac.jp (nat.keisu.t.u-tokyo.ac.jp [133.11.68.2]) by hub.freebsd.org (Postfix) with ESMTP id 3051A37B405 for ; Tue, 19 Feb 2002 21:08:43 -0800 (PST) Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [10.6.1.30]) by mail.sat.t.u-tokyo.ac.jp (Postfix) with ESMTP id E60DB2DABB; Wed, 20 Feb 2002 14:08:41 +0900 (JST) Date: Wed, 20 Feb 2002 14:08:41 +0900 Message-ID: From: Hidetoshi Shimokawa To: Mike Smith Cc: current@FreeBSD.ORG Subject: Re: HEADS UP: module build process changed In-Reply-To: <20020110173500.A10785@hub.freebsd.org> References: <20020110173500.A10785@hub.freebsd.org> User-Agent: Wanderlust/2.4.1 (Stand By Me) REMI/1.14.3 (Matsudai) FLIM/1.13.2 (Kasanui) APEL/10.3 MULE XEmacs/21.2 (beta19) (Shinjuku) (i386-unknown-freebsd3.2) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7:#j7i14gu$ jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At Thu, 10 Jan 2002 17:35:00 -0800, Mike Smith wrote: > In order to deal with this problem, I have changed the module build > process so that symbols global to the module are converted to local > symbols when the module is linked into the .kld/,ko file. In order > to allow modules that intentionally export symbols to continue to do > so, a new module makefile variable 'EXPORT_SYMS' has been implemented. Hi Mike, I don' think EXPORT_SYMS works right. EXPORT_SYMS= fw_asybusy \ fw_asyreq \ fw_bindadd \ getcsrdata \ fw_xfer_alloc \ fw_xfer_free \ By this configuration, /sys/conf/kmod.mk generates space separated list to export_syms like this: fw_asybusy fw_asyreq fw_bindadd getcsrdata fw_xfer_alloc fw_xfer_free But /sys/conf/kmod_syms.awk expects 'line break' separated list. And we cannot export any symbols. For example, Remove ppbus/plip/lpt/ppi/ppc from you kernel config. Can you load ppbus and it's childen by kldload? Even if this problem is fixed, I suppose another problem there. Even if I set EXPORT_SYMS=YES, I cannot resolv module symbols. e.g. kldload module1 kldload module2 module2 cannnot resolv symbols in module1. -stable doesn't have this problem. /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message