|
|
郁闷的是,我上次已经解决了这个问题,但是我忘了怎么解决的......
make[2]: Entering directory `/mnt/lfs/temp/glibc-2.3.4-20040701/nis'
gcc -B/tools/bin/ nss_nis/nis-proto.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -mpreferred-stack-boundary=2 -fPIC -I../include -I. -I/mnt/lfs/temp/glibc-build/nis -I.. -I../libio -I../nptl -I/mnt/lfs/temp/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.1/include -isystem /tools/glibc-kernheaders -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -DNOT_IN_libc=1 -DIS_IN_libnss_nis=1 -o /mnt/lfs/temp/glibc-build/nis/nis-proto.os -MD -MP -MF /mnt/lfs/temp/glibc-build/nis/nis-proto.os.dt -MT /mnt/lfs/temp/glibc-build/nis/nis-proto.os
In file included from nss_nis/nis-proto.c:20:
../include/nss.h:1:21: ./nss/nss.h: Permission denied
In file included from ./nss-nis.h:24,
from nss_nis/nis-proto.c:29:
../include/nsswitch.h:1:26: ./nss/nsswitch.h: Permission denied
In file included from nss_nis/nis-proto.c:29:
./nss-nis.h:33: error: return type is an incomplete type
./nss-nis.h: In function `yperr2nss':
./nss-nis.h:35: error: `NSS_STATUS_UNAVAIL' undeclared (first use in this function)
./nss-nis.h:35: error: (Each undeclared identifier is reported only once
./nss-nis.h:35: error: for each function it appears in.)
./nss-nis.h:35: warning: `return' with a value, in function returning void
./nss-nis.h:36: error: invalid use of undefined type `enum nss_status'
./nss-nis.h:36: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:34:39: ./nss/nss_files/files-parse.c: Permission denied
nss_nis/nis-proto.c: At top level:
nss_nis/nis-proto.c:86: error: return type is an incomplete type
nss_nis/nis-proto.c: In function `internal_nis_setprotoent':
nss_nis/nis-proto.c:89: error: storage size of 'status' isn't known
nss_nis/nis-proto.c:100: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:89: warning: unused variable `status'
nss_nis/nis-proto.c: At top level:
nss_nis/nis-proto.c:105: error: return type is an incomplete type
nss_nis/nis-proto.c:105: error: conflicting types for '_nss_nis_setprotoent'
../include/netdb.h:273: error: previous declaration of '_nss_nis_setprotoent' was here
nss_nis/nis-proto.c:105: error: conflicting types for '_nss_nis_setprotoent'
../include/netdb.h:273: error: previous declaration of '_nss_nis_setprotoent' was here
nss_nis/nis-proto.c: In function `_nss_nis_setprotoent':
nss_nis/nis-proto.c:106: error: storage size of 'status' isn't known
nss_nis/nis-proto.c:114: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:106: warning: unused variable `status'
nss_nis/nis-proto.c: At top level:
nss_nis/nis-proto.c:119: error: return type is an incomplete type
nss_nis/nis-proto.c:119: error: conflicting types for '_nss_nis_endprotoent'
../include/netdb.h:273: error: previous declaration of '_nss_nis_endprotoent' was here
nss_nis/nis-proto.c:119: error: conflicting types for '_nss_nis_endprotoent'
../include/netdb.h:273: error: previous declaration of '_nss_nis_endprotoent' was here
nss_nis/nis-proto.c: In function `_nss_nis_endprotoent':
nss_nis/nis-proto.c:127: error: `NSS_STATUS_SUCCESS' undeclared (first use in this function)
nss_nis/nis-proto.c:127: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c: At top level:
nss_nis/nis-proto.c:133: error: return type is an incomplete type
nss_nis/nis-proto.c: In function `internal_nis_getprotoent_r':
nss_nis/nis-proto.c:146: error: `NSS_STATUS_NOTFOUND' undeclared (first use in this function)
nss_nis/nis-proto.c:146: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:155: error: `NSS_STATUS_TRYAGAIN' undeclared (first use in this function)
nss_nis/nis-proto.c:155: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:160: error: `NSS_STATUS_SUCCESS' undeclared (first use in this function)
nss_nis/nis-proto.c:160: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c: At top level:
nss_nis/nis-proto.c:166: error: return type is an incomplete type
nss_nis/nis-proto.c:166: error: conflicting types for '_nss_nis_getprotoent_r'
../include/netdb.h:273: error: previous declaration of '_nss_nis_getprotoent_r' was here
nss_nis/nis-proto.c:166: error: conflicting types for '_nss_nis_getprotoent_r'
../include/netdb.h:273: error: previous declaration of '_nss_nis_getprotoent_r' was here
nss_nis/nis-proto.c: In function `_nss_nis_getprotoent_r':
nss_nis/nis-proto.c:167: error: storage size of 'status' isn't known
nss_nis/nis-proto.c:175: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:167: warning: unused variable `status'
nss_nis/nis-proto.c: At top level:
nss_nis/nis-proto.c:181: error: return type is an incomplete type
nss_nis/nis-proto.c:181: error: conflicting types for '_nss_nis_getprotobyname_r'
../include/netdb.h:273: error: previous declaration of '_nss_nis_getprotobyname_r' was here
nss_nis/nis-proto.c:181: error: conflicting types for '_nss_nis_getprotobyname_r'
../include/netdb.h:273: error: previous declaration of '_nss_nis_getprotobyname_r' was here
nss_nis/nis-proto.c: In function `_nss_nis_getprotobyname_r':
nss_nis/nis-proto.c:183: error: storage size of 'retval' isn't known
nss_nis/nis-proto.c:190: error: `NSS_STATUS_UNAVAIL' undeclared (first use in this function)
nss_nis/nis-proto.c:190: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:194: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:199: error: `NSS_STATUS_SUCCESS' undeclared (first use in this function)
nss_nis/nis-proto.c:201: error: `NSS_STATUS_TRYAGAIN' undeclared (first use in this function)
nss_nis/nis-proto.c:203: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:210: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:223: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:225: error: `NSS_STATUS_NOTFOUND' undeclared (first use in this function)
nss_nis/nis-proto.c:225: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:227: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:183: warning: unused variable `retval'
nss_nis/nis-proto.c: At top level:
nss_nis/nis-proto.c:233: error: return type is an incomplete type
nss_nis/nis-proto.c:233: error: conflicting types for '_nss_nis_getprotobynumber_r'
../include/netdb.h:273: error: previous declaration of '_nss_nis_getprotobynumber_r' was here
nss_nis/nis-proto.c:233: error: conflicting types for '_nss_nis_getprotobynumber_r'
../include/netdb.h:273: error: previous declaration of '_nss_nis_getprotobynumber_r' was here
nss_nis/nis-proto.c: In function `_nss_nis_getprotobynumber_r':
nss_nis/nis-proto.c:235: error: storage size of 'retval' isn't known
nss_nis/nis-proto.c:241: error: `NSS_STATUS_UNAVAIL' undeclared (first use in this function)
nss_nis/nis-proto.c:241: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:248: error: `NSS_STATUS_SUCCESS' undeclared (first use in this function)
nss_nis/nis-proto.c:250: error: `NSS_STATUS_TRYAGAIN' undeclared (first use in this function)
nss_nis/nis-proto.c:252: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:259: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:272: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:274: error: `NSS_STATUS_NOTFOUND' undeclared (first use in this function)
nss_nis/nis-proto.c:274: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:276: warning: `return' with a value, in function returning void
nss_nis/nis-proto.c:235: warning: unused variable `retval'
make[2]: *** [/mnt/lfs/temp/glibc-build/nis/nis-proto.os] Error 1
make[2]: Leaving directory `/mnt/lfs/temp/glibc-2.3.4-20040701/nis'
make[1]: *** [nis/others] Error 2
make[1]: Leaving directory `/mnt/lfs/temp/glibc-2.3.4-20040701'
make: *** [all] Error 2 |
|