From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N3GoM-0005B7-51 for mharc-grub-devel@gnu.org; Wed, 28 Oct 2009 18:16:10 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3GoJ-0005Aa-5U for grub-devel@gnu.org; Wed, 28 Oct 2009 18:16:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3GoC-00059k-Uq for grub-devel@gnu.org; Wed, 28 Oct 2009 18:16:06 -0400 Received: from [199.232.76.173] (port=53759 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3GoC-00059h-P5 for grub-devel@gnu.org; Wed, 28 Oct 2009 18:16:00 -0400 Received: from ey-out-1920.google.com ([74.125.78.149]:5986) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3GoC-0000J8-Dr for grub-devel@gnu.org; Wed, 28 Oct 2009 18:16:00 -0400 Received: by ey-out-1920.google.com with SMTP id 3so1561672eyh.34 for ; Wed, 28 Oct 2009 15:15:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=iGy84DJ+yh2apovGNqNrhmzAUX6XEgJs+nOuM2O85Yk=; b=gRVRMi6bzehOKfbsIKwqjpAWKsJbRCNArQBxjgewTwseVrO0Gvjwg7i1Z6dG3pYMO+ CIok1oU7ZCqnRsA3L92+7UOVQ0Rju4G/nIBXvJaKWRCDWCnnMI//hhaLI+4QQR2s/Hn5 TsekA/fNFUGh787jZc/+gHttvFZLNoN2gKZOA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=JeXx68Q+ZSE4WgW5hddXfJdbf3d/ko03Mz/UVgq5Nbd5TSo6OfaJXlsoFm6Qram2Zb ZHbh4a3L8nxjQZrkCfbucmS0dOe75WiYJT8IpvH6v8euK59g6a0FT9uaFj8h1vtI981l 1OIyRG4FkWn6dj/0YbqEmi0vrCJxVAB7TnfgU= Received: by 10.211.160.4 with SMTP id m4mr2073529ebo.24.1256768159167; Wed, 28 Oct 2009 15:15:59 -0700 (PDT) Received: from debian.bg45.phnet (gprs13.swisscom-mobile.ch [193.247.250.13]) by mx.google.com with ESMTPS id 7sm4093422eyg.1.2009.10.28.15.15.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 28 Oct 2009 15:15:58 -0700 (PDT) Message-ID: <4AE8C29C.1070409@gmail.com> Date: Wed, 28 Oct 2009 23:15:56 +0100 From: Vladimir 'phcoder' Serbinenko User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: The development of GRUB 2 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Problem building Grub2 on OSX X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2009 22:16:07 -0000 André Lopes wrote: > Hi all, > > I'm trying to build Grub2 in my Macbook5,1. The OSX version is 10.5.8, > and the Grub2 source code was obtained from the SVN trunk > > So, after the ./configure --with-platform=efi --target=i386 i get this: > ******************************************************* > GRUB2 will be compiled with following components: > Platform: i386-efi > grub-emu: Yes > USB support for grub-emu: Yes > With memory debugging: No > efiemu runtime: No (cannot compile with -m64 -mcmodel=large > -mno-red-zone -nostdlib) > grub-fstest: Yes > grub-mkfont: Yes > ******************************************************* > > Everything looks fine, so i issue a make command, that gives me this > error: > cc1: warnings being treated as errors > kern/misc.c:62: warning: no previous prototype for ‘memcpy’ > kern/misc.c:66: warning: no previous prototype for ‘memmove’ > make: *** [kernel_mod-kern_misc.o] Error 1 > > I've tryied also to configure with the argument --disable-werror, but > on the make the error is similar: > gcc -I. -I./. -I. -I./include -I./include -Wall -W -Wall -W -Wshadow > -Wpointer-arith -Wmissing-prototypes -Wundef > -Wstrict-prototypes -g -Os -falign-jumps=1 -falign-loops=1 > -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow > -DAPPLE_CC=1 -fnested-functions -m32 -fno-stack-protector > -mno-stack-arg-probe -fno-builtin -m32 -MD -c -o kernel_mod-symlist.o > symlist.c > symlist.c: In function ‘grub_register_exported_symbols’: > symlist.c:219: error: ‘memcmp’ undeclared (first use in this function) > symlist.c:219: error: (Each undeclared identifier is reported only once > symlist.c:219: error: for each function it appears in.) > symlist.c:219: warning: missing initializer > symlist.c:219: warning: (near initialization for ‘tab[157].addr’) > symlist.c:220: error: ‘memcpy’ undeclared (first use in this function) > symlist.c:220: warning: missing initializer > symlist.c:220: warning: (near initialization for ‘tab[158].addr’) > symlist.c:221: error: ‘memmove’ undeclared (first use in this function) > symlist.c:221: warning: missing initializer > symlist.c:221: warning: (near initialization for ‘tab[159].addr’) > symlist.c:222: error: ‘memset’ undeclared (first use in this function) > symlist.c:222: warning: missing initializer > symlist.c:222: warning: (near initialization for ‘tab[160].addr’) > symlist.c:226: error: duplicate case value > symlist.c:226: error: previously used here > make: *** [kernel_mod-symlist.o] Error 1 > > Can anyone help me on this issue? > It seems to be caused by following commit: 2009-10-25 Robert Millan * include/grub/misc.h: Fix wrong evaluation of APPLE_CC. (memset): Fix function prototype. In particular by following part: --- include/grub/misc.h 2009-10-24 23:22:14 +0000 +++ include/grub/misc.h 2009-10-25 15:14:08 +0000 @@ -75,11 +75,11 @@ } /* Prototypes for aliases. */ -#if !defined (GRUB_UTIL) || !defined (APPLE_CC) +#if !defined (GRUB_UTIL) && !defined (APPLE_CC) int EXPORT_FUNC(memcmp) (const void *s1, const void *s2, grub_size_t n); void *EXPORT_FUNC(memmove) (void *dest, const void *src, grub_size_t n); void *EXPORT_FUNC(memcpy) (void *dest, const void *src, grub_size_t n); It should have been -#if !defined (GRUB_UTIL) || !defined (APPLE_CC) +#if !defined (GRUB_UTIL) Try this way and report back > Many thanks, > -- > André Lopes > ------------------------------------------------------------------------ > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git