From owner-freebsd-bugs@freebsd.org Sun Nov 15 09:34:13 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 484A72E1065 for ; Sun, 15 Nov 2020 09:34:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4CYn8j1PkYz3Mlx for ; Sun, 15 Nov 2020 09:34:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 3035B2E1488; Sun, 15 Nov 2020 09:34:13 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2FFB22E1063 for ; Sun, 15 Nov 2020 09:34:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CYn8j0phdz3MdC for ; Sun, 15 Nov 2020 09:34:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0ED2E19EEC for ; Sun, 15 Nov 2020 09:34:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 0AF9YCed008454 for ; Sun, 15 Nov 2020 09:34:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0AF9YCjc008453 for bugs@FreeBSD.org; Sun, 15 Nov 2020 09:34:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 251150] Cannot compile zfsboot: no previous prototype for function 'main' [-Werror,-Wmissing-prototypes] Date: Sun, 15 Nov 2020 09:34:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markiyan.kushnir@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2020 09:34:13 -0000 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.=