Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 2009 17:00:27 -0400
From:      Michael Proto <mike@jellydonut.org>
To:        Nenhum_de_Nos <matheus@eternamente.info>
Cc:        freebsd-current@freebsd.org
Subject:   Re: problems building current from today
Message-ID:  <1de79840907011400v7f625f6av926ffc311f469f52@mail.gmail.com>
In-Reply-To: <3730d4eb75f62cac45c8113ef595c2f5.squirrel@cygnus.homeunix.com>
References:  <3730d4eb75f62cac45c8113ef595c2f5.squirrel@cygnus.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 1, 2009 at 3:02 PM, Nenhum_de_Nos<matheus@eternamente.info> wrote:
> hail,
>
> I'm trying to build tinybsd as of today, and I get this:
>
> cc -c -O2 -pipe -fno-strict-aliasing  -std=c99  -Wall -Wredundant-decls
> -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
> -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions
> -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL
> -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
> -finline-limit=8000 --param inline-unit-growth=100 --param
> large-function-growth=1000  -mno-align-long-strings
> -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
> -mno-sse3 -ffreestanding -fstack-protector -Werror
> /usr/src/sys/kern/sysv_msg.c
> /usr/src/sys/kern/sysv_msg.c:1263: error: invalid application of 'sizeof'
> to incomplete type 'struct freebsd7_msgctl_args'
> /usr/src/sys/kern/sysv_msg.c:1263: error: 'freebsd7_msgctl' undeclared
> here (not in a function)
> cc1: warnings being treated as errors
> /usr/src/sys/kern/sysv_msg.c:1309: warning: function declaration isn't a
> prototype
> /usr/src/sys/kern/sysv_msg.c: In function 'freebsd7_msgctl':
> /usr/src/sys/kern/sysv_msg.c:1318: error: dereferencing pointer to
> incomplete type
> /usr/src/sys/kern/sysv_msg.c:1318: error: request for member 'cmd' in
> something not a structure or union
> /usr/src/sys/kern/sysv_msg.c:1318: warning: comparison between pointer and
> integer
> /usr/src/sys/kern/sysv_msg.c:1319: error: dereferencing pointer to
> incomplete type
> /usr/src/sys/kern/sysv_msg.c:1319: error: request for member 'buf' in
> something not a structure or union
> /usr/src/sys/kern/sysv_msg.c:1334: error: dereferencing pointer to
> incomplete type
> /usr/src/sys/kern/sysv_msg.c:1334: error: request for member 'msqid' in
> something not a structure or union
> /usr/src/sys/kern/sysv_msg.c:1334: error: dereferencing pointer to
> incomplete type
> /usr/src/sys/kern/sysv_msg.c:1334: error: request for member 'cmd' in
> something not a structure or union
> /usr/src/sys/kern/sysv_msg.c:1334: warning: passing argument 2 of
> 'kern_msgctl' makes integer from pointer without a cast
> /usr/src/sys/kern/sysv_msg.c:1334: warning: passing argument 3 of
> 'kern_msgctl' makes integer from pointer without a cast
> /usr/src/sys/kern/sysv_msg.c:1337: error: dereferencing pointer to
> incomplete type
> /usr/src/sys/kern/sysv_msg.c:1337: error: request for member 'cmd' in
> something not a structure or union
> /usr/src/sys/kern/sysv_msg.c:1337: warning: comparison between pointer and
> integer
> /usr/src/sys/kern/sysv_msg.c:1350: error: dereferencing pointer to
> incomplete type
> /usr/src/sys/kern/sysv_msg.c:1350: error: request for member 'buf' in
> something not a structure or union
> *** Error code 1
>
> Stop in /usr/obj/usr/src/sys/TINYBSD.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
> tinybsd#
>
> I read about some commits breaking current recently, but also saw saying
> was fixed.
>

I ran across this myself on a non-TINYBSD build, and was able to
resolve it by commenting-out COMPAT_FREEBSD6 in my kernel config since
I didn't need it (all other COMPAT entries except COMPAT_43TTY were
already disabled, so now only COMPAT_43TTY is enabled). Might help
your situation.


-Proto



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1de79840907011400v7f625f6av926ffc311f469f52>