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

Re: -bsd@ stuff to do during DebConf?



Steven Chamberlain <steven@pyro.eu.org> writes:

> On 25/08/14 02:21, Christoph Egger wrote:
>> /usr/include/freebsd/stdio.h:20:7: error: expected ')'
>> FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
>
> I could use some more context.  I'm guessing it happens early on,
> compiling aic7xxx stuff?  Since that is the only module compiled with
> -isystem /usr/include/freebsd

It is

> It built OK for me here.  Do you have freebsd-glue/0.2.19?  Or what
> about versions of freebsd-buildutils, libbsd-dev?

% dpkg -l freebsd-glue freebsd-buildutils libbsd-dev
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                  Version         Architecture    Description
+++-=====================-===============-===============-===============================================
ii  freebsd-buildutils    10.0-4+b1       kfreebsd-amd64  Utilities for building FreeBSD sources
ii  freebsd-glue          0.2.19          kfreebsd-amd64  Emulate a FreeBSD build environment
ii  libbsd-dev:kfreebsd-a 0.7.0-1         kfreebsd-amd64  utility functions from BSD systems - developmen

Christoph

----------
debian/rules build
mkdir -p flavor-10.1-0-amd64
cp -af sys flavor-10.1-0-amd64/
# Compile objects with relative, not absolute paths, to avoid embedding
# full build tree paths into modules (Bug #757629)
find flavor-10.1-0-amd64/sys/modules/ \
 \( -name Makefile -o -name Makefile.inc \) \
 -exec sed -i 's@${.CURDIR}/@@' \{\} \;
touch src-flavor-amd64-stamp
# Add the abiname and the flavor to the kernel version
sed -i -e 's/^RELEASE=".*"/RELEASE="10.1-0-amd64"/g' flavor-10.1-0-amd64/sys/conf/newvers.sh
# Change ident to the kernel version
sed -i -e 's/^i=.*/i="Debian amd64 (10.1~svn270273-1)"/g' flavor-10.1-0-amd64/sys/conf/newvers.sh
# Set /lib/modules/ as module dir
sed -i -e 's,^KODIR?=.*,KODIR="/lib/modules/10.1-0-amd64",g' flavor-10.1-0-amd64/sys/conf/kern.pre.mk
# Always set explicit link target to match with ld's implicit target (needed
# to build on non-kFreeBSD)
sed -i \
	-e 's/elf32-i386-freebsd/elf64-x86-64-freebsd/g' \
	-e 's/elf64-x86-64-freebsd/elf64-x86-64-freebsd/g' \
	-e 's/elf32-tradlittlemips-freebsd/elf64-x86-64-freebsd/g' \
	-e 's/elf32-tradbigmips-freebsd/elf64-x86-64-freebsd/g' \
flavor-10.1-0-amd64/sys/conf/ldscript.amd64
# Configure the kernel
cp debian/arch/amd64/amd64.config flavor-10.1-0-amd64/sys/amd64/conf/
ln -sf amd64.config flavor-10.1-0-amd64/sys/amd64/conf/DEBCUSTOM
cd flavor-10.1-0-amd64/sys/amd64/conf \
	&& config DEBCUSTOM
