https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251150
Bug ID: 251150 Summary: Cannot compile zfsboot: no previous prototype for function 'main' [-Werror,-Wmissing-prototypes] Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: b...@freebsd.org Reporter: markiyan.kush...@gmail.com cc -O2 -pipe -fno-common -I/work/src.svn/stand/i386/btx/lib -nostdinc -I/work/obj/work/src.svn/amd64.amd64/stand/libsa32 -I/work/src.svn/stand/libsa -D_STANDALONE -I/work/src.svn/sys -Ddouble=jagged-little-pill -Dfloat=floaty-mcfloatface -ffunction-sections -fdata-sections -DLOADER_GELI_SUPPORT -I/work/src.svn/stand/libsa/geli -DLOADER_DISK_SUPPORT -m32 -ffreestanding -mno-mmx -mno-sse -mno-avx -mno-avx2 -msoft-float -march=i386 -mno-relax -I. -Iinclude -DBOOTPROG=\"zfsboot\" -O1 -DBOOT2 -DLOADER_GPT_SUPPORT -DLOADER_MBR_SUPPORT -DLOADER_ZFS_SUPPORT -DLOADER_UFS_SUPPORT -DSIOPRT=0x3f8 -DSIOFMT=0x3 -DSIOSPD=9600 -I/work/src.svn/stand/common -I/work/src.svn/stand/i386/common -I/work/src.svn/stand/i386/libi386 -I/work/src.svn/stand/libsa/zfs -I/work/src.svn/sys/crypto/skein -I/work/src.svn/sys/cddl/boot/zfs -I/work/src.svn/sys/contrib/openzfs/include -I/work/src.svn/sys/contrib/openzfs/include/os/freebsd/spl -I/work/src.svn/sys/contrib/openzfs/include/os/freebsd/zfs -I/work/src.svn/sys/cddl/contrib/opensolaris/common/lz4 -I/work/src.svn/stand/i386/boot2 -Wall -Waggregate-return -Wbad-function-cast -Wno-cast-align -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -g -MD -MF.depend.zfsboot.o -MTzfsboot.o -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/9.0.1/include -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Oz -Qunused-arguments -c /work/src.svn/stand/i386/zfsboot/zfsboot.c -o zfsboot.o /work/src.svn/stand/i386/zfsboot/zfsboot.c:165:1: error: no previous prototype for function 'main' [-Werror,-Wmissing-prototypes] main(void) ^ /work/src.svn/stand/i386/zfsboot/zfsboot.c:164:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int ^ static 1 error generated. *** Error code 1 Stop. make: stopped in /work/src.svn/stand/i386/zfsboot I'd suggest to add the main() declaration much like it's in gptboot. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"