Bug #177

lib/libnetgraph can't compile

Added by rumcic about 8 years ago. Updated almost 8 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Due to recent commits, lib/libnetgraph does not compile:
===> lib/libnetgraph
cc -O -pipe -mtune=pentiumpro -Wall -c /usr/src/lib/libnetgraph/sock.c -o sock.o
cc -O -pipe -mtune=pentiumpro -Wall -c /usr/src/lib/libnetgraph/msg.c -o msg.o
cc -O -pipe -mtune=pentiumpro -Wall -c /usr/src/lib/libnetgraph/debug.c -o debug.o
In file included from /usr/obj/usr/src/world_i386/usr/include/net/bpf.h:55,
from /usr/src/lib/libnetgraph/debug.c:52:
/usr/obj/usr/src/world_i386/usr/include/sys/mbuf.h:86: error: field `mh_netmsg' has incomplete type
*** Error code 1

Stop in /usr/src/lib/libnetgraph.
*** Error code 1

History

#1 Updated by dillon about 8 years ago

:Due to recent commits, lib/libnetgraph does not compile:
:===> lib/libnetgraph
:cc -O -pipe -mtune=pentiumpro -Wall -c /usr/src/lib/libnetgraph/sock.c -o sock.o
:cc -O -pipe -mtune=pentiumpro -Wall -c /usr/src/lib/libnetgraph/msg.c -o msg.o
:cc -O -pipe -mtune=pentiumpro -Wall -c /usr/src/lib/libnetgraph/debug.c -o debug.o
:In file included from /usr/obj/usr/src/world_i386/usr/include/net/bpf.h:55,
: from /usr/src/lib/libnetgraph/debug.c:52:
:/usr/obj/usr/src/world_i386/usr/include/sys/mbuf.h:86: error: field `mh_netmsg' has incomplete type
:*** Error code 1
:
:Stop in /usr/src/lib/libnetgraph.
:*** Error code 1

Fixed. We might hit a few more of these as time passes. Mostly they
will be minor issues related to references to structures that are not
included for non-kernel builds.

-Matt
Matthew Dillon
<>

#2 Updated by wa1ter about 8 years ago

On Sat, 20 May 2006, Matthew Dillon wrote:

> :/usr/obj/usr/src/world_i386/usr/include/sys/mbuf.h:86: error: field `mh_netmsg' has incomplete type
> :*** Error code 1
> :
> :Stop in /usr/src/lib/libnetgraph.
> :*** Error code 1
>
> Fixed. We might hit a few more of these as time passes...

Here's another:

cc -O -pipe -march=athlon-xp -Wall -c /usr/src/sbin/ipfw/ipfw.c
In file included from /usr/src/sbin/ipfw/ipfw.c:24:
/usr/obj/usr/src/world_i386/usr/include/sys/mbuf.h:86: error: field `mh_netmsg'
has incomplete type

#3 Updated by dillon about 8 years ago

:> Fixed. We might hit a few more of these as time passes...
:
:Here's another:
:
:cc -O -pipe -march=athlon-xp -Wall -c /usr/src/sbin/ipfw/ipfw.c
:In file included from /usr/src/sbin/ipfw/ipfw.c:24:
:/usr/obj/usr/src/world_i386/usr/include/sys/mbuf.h:86: error: field `mh_netmsg'
:has incomplete type

I'll do another run-through. There are a bunch of include files that
userland should never be allowed to #include, and that the other headers
should not #include unless _KERNEL or _KERNEL_STRUCTURES is set.

I have a little script that tests each header file with a combination
of _KERNEL, _KERNEL_STRUCTURES, or userland compilation. _KERNEL is
clean. I have to make -KERNEL_STRUCTURES and userland clean too
(at least for those files that userland is allowed to #include).

-Matt
Matthew Dillon
<>

Also available in: Atom PDF