Andre Smith <address@hidden> writes:
gcc -Icommands -Igrub2/commands -I. -Iinclude -Igrub2/include -Wall -
W -DGRUB_DATADIR=\"/usr/local/share/grub/powerpc-ieee1275\" -g -O2 -
DGRUB_UTIL=1 -c -o grub_emu-commands_help.o grub2/commands/help.c
grub2/commands/help.c: In function 'grub_cmd_help':
grub2/commands/help.c:42: error: nested functions are not supported
on MacOSX
grub2/commands/help.c:65: error: nested functions are not supported
on MacOSX
make: *** [grub_emu-commands_help.o] Error 1
After searching a bit with google, I found this thread:
http://lists.apple.com/archives/Xcode-users/2005/Nov/msg00267.html
It seems that the apple version of gcc (?) had nested functions
disabled because of the executable stack. It seems to me that this
was done by the apple developers and not by the gcc developers.
The reason they did this was because they was to disable executable
stacks. And the way they did seems quite awkward to me. Instead of
disabling it by default they just disabled it completely. You might
have to consider building gcc yourself or using an older version.
--
Marco
_______________________________________________
Grub-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/grub-devel