From owner-freebsd-current@FreeBSD.ORG Thu Jul 10 00:10:48 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 821DE37B404 for ; Thu, 10 Jul 2003 00:10:48 -0700 (PDT) Received: from white.imgsrc.co.jp (ns.imgsrc.co.jp [210.226.20.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16EF443F85 for ; Thu, 10 Jul 2003 00:10:47 -0700 (PDT) (envelope-from kuriyama@imgsrc.co.jp) Received: from localhost (localhost [127.0.0.1]) by white.imgsrc.co.jp (Postfix) with ESMTP id B3B64425B; Thu, 10 Jul 2003 16:10:45 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [2001:218:422:2::130]) by white.imgsrc.co.jp (Postfix) with ESMTP id ED3F44256; Thu, 10 Jul 2003 16:10:44 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [2001:218:422:2::130]) by black.imgsrc.co.jp (Postfix) with ESMTP id ABE361E460E; Thu, 10 Jul 2003 16:10:44 +0900 (JST) Date: Thu, 10 Jul 2003 16:10:44 +0900 Message-ID: <7mr84y7t6z.wl@black.imgsrc.co.jp> From: Jun Kuriyama To: des@des.no (Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?=) In-Reply-To: References: <7msmpv3lq0.wl@black.imgsrc.co.jp> User-Agent: Wanderlust/2.10.0 (Venus) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.4 Emacs/21.2 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by AMaViS snapshot-20020531 cc: Current Subject: Re: Panic linux ldconfig with MUTEX_PROFILING X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2003 07:10:48 -0000 At Thu, 10 Jul 2003 08:32:28 +0200, Dag-Erling Sm=F8rgrav wrote: > > I'm trying to use MUTEX_PROFILING, but paniced in linux ldconfig. > > Any clues? >=20 > is COMPAT_LINUX compiled into the kernel? You can't use modules with > MUTEX_PROFILING; it changes the size and layout of struct mtx, and > since modules aren't built with the same options as the kernel, they > use the wrong struct mtx. Ah, bingo! I'm using linux.ko for Linux ABI. I'll try with COMPAT_LINUX. But I used linux.ko which sync'ed with kernel itself (both were built with same config). Is MUTEX_PROFILING not passed to kernel module building? --=20 Jun Kuriyama // IMG SRC, Inc. // FreeBSD Project