[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling grub2 on *BSD?

From: Robert Millan
Subject: Re: Compiling grub2 on *BSD?
Date: Sun, 27 Jan 2008 09:56:50 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Sat, Jan 26, 2008 at 12:11:48PM -0800, walt wrote:
> > What is the problem initially?
> kernel_img-kern_device.o: In function `grub_device_iterate':
> ../kern/device.c:84: undefined reference to `__enable_execute_stack'
> That's defined in libgcc so I add -lgcc to the link flags:
> /usr/lib/libgcc.a(_enable_execute_stack.o): In function
> `__enable_execute_stack':
> _enable_execute_stack.c:(.text+0x40): undefined reference to `__sysctl'
> _enable_execute_stack.c:(.text+0x6f): undefined reference to `mprotect'
> Both of those symbols are defined in libc.a, so I included that, too.
> Any ideas?

Do you see this line in ./configure ?

  checking whether `gcc' accepts `-fstack-protector'... yes

Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]