WARNING: duplicate option `DEV_VT' encountered.
WARNING: duplicate device `vt' encountered.
WARNING: duplicate option `DEV_VT_VGA' encountered.
WARNING: duplicate device `vt_vga' encountered.
WARNING: duplicate option `QUOTA' encountered.
WARNING: duplicate option `KTRACE' encountered.
WARNING: duplicate option `INCLUDE_CONFIG_FILE' encountered.
WARNING: duplicate option `KDB_TRACE' encountered.
Kernel build directory is ../compile/DEBCUSTOM
Don't forget to do ``make cleandepend && make depend''
# Build it
MAKEFLAGS=-j4 make MACHINE_ARCH=amd64 -DWITHOUT_SOURCELESS -DWITHOUT_CLANG_IS_CC WERROR= -DWITHOUT_CTF -DWITHOUT_KERNEL_SYMBOLS	 -DWITHOUT_SSP CC=clang-3.4 -C flavor-10.1-0-amd64/sys/amd64/compile/DEBCUSTOM/ depend
cd ../../../modules; MAKEOBJDIRPREFIX=/ KMODDIR="/lib/modules/10.1-0-amd64" MACHINE_CPUARCH=amd64 MACHINE=amd64 KERNBUILDDIR="/home/christoph/debian/kfreebsd-10-experimental/flavor-10.1-0-amd64/sys/amd64/compile/DEBCUSTOM" SYSDIR="/home/christoph/debian/kfreebsd-10-experimental/flavor-10.1-0-amd64/sys/amd64/compile/DEBCUSTOM/../../.." make  obj
machine -> ../../../amd64/include
x86 -> ../../../x86/include
awk -f ../../../tools/vnode_if.awk ../../../kern/vnode_if.src -p
awk -f ../../../tools/vnode_if.awk ../../../kern/vnode_if.src -q
CC='clang-3.4' make -f ../../../dev/aic7xxx/aicasm/Makefile MAKESRCPATH=../../../dev/aic7xxx/aicasm
awk -f ../../../tools/acpi_quirks2h.awk ../../../dev/acpica/acpi_quirks
awk -f ../../../tools/sound/feeder_eq_mkfilter.awk --  > feeder_eq_gen.h
awk -f ../../../tools/sound/feeder_rate_mkfilter.awk --  > feeder_rate_gen.h
awk -f ../../../tools/sound/snd_fxdiv_gen.awk -- > snd_fxdiv_gen.h
awk -f ../../../tools/miidevs2h.awk ../../../dev/mii/miidevs
Warning: Object directory not changed from original /home/christoph/debian/kfreebsd-10-experimental/flavor-10.1-0-amd64/sys/amd64/compile/DEBCUSTOM
===> aac (obj)
byacc -b aicasm_gram  -d -o aicasm_gram.c ../../../dev/aic7xxx/aicasm/aicasm_gram.y
byacc -b aicasm_macro_gram -p mm -d -o aicasm_macro_gram.c ../../../dev/aic7xxx/aicasm/aicasm_macro_gram.y
awk -f ../../../tools/pccarddevs2h.awk ../../../dev/pccard/pccarddevs
lex -t   ../../../dev/aic7xxx/aicasm/aicasm_scan.l > aicasm_scan.c
lex -t  -Pmm ../../../dev/aic7xxx/aicasm/aicasm_macro_scan.l > aicasm_macro_scan.c
===> aacraid (obj)
clang-3.4 -O2 -pipe  -D_GNU_SOURCE -isystem /usr/include/freebsd -I../../../dev/aic7xxx/aicasm -std=gnu99 -Qunused-arguments -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-missing-prototypes -c ../../../dev/aic7xxx/aicasm/aicasm.c
awk -f ../../../teken/gensequences ../../../teken/sequences > teken_state.h
clang-3.4 -O2 -pipe  -D_GNU_SOURCE -isystem /usr/include/freebsd -I../../../dev/aic7xxx/aicasm -std=gnu99 -Qunused-arguments -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-missing-prototypes -c ../../../dev/aic7xxx/aicasm/aicasm_symbol.c
===> accf_data (obj)
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:16:7: error: conflicting types for 'funopen'
FILE *funopen (const void *cookie, int (*readfn)(void *, char *, int),
      ^
/usr/include/bsd/stdio.h:57:7: note: previous declaration is here
FILE *funopen(const void *cookie,
      ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:19:7: error: expected ')'
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
      ^
/usr/include/bsd/stdio.h:63:48: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                               ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:19:7: note: to match this '('
/usr/include/bsd/stdio.h:63:48: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                               ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:19:7: error: expected ')'
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
      ^
/usr/include/bsd/stdio.h:63:54: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                                     ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:19:7: note: to match this '('
/usr/include/bsd/stdio.h:63:54: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                                     ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:19:7: error: expected ')'
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
      ^
/usr/include/bsd/stdio.h:63:60: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:19:7: note: to match this '('
/usr/include/bsd/stdio.h:63:60: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:19:7: error: conflicting types for 'funopen'
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
      ^
/usr/include/bsd/stdio.h:63:28: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                           ^
/usr/include/bsd/stdio.h:57:7: note: previous declaration is here
FILE *funopen(const void *cookie,
      ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:20:7: error: expected ')'
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
      ^
/usr/include/bsd/stdio.h:64:44: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:20:7: note: to match this '('
/usr/include/bsd/stdio.h:64:44: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:20:7: error: expected ')'
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
      ^
/usr/include/bsd/stdio.h:64:54: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                                     ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:20:7: note: to match this '('
/usr/include/bsd/stdio.h:64:54: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                                     ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:20:7: error: expected ')'
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
      ^
/usr/include/bsd/stdio.h:64:60: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:20:7: note: to match this '('
/usr/include/bsd/stdio.h:64:60: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:20:7: error: conflicting types for 'funopen'
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
      ^
/usr/include/bsd/stdio.h:64:28: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                           ^
/usr/include/bsd/stdio.h:57:7: note: previous declaration is here
FILE *funopen(const void *cookie,
      ^
clang-3.4 -O2 -pipe  -D_GNU_SOURCE -isystem /usr/include/freebsd -I../../../dev/aic7xxx/aicasm -std=gnu99 -Qunused-arguments -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-missing-prototypes -c aicasm_gram.c
In file included from ../../../dev/aic7xxx/aicasm/aicasm_symbol.c:53:
In file included from /usr/include/freebsd/fcntl.h:2:
In file included from /usr/include/freebsd/sys/fcntl.h:4:
In file included from /usr/include/freebsd/sys/file.h:4:
In file included from /usr/include/sys/kglue/sys/file.h:39:
In file included from /usr/include/sys/unistd.h:1:
In file included from /usr/include/freebsd/unistd.h:6:
In file included from /usr/include/freebsd/grp.h:1:
In file included from /usr/include/grp.h:53:
/usr/include/freebsd/stdio.h:16:7: error: conflicting types for 'funopen'
FILE *funopen (const void *cookie, int (*readfn)(void *, char *, int),
      ^
/usr/include/bsd/stdio.h:57:7: note: previous declaration is here
FILE *funopen(const void *cookie,
      ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm_symbol.c:53:
In file included from /usr/include/freebsd/fcntl.h:2:
In file included from /usr/include/freebsd/sys/fcntl.h:4:
In file included from /usr/include/freebsd/sys/file.h:4:
In file included from /usr/include/sys/kglue/sys/file.h:39:
In file included from /usr/include/sys/unistd.h:1:
In file included from /usr/include/freebsd/unistd.h:6:
In file included from /usr/include/freebsd/grp.h:1:
In file included from /usr/include/grp.h:53:
/usr/include/freebsd/stdio.h:19:7: error: expected ')'
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
      ^
/usr/include/bsd/stdio.h:63:48: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                               ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:19:7: note: to match this '('
/usr/include/bsd/stdio.h:63:48: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                               ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm_symbol.c:53:
In file included from /usr/include/freebsd/fcntl.h:2:
In file included from /usr/include/freebsd/sys/fcntl.h:4:
In file included from /usr/include/freebsd/sys/file.h:4:
In file included from /usr/include/sys/kglue/sys/file.h:39:
In file included from /usr/include/sys/unistd.h:1:
In file included from /usr/include/freebsd/unistd.h:6:
In file included from /usr/include/freebsd/grp.h:1:
In file included from /usr/include/grp.h:53:
/usr/include/freebsd/stdio.h:19:7: error: expected ')'
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
      ^
/usr/include/bsd/stdio.h:63:54: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                                     ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:19:7: note: to match this '('
/usr/include/bsd/stdio.h:63:54: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                                     ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm_symbol.c:53:
In file included from /usr/include/freebsd/fcntl.h:2:
In file included from /usr/include/freebsd/sys/fcntl.h:4:
In file included from /usr/include/freebsd/sys/file.h:4:
In file included from /usr/include/sys/kglue/sys/file.h:39:
In file included from /usr/include/sys/unistd.h:1:
In file included from /usr/include/freebsd/unistd.h:6:
In file included from /usr/include/freebsd/grp.h:1:
In file included from /usr/include/grp.h:53:
/usr/include/freebsd/stdio.h:19:7: error: expected ')'
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
      ^
/usr/include/bsd/stdio.h:63:60: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:19:7: note: to match this '('
/usr/include/bsd/stdio.h:63:60: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm_symbol.c:53:
In file included from /usr/include/freebsd/fcntl.h:2:
In file included from /usr/include/freebsd/sys/fcntl.h:4:
In file included from /usr/include/freebsd/sys/file.h:4:
In file included from /usr/include/sys/kglue/sys/file.h:39:
In file included from /usr/include/sys/unistd.h:1:
In file included from /usr/include/freebsd/unistd.h:6:
In file included from /usr/include/freebsd/grp.h:1:
In file included from /usr/include/grp.h:53:
/usr/include/freebsd/stdio.h:19:7: error: conflicting types for 'funopen'
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
      ^
/usr/include/bsd/stdio.h:63:28: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                           ^
/usr/include/bsd/stdio.h:57:7: note: previous declaration is here
FILE *funopen(const void *cookie,
      ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm_symbol.c:53:
In file included from /usr/include/freebsd/fcntl.h:2:
In file included from /usr/include/freebsd/sys/fcntl.h:4:
In file included from /usr/include/freebsd/sys/file.h:4:
In file included from /usr/include/sys/kglue/sys/file.h:39:
In file included from /usr/include/sys/unistd.h:1:
In file included from /usr/include/freebsd/unistd.h:6:
In file included from /usr/include/freebsd/grp.h:1:
In file included from /usr/include/grp.h:53:
/usr/include/freebsd/stdio.h:20:7: error: expected ')'
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
      ^
/usr/include/bsd/stdio.h:64:44: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:20:7: note: to match this '('
/usr/include/bsd/stdio.h:64:44: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm_symbol.c:53:
In file included from /usr/include/freebsd/fcntl.h:2:
In file included from /usr/include/freebsd/sys/fcntl.h:4:
In file included from /usr/include/freebsd/sys/file.h:4:
In file included from /usr/include/sys/kglue/sys/file.h:39:
In file included from /usr/include/sys/unistd.h:1:
In file included from /usr/include/freebsd/unistd.h:6:
In file included from /usr/include/freebsd/grp.h:1:
In file included from /usr/include/grp.h:53:
/usr/include/freebsd/stdio.h:20:7: error: expected ')'
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
      ^
/usr/include/bsd/stdio.h:64:54: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                                     ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:20:7: note: to match this '('
/usr/include/bsd/stdio.h:64:54: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                                     ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm_symbol.c:53:
In file included from /usr/include/freebsd/fcntl.h:2:
In file included from /usr/include/freebsd/sys/fcntl.h:4:
In file included from /usr/include/freebsd/sys/file.h:4:
In file included from /usr/include/sys/kglue/sys/file.h:39:
In file included from /usr/include/sys/unistd.h:1:
In file included from /usr/include/freebsd/unistd.h:6:
In file included from /usr/include/freebsd/grp.h:1:
In file included from /usr/include/grp.h:53:
/usr/include/freebsd/stdio.h:20:7: error: expected ')'
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
      ^
/usr/include/bsd/stdio.h:64:60: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:20:7: note: to match this '('
/usr/include/bsd/stdio.h:64:60: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm_symbol.c:53:
In file included from /usr/include/freebsd/fcntl.h:2:
In file included from /usr/include/freebsd/sys/fcntl.h:4:
In file included from /usr/include/freebsd/sys/file.h:4:
In file included from /usr/include/sys/kglue/sys/file.h:39:
In file included from /usr/include/sys/unistd.h:1:
In file included from /usr/include/freebsd/unistd.h:6:
In file included from /usr/include/freebsd/grp.h:1:
In file included from /usr/include/grp.h:53:
/usr/include/freebsd/stdio.h:20:7: error: conflicting types for 'funopen'
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
      ^
/usr/include/bsd/stdio.h:64:28: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                           ^
/usr/include/bsd/stdio.h:57:7: note: previous declaration is here
FILE *funopen(const void *cookie,
      ^
9 errors generated.
===> accf_dns (obj)
*** [aicasm.o] Error code 1
awk -f ../../../tools/usbdevs2h.awk ../../../dev/usb/usbdevs -h
In file included from ../../../dev/aic7xxx/aicasm/aicasm_gram.y:50:
/usr/include/freebsd/stdio.h:16:7: error: conflicting types for 'funopen'
FILE *funopen (const void *cookie, int (*readfn)(void *, char *, int),
      ^
/usr/include/bsd/stdio.h:57:7: note: previous declaration is here
FILE *funopen(const void *cookie,
      ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm_gram.y:50:
/usr/include/freebsd/stdio.h:19:7: error: expected ')'
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
      ^
/usr/include/bsd/stdio.h:63:48: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                               ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:19:7: note: to match this '('
/usr/include/bsd/stdio.h:63:48: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                               ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm_gram.y:50:
9 errors generated.
/usr/include/freebsd/stdio.h:19:7: error: expected ')'
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
      ^
/usr/include/bsd/stdio.h:63:54: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                                     ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:19:7: note: to match this '('
/usr/include/bsd/stdio.h:63:54: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                                     ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm_gram.y:50:
/usr/include/freebsd/stdio.h:19:7: error: expected ')'
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
      ^
/usr/include/bsd/stdio.h:63:60: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:19:7: note: to match this '('
/usr/include/bsd/stdio.h:63:60: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm_gram.y:50:
/usr/include/freebsd/stdio.h:19:7: error: conflicting types for 'funopen'
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
      ^
/usr/include/bsd/stdio.h:63:28: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                           ^
/usr/include/bsd/stdio.h:57:7: note: previous declaration is here
FILE *funopen(const void *cookie,
      ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm_gram.y:50:
/usr/include/freebsd/stdio.h:20:7: error: expected ')'
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
      ^
/usr/include/bsd/stdio.h:64:44: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:20:7: note: to match this '('
/usr/include/bsd/stdio.h:64:44: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm_gram.y:50:
/usr/include/freebsd/stdio.h:20:7: error: expected ')'
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
      ^
/usr/include/bsd/stdio.h:64:54: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                                     ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:20:7: note: to match this '('
/usr/include/bsd/stdio.h:64:54: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                                     ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm_gram.y:50:
/usr/include/freebsd/stdio.h:20:7: error: expected ')'
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
      ^
/usr/include/bsd/stdio.h:64:60: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:20:7: note: to match this '('
/usr/include/bsd/stdio.h:64:60: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm_gram.y:50:
/usr/include/freebsd/stdio.h:20:7: error: conflicting types for 'funopen'
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
      ^
/usr/include/bsd/stdio.h:64:28: note: expanded from macro 'fwopen'
*** [aicasm_symbol.o] Error code 1
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                           ^
/usr/include/bsd/stdio.h:57:7: note: previous declaration is here
FILE *funopen(const void *cookie,
      ^
awk -f ../../../tools/usbdevs2h.awk ../../../dev/usb/usbdevs -d
===> accf_http (obj)
9 errors generated.
*** [aicasm_gram.o] Error code 1
3 errors
*** [aicasm] Error code 2
===> acl_nfs4 (obj)


Reply to: