LinuxSir.cn,穿越时空的Linuxsir!

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

我在安装glibc-2.2.5遇到了问题。请大家帮忙

[复制链接]
发表于 2003-7-15 14:18:19 | 显示全部楼层 |阅读模式
../sysdeps/generic/uname.c:25:25: config-name.h: No such file or directory
../sysdeps/generic/uname.c: In function `__uname':
../sysdeps/generic/uname.c:57: `UNAME_SYSNAME' undeclared (first use in this function)
../sysdeps/generic/uname.c:57: (Each undeclared identifier is reported only once
../sysdeps/generic/uname.c:57: for each function it appears in.)
../sysdeps/generic/uname.c:58: `UNAME_RELEASE' undeclared (first use in this function)
../sysdeps/generic/uname.c:59: `UNAME_VERSION' undeclared (first use in this function)
../sysdeps/generic/uname.c:60: `UNAME_MACHINE' undeclared (first use in this function)
make[2]: *** [/static/src/glibc-build/posix/uname.o] Error 1
make[2]: Leaving directory `/static/src/glibc-2.2.5/posix'
make[1]: *** [posix/subdir_lib] Error 2
make[1]: Leaving directory `/static/src/glibc-2.2.5'
make: *** [install] Error 2

uname.c 里是这样写的

/* This file is created by the configuration process, and defines UNAME_*.  */
#include <config-name.h>

可是我配置的时候,为什么没有生成config-name.h呢?哪里可能除了问题?
发表于 2003-7-15 17:42:13 | 显示全部楼层
看这个情况,应该是linux-header的问题,你的linux内核头文件安装好了没有?
 楼主| 发表于 2003-7-16 09:10:22 | 显示全部楼层
我装的是本站提供的lfs稳定版,按照文档linux-header都装上去了啊。是在RH9.0下安装的。

我昨天手工写了一个config-name.h,然后编译就可以通过了,不过心理总不踏实。就是按照uname的输出写的。
#ifndef config_name_h
#define config_name_h

#define UNAME_SYSNAME        "Linux"
#define UNAME_RELEASE        "2.4.20-8.002"
#define UNAME_VERSION        "2 SMP Fri Jun 6 11:45:39 CST 2003"
#define UNAME_MACHINE        "i386"

#endif        /*config_name_h*/
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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