From owner-freebsd-current@FreeBSD.ORG Mon Jun 25 06:09:08 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F1D0816A469 for ; Mon, 25 Jun 2007 06:09:08 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from munchkin.clue.co.za (munchkin.clue.co.za [66.219.59.160]) by mx1.freebsd.org (Postfix) with ESMTP id BD93513C45E for ; Mon, 25 Jun 2007 06:09:08 +0000 (UTC) (envelope-from ianf@clue.co.za) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=20070313; d=clue.co.za; h=Received:Received:Received:To:cc:From:Subject:In-Reply-To:X-Attribution:Date:Message-Id; b=e+auytej8qOabl9eNcb2dxwnD7/1lhDy6Btqx4cGvROx8LzYN9E12teaodcpKtm4LSl6cg/p12YZskJn4dnAOOTn9YPvMm35ljrYaTyKA5f1Wn3jHb96Jka1IjWz7ldoFvEc+N16h1jFEJn5yCEMY3wZjyfjrdqvwl2cmytDF0FEX32LNSuf9IvvC+0FjkpTPLml/O/N5OjSKZW4flwq0UHd/9jXUcTDJIdpA0i895TlztJf2O3bYlIu/1t8gOD0; Received: from uucp by munchkin.clue.co.za with local (Exim 4.66) (envelope-from ) id 1I2hl6-0002bn-5U; Mon, 25 Jun 2007 06:09:08 +0000 Received: from atlas.clue.co.za ([10.0.0.18] helo=clue.co.za) by urchin.clue.co.za with esmtpa (Exim 4.66) (envelope-from ) id 1I2hko-0001M8-5o; Mon, 25 Jun 2007 06:08:50 +0000 Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1I2hkn-0001mc-N6; Mon, 25 Jun 2007 08:08:49 +0200 To: gary.jennejohn@freenet.de From: Ian FREISLICH In-Reply-To: Message from Gary Jennejohn of "Sun, 24 Jun 2007 19:13:45 +0200." <20070624191345.7f08c10e.garyj@jennejohn.org> X-Attribution: BOFH Date: Mon, 25 Jun 2007 08:08:49 +0200 Message-Id: Cc: freebsd-current@freebsd.org Subject: Re: weird error with nmh X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 25 Jun 2007 06:09:09 -0000 Gary Jennejohn wrote: > I'm using exmh with nmh on a freshly installed AMD64-current: > 7.0-CURRENT FreeBSD 7.0-CURRENT #4: Sat Jun 23 19:29:01 CEST > 2007 > > nmh uses its own version of strcasecmp() because in many cases it > passes NULL pointers to it and must check for that. > > However, somehow the version in libc gets used rather than the version > from nmh and calling e.g. repl results in a SIGSEGV because the NULL > pointer is dereferenced. > > I was forced to rename the routine to nmhstrcasecmp() all over the > place. After that repl works. > > My question - why isn't the version in nmh overriding the version in > libc? Am I misunderstanding something here? I traced this problem to the recent gcc import and then ran out of time to debug further. Glad that you've got furter than I did. It seems that strcasemp is defined in the repl binary: 08061abb T strcasecmp U strcat@@FBSD_1.0 U strchr@@FBSD_1.0 U strcmp@@FBSD_1.0 U strcpy@@FBSD_1.0 U strdup@@FBSD_1.0 U strerror@@FBSD_1.0 So I'm really not sure why the linker is choosing libc's version over this one. Ian -- Ian Freislich