From owner-freebsd-questions Sat May 25 15:27:30 2002 Delivered-To: freebsd-questions@freebsd.org Received: from starship.alienwebshop.com (starship.alienwebshop.com [209.58.150.193]) by hub.freebsd.org (Postfix) with ESMTP id DAED537B405 for ; Sat, 25 May 2002 15:27:26 -0700 (PDT) Received: by starship.alienwebshop.com (Postfix, from userid 1007) id 3DAE6BA62; Sat, 25 May 2002 18:27:26 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by starship.alienwebshop.com (Postfix) with ESMTP id 3B65F3E6D; Sat, 25 May 2002 18:27:26 -0400 (EDT) Date: Sat, 25 May 2002 18:27:26 -0400 (EDT) From: Lukas Karlsson To: Joe Marcus Clarke Cc: Giorgos Keramidas , FreeBSD User Questions List Subject: Re: conflicting types for `strcasestr' In-Reply-To: <1022364354.21495.17.camel@shumai.marcuscom.com> Message-ID: <20020525182612.S19633-100000@starship.alienwebshop.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 25 May 2002, Joe Marcus Clarke wrote: > Are you sure this is 4.2-RELEASE. 4.2 didn't have a strcasestr() in > string.h. I saw this recently on a 4.5-RELEASE system. Seems like libc > and libc_r weren't built correctly, and strcasestr() was missing from > libc, and strerror_r was missing from libc_r. > > The fix for that situation was to get the 4.5-RELEASE sources, then > rebuild libc and libc_r: > > # cd /usr/src/lib/libc > # make clean > # make install > # cd /usr/src/lib/libc_r > # make clean > # make install > > Afterwards, all ports built like a champ. > > If this is a 4.2 system, did you add a 4.5 string.h? If so, replace it > with the one from 4.2-RELEASE, and the conflict should go away. You are right on both counts. Parts of the system had been upgraded to 4.5 via /usr/src, apparently. libc.a was not rebuilt properly during that process. That fixed it. Thanks for the responses! /l ----------------------------------------------------------------------------- Lukas Karlsson karlsson@panix.com Cambridge, MA http://lukwam.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message