From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758213AbYENKsX (ORCPT ); Wed, 14 May 2008 06:48:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754559AbYENKsM (ORCPT ); Wed, 14 May 2008 06:48:12 -0400 Received: from wa-out-1112.google.com ([209.85.146.177]:33536 "EHLO wa-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754506AbYENKsK convert rfc822-to-8bit (ORCPT ); Wed, 14 May 2008 06:48:10 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MA7DTBUIdG8O7NnUleaQWS86BRDUbqvY5Z2T7ujf/HGybLfbi8fwIoYlsA/EsPEMlcAUHYyIuKQVNvn1ihe7bA2iY4m/3d1qackLsuWmaP6eEnkWuge56dsBwGtmkEGYVZ4N7XGlVkrGoO2iwBlQdizoDqN3cKbMtHSBXlZPtfU= Message-ID: Date: Wed, 14 May 2008 14:48:09 +0400 From: "Cyrill Gorcunov" To: "Andreas Schwab" Subject: Re: m68k: main.c:(.init.text+0x730): undefined reference to `strlen' Cc: "Geert Uytterhoeven" , "Linux/m68k" , "Linux Kernel Development" , "Andrew Morton" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Content-Disposition: inline References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 14, 2008 at 1:57 PM, Cyrill Gorcunov wrote: > On Wed, May 14, 2008 at 12:37 PM, Andreas Schwab wrote: > > Geert Uytterhoeven writes: > > > > > My first guess is gcc is turning sizeof() into strlen() again. > > > > Definitely not. sizeof is a compile-time constant, strlen is not. More > > likely the strlen call is embedded in the expansion of strncat. > > > > Andreas. > > > > -- > > Andreas Schwab, SuSE Labs, schwab@suse.de > > SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany > > PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 > > "And now for something completely different." > > > > I've missed to add > > #include > > sorry, will make the patch today evening (or maybe someone could > make it). Thanks for report! > hmm, string.h is aready there, so there are two reason for fail I could imagine at first glance: or gcc does something strange, or the problem with linking string.o. Will check it.