NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
stdbool.h gcc compiler query
One of the hunks of XSA-55 which I am trying to apply to xenkernel42 is:
--- a/xen/include/xen/libelf.h
+++ b/xen/include/xen/libelf.h
@@ -29,6 +29,11 @@
#error define architectural endianness
#endif
+#include <stdbool.h>
+
+typedef int elf_errorstatus; /* 0: ok; -ve (normally -1): error */
+typedef int elf_negerrnoval; /* 0: ok; -EFOO: error */
+
#undef ELFSIZE
#include "elfstructs.h"
#ifdef __XEN__
$ ls -l /usr/include/stdbool.h
-r--r--r-- 1 root wheel 1784 Apr 29 17:46 /usr/include/stdbool.h
and the beginning of the long compiler line copied below contains
-I/usr/include (as well as -nostdinc), so why do I see
In file included from libelf-private.h:25:0,
from libelf-tools.c:19:
/tmp/pkgsrc/sysutils/xenkernel42/work.x86_64/xen-4.2.2/xen/include/xen/libelf.h:32:21:
fatal error: stdbool.h: No such file or directory
compilation terminated.
? (This is on -current/amd64)
Cheers,
Patrick
gcc -O2 -I/usr/include -I/usr/pkg/include -O2 -fomit-frame-pointer -m64
-fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes
-Wdeclaration-after-statement -DNDEBUG -fno-builtin -fno-common
-Wredundant-decls -iwithprefix include -Werror -Wno-pointer-arith -pipe
-I/tmp/pkgsrc/sysutils/xenkernel42/work.x86_64/xen-4.2.2/xen/include
-I/tmp/pkgsrc/sysutils/xenkernel42/work.x86_64/xen-4.2.2/xen/include/asm-x86/mach-generic
-I/tmp/pkgsrc/sysutils/xenkernel42/work.x86_64/xen-4.2.2/xen/include/asm-x86/mach-default
-msoft-float -fno-stack-protector -fno-exceptions -Wnested-externs
-mno-red-zone -mno-sse -fpic -fno-asynchronous-unwind-tables
-DGCC_HAS_VISIBILITY_ATTRIBUTE -nostdinc -g -D__XEN__ -include
/tmp/pkgsrc/sysutils/xenkernel42/work.x86_64/xen-4.2.2/xen/include/xen/config.h
-DHAS_ACPI -DHAS_GDBSX -DHAS_PASSTHROUGH -MMD -MF .xen.d -O2
-fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall
-Wstrict-prototypes -Wdeclaration-after-statement -DNDEBUG -fno-builtin
-fno-common -Wredundant-decls -iwithprefix include -Werror -Wno-pointer-arith
-pipe -I/tmp/pkgsrc/sysutils/xenkernel42/work.x86_64/xen-4.2.2/xen/include
-I/tmp/pkgsrc/sysutils/xenkernel42/work.x86_64/xen-4.2.2/xen/include/asm-x86/mach-generic
-I/tmp/pkgsrc/sysutils/xenkernel42/work.x86_64/xen-4.2.2/xen/include/asm-x86/mach-default
-msoft-float -fno-stack-protector -fno-exceptions -Wnested-externs
-mno-red-zone -mno-sse -fpic -fno-asynchronous-unwind-tables
-DGCC_HAS_VISIBILITY_ATTRIBUTE -nostdinc -g -D__XEN__ -include
/tmp/pkgsrc/sysutils/xenkernel42/work.x86_64/xen-4.2.2/xen/include/xen/config.h
-DHAS_ACPI -DHAS_GDBSX -DHAS_PASSTHROUGH -MMD -MF .built_in.o.d -O2
-fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall
-Wstrict-prototypes -Wdeclaration-after-statement -DNDEBUG -fno-builtin
-fno-common -Wredundant-decls -iwithprefix include -Werror -Wno-pointer-arith
-pipe -I/tmp/pkgsrc/sysutils/xenkernel42/work.x86_64/xen-4.2.2/xen/include
-I/tmp/pkgsrc/sysutils/xenkernel42/work.x86_64/xen-4.2.2/xen/include/asm-x86/mach-generic
-I/tmp/pkgsrc/sysutils/xenkernel42/work.x86_64/xen-4.2.2/xen/include/asm-x86/mach-default
-msoft-float -fno-stack-protector -fno-exceptions -Wnested-externs
-mno-red-zone -mno-sse -fpic -fno-asynchronous-unwind-tables
-DGCC_HAS_VISIBILITY_ATTRIBUTE -nostdinc -g -D__XEN__ -include
/tmp/pkgsrc/sysutils/xenkernel42/work.x86_64/xen-4.2.2/xen/include/xen/config.h
-DHAS_ACPI -DHAS_GDBSX -DHAS_PASSTHROUGH -MMD -MF .x86_emulate.o.d -c
x86_emulate.c -o x86_emulate.o
Home |
Main Index |
Thread Index |
Old Index