Date: Sun, 15 Nov 2020 09:34:13 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 251150] Cannot compile zfsboot: no previous prototype for function 'main' [-Werror,-Wmissing-prototypes] Message-ID: <bug-251150-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251150 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: bugs@FreeBSD.org Reporter: markiyan.kushnir@gmail.com cc -O2 -pipe -fno-common -I/work/src.svn/stand/i386/btx/lib -nostdinc=20= =20=20 -I/work/obj/work/src.svn/amd64.amd64/stand/libsa32 -I/work/src.svn/stand/li= bsa -D_STANDALONE -I/work/src.svn/sys -Ddouble=3Djagged-little-pill -Dfloat=3Dfloaty-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=3Di386 -mno-relax -I. -Iinclude -DBOOTPROG=3D\"zfsboot\" -O1 -DBOO= T2=20 -DLOADER_GPT_SUPPORT -DLOADER_MBR_SUPPORT -DLOADER_ZFS_SUPPORT=20 -DLOADER_UFS_SUPPORT -DSIOPRT=3D0x3f8 -DSIOFMT=3D0x3 -DSIOSPD=3D9600=20 -I/work/src.svn/stand/common -I/work/src.svn/stand/i386/common=20 -I/work/src.svn/stand/i386/libi386 -I/work/src.svn/stand/libsa/zfs=20 -I/work/src.svn/sys/crypto/skein -I/work/src.svn/sys/cddl/boot/zfs=20 -I/work/src.svn/sys/contrib/openzfs/include=20 -I/work/src.svn/sys/contrib/openzfs/include/os/freebsd/spl=20 -I/work/src.svn/sys/contrib/openzfs/include/os/freebsd/zfs=20 -I/work/src.svn/sys/cddl/contrib/opensolaris/common/lz4=20 -I/work/src.svn/stand/i386/boot2 -Wall -Waggregate-return -Wbad-function-c= ast -Wno-cast-align -Wmissing-declarations -Wmissing-prototypes -Wnested-exter= ns=20 -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -g -MD=20 -MF.depend.zfsboot.o -MTzfsboot.o -std=3Dgnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/9.0.1/include -Wsystem-headers -Wer= ror -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 protot= ype 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251150-227>