Subject: pkg/19222: sysutils/grub fails to build under NetBSD-current
To: None <gnats-bugs@gnats.netbsd.org>
From: Julio Merino <jmmv@menta.net>
List: netbsd-bugs
Date: 12/01/2002 19:18:22
>Number:         19222
>Category:       pkg
>Synopsis:       sysutils/grub fails to build under NetBSD-current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 01 10:14:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Julio Merino
>Release:        NetBSD 1.6K
>Organization:
>Environment:
	
	
System: NetBSD darkstar.local 1.6K NetBSD 1.6K (DARKSTAR) #144: Sun Dec 1 18:58:40 CET 2002 sysbuild@darkstar.local:/var/sysbuild/kernel/DARKSTAR i386
Architecture: i386
Machine: i386
>Description:
	The package sysutils/grub fails to build because an undefined
	reference to __enable_execute_stack. I've been looking at the
	sources and this symbol appears nowhere. It neither appears if
	I do an nm /usr/lib/* | grep enable_execute_stack.

	The package builds fine under 1.6_STABLE, but fails under
	current (1.6K).

	Log follows:

--------------------
=> Checksum OK for grub-0.92.tar.gz.
work.i386 -> /var/build/obj/pkgsrc/sysutils/grub/work.i386
===> Extracting for grub-0.92
===> Required installed package gmake>=3.78: gmake-3.80 found
===> Patching for grub-0.92
===> Buildlinking for grub-0.92
===> Configuring for grub-0.92
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether /usr/pkg/bin/gmake sets ${MAKE}... yes
checking build system type... i386-unknown-netbsdelf1.6K
checking host system type... i386--netbsdelf
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i386--netbsdelf-gcc... cc
checking for i386--netbsdelf-gcc... (cached) cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for style of include used by /usr/pkg/bin/gmake... GNU
checking dependency style of cc... gcc
checking dependency style of cc... (cached) gcc
checking for i386--netbsdelf-ranlib... no
checking for ranlib... ranlib
checking whether -Wundef works... yes
checking for i386--netbsdelf-objcopy... no
checking for objcopy... objcopy
checking if C symbols get an underscore after compilation... no
checking whether objcopy works for absolute addresses... yes
checking whether addr32 must be in the same line as the instruction... yes
checking for .code16 addr32 assembler support... yes
checking whether an absolute indirect call/jump must not be prefixed with an asterisk... no
checking if start is defined by the compiler... no
checking if _start is defined by the compiler... yes
checking if __bss_start is defined by the compiler... yes
checking if _edata is defined by the compiler... yes
checking if edata is defined by the compiler... yes
checking if end is defined by the compiler... yes
checking if _end is defined by the compiler... yes
checking for opendisk in -lutil... yes
checking for wgetch in -lncurses... yes
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking ncurses/curses.h usability... no
checking ncurses/curses.h presence... no
checking for ncurses/curses.h... no
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating stage1/Makefile
config.status: creating stage2/Makefile
config.status: creating docs/Makefile
config.status: creating lib/Makefile
config.status: creating util/Makefile
config.status: creating grub/Makefile
config.status: creating netboot/Makefile
config.status: creating util/grub-image
config.status: creating util/grub-install
config.status: creating util/grub-md5-crypt
config.status: creating config.h
config.status: executing default-1 commands
===> Building for grub-0.92
cd . \
  && CONFIG_FILES= CONFIG_HEADERS=config.h \
     /bin/sh ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
/usr/pkg/bin/gmake  all-recursive
gmake[1]: Entering directory `/var/build/obj/pkgsrc/sysutils/grub/work.i386/grub-0.92'
Making all in netboot
gmake[2]: Entering directory `/var/build/obj/pkgsrc/sysutils/grub/work.i386/grub-0.92/netboot'
gmake[2]: No se hace nada para `all'.
gmake[2]: Leaving directory `/var/build/obj/pkgsrc/sysutils/grub/work.i386/grub-0.92/netboot'
Making all in stage2
gmake[2]: Entering directory `/var/build/obj/pkgsrc/sysutils/grub/work.i386/grub-0.92/stage2'
cc  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1 -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-asm.o `test -f asm.S || echo './'`asm.S
source='bios.c' object='pre_stage2_exec-bios.o' libtool=no \
depfile='.deps/pre_stage2_exec-bios.Po' tmpdepfile='.deps/pre_stage2_exec-bios.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-bios.o `test -f bios.c || echo './'`bios.c
source='boot.c' object='pre_stage2_exec-boot.o' libtool=no \
depfile='.deps/pre_stage2_exec-boot.Po' tmpdepfile='.deps/pre_stage2_exec-boot.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-boot.o `test -f boot.c || echo './'`boot.c
source='builtins.c' object='pre_stage2_exec-builtins.o' libtool=no \
depfile='.deps/pre_stage2_exec-builtins.Po' tmpdepfile='.deps/pre_stage2_exec-builtins.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-builtins.o `test -f builtins.c || echo './'`builtins.c
source='common.c' object='pre_stage2_exec-common.o' libtool=no \
depfile='.deps/pre_stage2_exec-common.Po' tmpdepfile='.deps/pre_stage2_exec-common.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-common.o `test -f common.c || echo './'`common.c
source='char_io.c' object='pre_stage2_exec-char_io.o' libtool=no \
depfile='.deps/pre_stage2_exec-char_io.Po' tmpdepfile='.deps/pre_stage2_exec-char_io.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-char_io.o `test -f char_io.c || echo './'`char_io.c
source='cmdline.c' object='pre_stage2_exec-cmdline.o' libtool=no \
depfile='.deps/pre_stage2_exec-cmdline.Po' tmpdepfile='.deps/pre_stage2_exec-cmdline.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-cmdline.o `test -f cmdline.c || echo './'`cmdline.c
source='disk_io.c' object='pre_stage2_exec-disk_io.o' libtool=no \
depfile='.deps/pre_stage2_exec-disk_io.Po' tmpdepfile='.deps/pre_stage2_exec-disk_io.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-disk_io.o `test -f disk_io.c || echo './'`disk_io.c
source='gunzip.c' object='pre_stage2_exec-gunzip.o' libtool=no \
depfile='.deps/pre_stage2_exec-gunzip.Po' tmpdepfile='.deps/pre_stage2_exec-gunzip.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-gunzip.o `test -f gunzip.c || echo './'`gunzip.c
source='fsys_ext2fs.c' object='pre_stage2_exec-fsys_ext2fs.o' libtool=no \
depfile='.deps/pre_stage2_exec-fsys_ext2fs.Po' tmpdepfile='.deps/pre_stage2_exec-fsys_ext2fs.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-fsys_ext2fs.o `test -f fsys_ext2fs.c || echo './'`fsys_ext2fs.c
source='fsys_fat.c' object='pre_stage2_exec-fsys_fat.o' libtool=no \
depfile='.deps/pre_stage2_exec-fsys_fat.Po' tmpdepfile='.deps/pre_stage2_exec-fsys_fat.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-fsys_fat.o `test -f fsys_fat.c || echo './'`fsys_fat.c
source='fsys_ffs.c' object='pre_stage2_exec-fsys_ffs.o' libtool=no \
depfile='.deps/pre_stage2_exec-fsys_ffs.Po' tmpdepfile='.deps/pre_stage2_exec-fsys_ffs.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-fsys_ffs.o `test -f fsys_ffs.c || echo './'`fsys_ffs.c
source='fsys_jfs.c' object='pre_stage2_exec-fsys_jfs.o' libtool=no \
depfile='.deps/pre_stage2_exec-fsys_jfs.Po' tmpdepfile='.deps/pre_stage2_exec-fsys_jfs.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-fsys_jfs.o `test -f fsys_jfs.c || echo './'`fsys_jfs.c
source='fsys_minix.c' object='pre_stage2_exec-fsys_minix.o' libtool=no \
depfile='.deps/pre_stage2_exec-fsys_minix.Po' tmpdepfile='.deps/pre_stage2_exec-fsys_minix.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-fsys_minix.o `test -f fsys_minix.c || echo './'`fsys_minix.c
source='fsys_reiserfs.c' object='pre_stage2_exec-fsys_reiserfs.o' libtool=no \
depfile='.deps/pre_stage2_exec-fsys_reiserfs.Po' tmpdepfile='.deps/pre_stage2_exec-fsys_reiserfs.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-fsys_reiserfs.o `test -f fsys_reiserfs.c || echo './'`fsys_reiserfs.c
source='fsys_vstafs.c' object='pre_stage2_exec-fsys_vstafs.o' libtool=no \
depfile='.deps/pre_stage2_exec-fsys_vstafs.Po' tmpdepfile='.deps/pre_stage2_exec-fsys_vstafs.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-fsys_vstafs.o `test -f fsys_vstafs.c || echo './'`fsys_vstafs.c
fsys_vstafs.c: In function `vstafs_read':
fsys_vstafs.c:189: warning: declaration of `a' shadows global declaration
fsys_vstafs.c:191: warning: declaration of `curr_ext' shadows global declaration
source='fsys_xfs.c' object='pre_stage2_exec-fsys_xfs.o' libtool=no \
depfile='.deps/pre_stage2_exec-fsys_xfs.Po' tmpdepfile='.deps/pre_stage2_exec-fsys_xfs.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-fsys_xfs.o `test -f fsys_xfs.c || echo './'`fsys_xfs.c
source='hercules.c' object='pre_stage2_exec-hercules.o' libtool=no \
depfile='.deps/pre_stage2_exec-hercules.Po' tmpdepfile='.deps/pre_stage2_exec-hercules.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-hercules.o `test -f hercules.c || echo './'`hercules.c
source='serial.c' object='pre_stage2_exec-serial.o' libtool=no \
depfile='.deps/pre_stage2_exec-serial.Po' tmpdepfile='.deps/pre_stage2_exec-serial.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-serial.o `test -f serial.c || echo './'`serial.c
source='smp-imps.c' object='pre_stage2_exec-smp-imps.o' libtool=no \
depfile='.deps/pre_stage2_exec-smp-imps.Po' tmpdepfile='.deps/pre_stage2_exec-smp-imps.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-smp-imps.o `test -f smp-imps.c || echo './'`smp-imps.c
source='stage2.c' object='pre_stage2_exec-stage2.o' libtool=no \
depfile='.deps/pre_stage2_exec-stage2.Po' tmpdepfile='.deps/pre_stage2_exec-stage2.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-stage2.o `test -f stage2.c || echo './'`stage2.c
source='md5.c' object='pre_stage2_exec-md5.o' libtool=no \
depfile='.deps/pre_stage2_exec-md5.Po' tmpdepfile='.deps/pre_stage2_exec-md5.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -I/usr/pkg/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef  -fno-builtin -nostdinc  -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include -c -o pre_stage2_exec-md5.o `test -f md5.c || echo './'`md5.c
cc  -O2 -pipe -O2 -march=pentiumpro -I/usr/pkg/include  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o pre_stage2.exec -nostdlib -Wl,-N -Wl,-Ttext -Wl,8200 pre_stage2_exec-asm.o pre_stage2_exec-bios.o pre_stage2_exec-boot.o pre_stage2_exec-builtins.o pre_stage2_exec-common.o pre_stage2_exec-char_io.o pre_stage2_exec-cmdline.o pre_stage2_exec-disk_io.o pre_stage2_exec-gunzip.o pre_stage2_exec-fsys_ext2fs.o pre_stage2_exec-fsys_fat.o pre_stage2_exec-fsys_ffs.o pre_stage2_exec-fsys_jfs.o pre_stage2_exec-fsys_minix.o pre_stage2_exec-fsys_reiserfs.o pre_stage2_exec-fsys_vstafs.o pre_stage2_exec-fsys_xfs.o pre_stage2_exec-hercules.o pre_stage2_exec-serial.o pre_stage2_exec-smp-imps.o pre_stage2_exec-stage2.o pre_stage2_exec-md5.o  
pre_stage2_exec-builtins.o: In function `blocklist_func':
pre_stage2_exec-builtins.o(.text+0x236): undefined reference to `__enable_execute_stack'
pre_stage2_exec-builtins.o: In function `install_func':
pre_stage2_exec-builtins.o(.text+0x158d): undefined reference to `__enable_execute_stack'
pre_stage2_exec-builtins.o(.text+0x15b0): undefined reference to `__enable_execute_stack'
gmake[2]: *** [pre_stage2.exec] Error 1
gmake[2]: Leaving directory `/var/build/obj/pkgsrc/sysutils/grub/work.i386/grub-0.92/stage2'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/build/obj/pkgsrc/sysutils/grub/work.i386/grub-0.92'
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /s/pkgsrc/sysutils/grub
*** Error code 1

Stop.
make: stopped in /s/pkgsrc/sysutils/grub
--------------------

>How-To-Repeat:
	Under a current system:
	cd pkgsrc/sysutils/grub
	make
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: