LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 869|回复: 11

各位,在reiser4上面编译glibc-2.3.4-20040701是否遇到错误?

[复制链接]
发表于 2004-12-23 15:59:33 | 显示全部楼层 |阅读模式
郁闷的是,我上次已经解决了这个问题,但是我忘了怎么解决的......
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
 楼主| 发表于 2004-12-23 16:02:09 | 显示全部楼层
靠,我什么都没动,直接拿到ext3分区上,还真就过了...
发表于 2004-12-23 16:27:25 | 显示全部楼层
权限问题
 楼主| 发表于 2004-12-23 16:46:24 | 显示全部楼层
不明白,能否解释一下?谢谢
发表于 2004-12-23 17:38:49 | 显示全部楼层
../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
看意思是权限不够。
 楼主| 发表于 2004-12-23 17:42:36 | 显示全部楼层
但这是什么意思呢?为什么在reiser4上不行,在ext3上可以呢?
发表于 2004-12-23 18:02:10 | 显示全部楼层
提示Permission denied的地方的文件,看看有没以后什么特殊的
检查ext3 reiser4挂载参数
没用过reiser4 FS,不了解
发表于 2004-12-23 18:56:04 | 显示全部楼层
这个问题具体情况也不知道是怎么回事,其实也不是权限问题,而是找不到那个文件,可能是目录的搜索方式有点问题。我现在全部都是reiser4的。后续的版本的glibc就好像没有这个问题了。
    那个20040701还有几个后面的版本的,解决方法就是将nss_nis这个目录下面的头文件,或者是将整个目录拷贝到include的目录下面,这样再编译就不会出现问题了。这个是指在源码下面的。即glibc-20040701/目录下面。
 楼主| 发表于 2004-12-23 19:44:24 | 显示全部楼层
哦,对.....我上次也是这么作的.但是就是想不起来了. 谢谢老大
发表于 2004-12-25 07:46:04 | 显示全部楼层
呵呵。不客气。
我也是遇到了很多次,所以才记住的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表