Subject: Compilation problems
To: None <port-i386@netbsd.org>
From: Larry Colen <lrc@recourse.com>
List: port-i386
Date: 03/12/2001 13:51:12
In my quest to get a netbsd box to boot off of a CD, I've been running
into some problems.  

It seems as if the first thing that I need to do is to "build the
world". So I unwrapped all the source files under /usr/src and typed 
"make". The first error that I got was it not being able to find 
net/if_vlanvar.h from ifconfig.c

So I did a brute force:
cp /usr/src/sys/net/if_vlanvar.h /usr/include/net/

Which got me over that hump.

Now I'm getting:

(cd
/usr/src/distrib/i386/floppies/ramdisk-big/../../../../distrib/utils/x_ifconfig;
make ifconfig.o)
cc -O2 -Os -Werror   -DINET_ONLY
-I/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig -DINET6 -c
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:
In function `list_cloners':
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:829:
storage size of `ifcr' isn't known
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:837:
`SIOCIFGCLONERS' undeclared (first use in this function)
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:837:
(Each undeclared identifier is reported only once
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:837:
for each function it appears in.)
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:
In function `clone_create':
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:878:
`SIOCIFCREATE' undeclared (first use in this function)
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:
In function `clone_destroy':
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:890:
`SIOCIFDESTROY' undeclared (first use in this function)
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:
In function `setvlan':
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:1019:
`SIOCGIFGENERIC' undeclared (first use in this function)
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:1024:
`SIOCSIFGENERIC' undeclared (first use in this function)
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:
In function `setvlanif':
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:1046:
`SIOCGIFGENERIC' undeclared (first use in this function)
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:1052:
`SIOCSIFGENERIC' undeclared (first use in this function)
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:
In function `unsetvlanif':
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:1070:
`SIOCGIFGENERIC' undeclared (first use in this function)
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:1076:
`SIOCSIFGENERIC' undeclared (first use in this function)
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:
In function `vlan_status':
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/ifconfig.c:1987:
`SIOCGIFGENERIC' undeclared (first use in this function)
*** Error code 1

===============================================================

I'm also getting this problem if I follow section 16 in Lupi's guide
and go to /usr/src/distrib/i386/floppies/ramdisk-big and do a make
there.

Is there a bug? Or am I missing something vital?

   Larry


-- 
Larry Colen - Recourse Technologies - lrc@recourse.com - 650-381-8090