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

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

Post by Fr0st » Sat, 05 Oct 2002 05:42:26



folowing patch 3.1 update source through cvs, rebuild kernel, reboot,
cd /usr/src , make obj && make build breaks with:

cc -O2     -DRF_UTILITY=1
-I/usr/src/sbin/raidctl/../../sys/dev/raidframe -c
/usr/src/sbin/raidctl/rf_configure.c
/usr/src/sbin/raidctl/rf_configure.c: In function
`rf_MakeLayoutSpecificNULL':
/usr/src/sbin/raidctl/rf_configure.c:309: syntax error before
`ATTRIBUTE_UNUSED'
/usr/src/sbin/raidctl/rf_configure.c:311: syntax error before
`ATTRIBUTE_UNUSED'
/usr/src/sbin/raidctl/rf_configure.c:312: argument `fp' doesn't match
prototype
/usr/src/sbin/raidctl/../../sys/dev/raidframe/rf_configure.h:89:
prototype declaration
/usr/src/sbin/raidctl/rf_configure.c:312: argument `ignored' doesn't
match prototype
/usr/src/sbin/raidctl/../../sys/dev/raidframe/rf_configure.h:89:
prototype declaration
/usr/src/sbin/raidctl/rf_configure.c: In function
`rf_get_next_nonblank_line':
/usr/src/sbin/raidctl/rf_configure.c:468: syntax error before
`ATTRIBUTE_UNUSED'
*** Error code 1

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

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

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

btw this hapens after i put the ansidecl.h file into the /usr/include
directory.  b4 that it was complaining that the file was missing,
which it wasn't, just in the wrong place.

what to do,  any ideas would be appreciated.

thanks ahead
Fr0stee

 
 
 

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

Post by Fr0st » Sun, 06 Oct 2002 04:03:32



> folowing patch 3.1 update source through cvs, rebuild kernel, reboot,
> cd /usr/src , make obj && make build breaks with:

> cc -O2     -DRF_UTILITY=1
> -I/usr/src/sbin/raidctl/../../sys/dev/raidframe -c
> /usr/src/sbin/raidctl/rf_configure.c
> /usr/src/sbin/raidctl/rf_configure.c: In function
> `rf_MakeLayoutSpecificNULL':
> /usr/src/sbin/raidctl/rf_configure.c:309: syntax error before
> `ATTRIBUTE_UNUSED'
> /usr/src/sbin/raidctl/rf_configure.c:311: syntax error before
> `ATTRIBUTE_UNUSED'
> /usr/src/sbin/raidctl/rf_configure.c:312: argument `fp' doesn't match
> prototype
> /usr/src/sbin/raidctl/../../sys/dev/raidframe/rf_configure.h:89:
> prototype declaration
> /usr/src/sbin/raidctl/rf_configure.c:312: argument `ignored' doesn't
> match prototype
> /usr/src/sbin/raidctl/../../sys/dev/raidframe/rf_configure.h:89:
> prototype declaration
> /usr/src/sbin/raidctl/rf_configure.c: In function
> `rf_get_next_nonblank_line':
> /usr/src/sbin/raidctl/rf_configure.c:468: syntax error before
> `ATTRIBUTE_UNUSED'
> *** Error code 1

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

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

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

> btw this hapens after i put the ansidecl.h file into the /usr/include
> directory.  b4 that it was complaining that the file was missing,
> which it wasn't, just in the wrong place.

> what to do,  any ideas would be appreciated.

> thanks ahead
> Fr0stee

nevermind this, there are numerous updated pkgs raidctl that do not
#include the ansidecl.h and contain  the following:

/* so much for #include <ansidecl.h> */
#ifdef __GNUCC__
#define ATTRIBUTE_UNUSED        __attribute__ ((__unused__))
#else
#define ATTRIBUTE_UNUSED
#endif

than it worked fine.

F

 
 
 

1. error in compiling /usr/src/usr.sbin

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.

2. Diald question

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

4. Sleeping in the computer room

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

6. mp3 player and Linux

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

8. saving log files

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

10. usr/platform/sun4u/sbin/prtdiag

11. /usr/platform/sun4u/sbin/prtdiag- CPU 0

12. Can't boot from rebuilt /usr/src/linux/Image

13. where is source for QIC02 (/usr/src/linux/kernel/chr_drv/tpqic02.c etc