From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JKFwt-0004ir-Vk for mharc-grub-devel@gnu.org; Wed, 30 Jan 2008 11:38:08 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKFws-0004ii-7d for grub-devel@gnu.org; Wed, 30 Jan 2008 11:38:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKFwq-0004iO-SW for grub-devel@gnu.org; Wed, 30 Jan 2008 11:38:05 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKFwq-0004iL-NY for grub-devel@gnu.org; Wed, 30 Jan 2008 11:38:04 -0500 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JKFwq-0000BZ-72 for grub-devel@gnu.org; Wed, 30 Jan 2008 11:38:04 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JKFwh-0002j5-7M for grub-devel@gnu.org; Wed, 30 Jan 2008 16:37:55 +0000 Received: from adsl-69-234-200-201.dsl.irvnca.pacbell.net ([69.234.200.201]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Jan 2008 16:37:55 +0000 Received: from wa1ter by adsl-69-234-200-201.dsl.irvnca.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Jan 2008 16:37:55 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: grub-devel@gnu.org From: walt Date: Wed, 30 Jan 2008 08:38:23 -0800 Organization: none Message-ID: References: <20080126172120.GA4119@thorin> <1201378308.10461.10.camel@k9.localnet> <20080127085650.GB11381@thorin> <20080129053051.GY1341@kirkkit.kollasch.net> <20080129134707.GF27435@thorin> <20080130003750.GB1341@kirkkit.kollasch.net> <20080130132314.GA15277@thorin> <1201701103.17791.9.camel@k9.localnet> <20080130140017.GA16576@thorin> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: adsl-69-234-200-201.dsl.irvnca.pacbell.net User-Agent: Thunderbird 3.0a1pre (X11/2008013004) In-Reply-To: <20080130140017.GA16576@thorin> Sender: news X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Subject: Re: Compiling grub2 on *BSD? 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, 30 Jan 2008 16:38:06 -0000 Robert Millan wrote: >>> Ok, so we need __enable_execute_stack then, I guess. I find it strange that >>> some parts of libgcc can not be used in freestanding code. Does this happen >>> with the unpatched version of GCC too? >>> >>> Maybe we'll have add some dummy symbols to make it happy.... > What happens if you define the missing symbols somewhere? Any part of > the GRUB kernel will do (e.g. kern/main.c). Just add them as empty > functions: > > void > __sysctl (void) > { > } > > void > mprotect (void) > { > } > > and check if that works. BTW, I just discovered that this was discussed in a thread beginning 11-30-2005 but never finished. Anyway, your suggestion helps, but not quite enough. The c code now compiles and links okay into *.mod files, but now __enable_execute_stack shows up in several und-*.lst files, so that moddep.lst won't build. I cheated by copying moddep.lst from my linux machine, and that allowed the build of grub to finish, but now I get that same missing symbol when I *run* grub.