error in compiling /usr/src/usr.sbin

error in compiling /usr/src/usr.sbin

Post by Sam Wu » Wed, 31 May 2000 04:00:00



According to FreeBSD handbook
->http://www.freebsd.org/handbook/kernelconfig-building.html,
I was trying to make  the /usr/src/usr.sbin directory  before using the
following command:

# /usr/sbin/config MYKERNEL
    # cd ../../compile/MYKERNEL
    # make depend
    # make
    # make install

But I failed in the Make process when compiling /usr/'src/usr.sbin with
the following err msg:

===> extattrctl
Warning: Object directory not changed from original
/usr/src/usr.sbin/extattrctl
cc -O -pipe -g -Wall   -c extattrctl.c
extattrctl.c:38: ufs/ufs/extattr.h: No such file or directory
extattrctl.c: In function `extattr_level_from_string':
extattrctl.c:77: `UFS_EXTATTR_PERM_KERNEL' undeclared (first use in this
function)
extattrctl.c:77: (Each undeclared identifier is reported only once
extattrctl.c:77: for each function it appears in.)
extattrctl.c:80: `UFS_EXTATTR_PERM_ROOT' undeclared (first use in this
function)
extattrctl.c:83: `UFS_EXTATTR_PERM_OWNER' undeclared (first use in this
function)
extattrctl.c:86: `UFS_EXTATTR_PERM_ANYONE' undeclared (first use in this
function)
extattrctl.c: In function `initattr':
extattrctl.c:110: storage size of `uef' isn't known
extattrctl.c:114: `UFS_EXTATTR_PERM_ROOT' undeclared (first use in this
function)
extattrctl.c:147: `UFS_EXTATTR_MAGIC' undeclared (first use in this
function)
extattrctl.c:148: `UFS_EXTATTR_VERSION' undeclared (first use in this
function)
extattrctl.c:110: warning: unused variable `uef'
extattrctl.c: In function `main':
extattrctl.c:193: `UFS_EXTATTR_CMD_START' undeclared (first use in this
function)
extattrctl.c:197: `UFS_EXTATTR_CMD_STOP' undeclared (first use in this
function)
extattrctl.c:201: `UFS_EXTATTR_CMD_ENABLE' undeclared (first use in this
function)
extattrctl.c:206: `UFS_EXTATTR_CMD_DISABLE' undeclared (first use in
this function)
*** Error code 1

Stop in /usr/src/usr.sbin/extattrctl.
*** Error code 1

Stop in /usr/src/usr.sbin.

I've just done a cvsup standard-supfile to update my kernel source
before doing a Make in the /usr/src/usr.sbin directory.
Can anyone help me with this problem??

Thank you in advance.
Sam.

 
 
 

error in compiling /usr/src/usr.sbin

Post by s.. » Sun, 04 Jun 2000 04:00:00




Quote:> According to FreeBSD handbook
> ->http://www.freebsd.org/handbook/kernelconfig-building.html,
> I was trying to make  the /usr/src/usr.sbin directory  before using
the
> following command:

> # /usr/sbin/config MYKERNEL
>     # cd ../../compile/MYKERNEL
>     # make depend
>     # make
>     # make install

> But I failed in the Make process when compiling /usr/'src/usr.sbin
with
> the following err msg:

> ===> extattrctl
> Warning: Object directory not changed from original
> /usr/src/usr.sbin/extattrctl
> cc -O -pipe -g -Wall   -c extattrctl.c
> extattrctl.c:38: ufs/ufs/extattr.h: No such file or directory
> extattrctl.c: In function `extattr_level_from_string':
> extattrctl.c:77: `UFS_EXTATTR_PERM_KERNEL' undeclared (first use in
this
> function)
> extattrctl.c:77: (Each undeclared identifier is reported only once
> extattrctl.c:77: for each function it appears in.)
> extattrctl.c:80: `UFS_EXTATTR_PERM_ROOT' undeclared (first use in this
> function)
> extattrctl.c:83: `UFS_EXTATTR_PERM_OWNER' undeclared (first use in
this
> function)
> extattrctl.c:86: `UFS_EXTATTR_PERM_ANYONE' undeclared (first use in
this
> function)
> extattrctl.c: In function `initattr':
> extattrctl.c:110: storage size of `uef' isn't known
> extattrctl.c:114: `UFS_EXTATTR_PERM_ROOT' undeclared (first use in
this
> function)
> extattrctl.c:147: `UFS_EXTATTR_MAGIC' undeclared (first use in this
> function)
> extattrctl.c:148: `UFS_EXTATTR_VERSION' undeclared (first use in this
> function)
> extattrctl.c:110: warning: unused variable `uef'
> extattrctl.c: In function `main':
> extattrctl.c:193: `UFS_EXTATTR_CMD_START' undeclared (first use in
this
> function)
> extattrctl.c:197: `UFS_EXTATTR_CMD_STOP' undeclared (first use in this
> function)
> extattrctl.c:201: `UFS_EXTATTR_CMD_ENABLE' undeclared (first use in
this
> function)
> extattrctl.c:206: `UFS_EXTATTR_CMD_DISABLE' undeclared (first use in
> this function)
> *** Error code 1

> Stop in /usr/src/usr.sbin/extattrctl.
> *** Error code 1

> Stop in /usr/src/usr.sbin.

> I've just done a cvsup standard-supfile to update my kernel source
> before doing a Make in the /usr/src/usr.sbin directory.
> Can anyone help me with this problem??

> Thank you in advance.
> Sam.

Compile everything in src and install with buildworld/installworld,
then go back and install the kernel.

I have also found the installing system header files has been
necessary first,

e.g. if you did a checkout in /usr/src,

cd /usr/src/include ; make all ; make install

and then go try to build the OS, followed by the kernel.

sysv

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

1. $CDB in /usr/src/usr.sbin/pw/Makefile

Does someone know what this variable is used for when
buildworlding "pw"? I coulndt find any further
reference to it, although it spoilt my build because I
sued to root for this and am using CDB for my own
purposses.

The other issue is of course not setting it to a reasonable
default or at least "" when compiling a new world in the
(top-level) makefile.
--
\usepackage[latin1]{inputenc}!

2. Driver Help

3. /usr/sbin/traceroute ha1 ksh: /usr/sbin/traceroute: not found

4. Tape Backup Software

5. oops, unpacked src.tr.gz in /usr not /usr/src

6. comp.unix.shell FAQ - Answers to Frequently Asked Questions

7. What is this?: /USR/SBIN/CRON[492]: (mail) CMD ( if [ -x /usr/sbin/exim ]; then /usr/sbin/exim -q >/dev/null 2>&1; fi)

8. Top 10 subjects comp.unix.questions

9. /usr/ucb/shutdown vs. /usr/sbin/shutdown

10. /usr/lib/fs/ufs/ff (/usr/sbin/ff)

11. /usr/bin, /usr/local/bin, /sbin or /opt/bin, /var/opt/bin - I'm confused.

12. problem rebuilding binaries (/usr/src/sbin/raidctl/rf_configure.c)

13. Release 5.0 (root@hollin.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC)