免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2039 | 回复: 7
打印 上一主题 下一主题

编译glibc-2.3.2出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-05-13 16:01 |只看该作者 |倒序浏览
提示如下:
请问什么情况会出现这样的错误?
是dl-runtime.c文件有问题吗?还是和版本有关?

dl-runtime.c:56: error: conflicting types for 'fixup'
../sysdeps/i386/dl-machine.h:158: error: previous declaration of 'fixup' was here
dl-runtime.c:56: error: conflicting types for 'fixup'
../sysdeps/i386/dl-machine.h:158: error: previous declaration of 'fixup' was here
dl-runtime.c:141: error: conflicting types for 'profile_fixup'
../sysdeps/i386/dl-machine.h:161: error: previous declaration of 'profile_fixup' was here
dl-runtime.c:141: error: conflicting types for 'profile_fixup'
../sysdeps/i386/dl-machine.h:161: error: previous declaration of 'profile_fixup' was here
../sysdeps/i386/dl-machine.h:158: warning: 'fixup' declared `static' but never defined
../sysdeps/i386/dl-machine.h:161: warning: 'profile_fixup' declared `static' but never defined
make[2]: *** [/mnt/lfs/sources/glibc-build/elf/dl-runtime.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2'
make: *** [all] Error 2

论坛徽章:
0
2 [报告]
发表于 2004-05-14 12:02 |只看该作者

编译glibc-2.3.2出错

up

论坛徽章:
5
荣誉会员
日期:2011-11-23 16:44:17CU大牛徽章
日期:2013-09-18 15:15:15CU大牛徽章
日期:2013-09-18 15:15:45未羊
日期:2014-02-25 14:37:19射手座
日期:2014-12-26 22:55:37
3 [报告]
发表于 2004-05-14 13:57 |只看该作者

编译glibc-2.3.2出错

不要自己去编译GLIBC了,很容易弄死系统的,直接找binary的升级。

论坛徽章:
0
4 [报告]
发表于 2004-05-14 14:02 |只看该作者

编译glibc-2.3.2出错

我要装一个LFS,必须要编啊
http://lfs.linuxsir.org/htdocs/lfscvs/index.html

论坛徽章:
0
5 [报告]
发表于 2004-05-14 14:38 |只看该作者

编译glibc-2.3.2出错

那位知道请帮忙,谢谢

论坛徽章:
0
6 [报告]
发表于 2004-05-14 16:54 |只看该作者

编译glibc-2.3.2出错

问题找到了,用root就可以编译,以前我是用lfs用户编译的。可是这个目录的所有者是lfs啊?而且我用find查找刚刚被更改的文件,并没有lfs用户所不能改变的啊,为什么会出错呢?而且错误提示和权限没有什么关系啊,那位大侠知道啊?
我不想用root编译,太危险了

论坛徽章:
0
7 [报告]
发表于 2004-05-19 00:59 |只看该作者

编译glibc-2.3.2出错

在stdio-common目录下sscanf.c中声明的函数sscanf
int sscanf(const char *s,const char *format){
    ...
    va_start(..);
    ..
    va_end(...);
    ...
}
这个函数用到了可变参数个数,应该定义如下:
int sscanf(const char *s,const char *format, ...){...}
我改了后,这个错误解决了。
还由于你同样的错误在dl-runtime.c中,我也尝试改了,但是一上错误消除后,有多了一个连接错误。唉!

不过我始终都是用root账号,怎么你能解决问题?

困扰我几天了,不明白,哪位赐教???

我用的是gcc-3.4.0,binutils、make也是最新的。在redhat6.2下。

论坛徽章:
0
8 [报告]
发表于 2004-05-31 09:53 |只看该作者

编译glibc-2.3.2出错

我在做一个项目,希望独立于系统之外来运行有动态链接库的单独的****系统,这样便于打包也便于移植,所以也使用到了独立的libc,fixup的问题主要是gcc-3.4.0在编译glibc时候的问题,可以在sources.redhat.com上找到关于其交叉编译的补丁,要用gcc-3.4.0来编译glibc2.3.2,同时也需要glibc2.3.2的sscanf的补丁。
gcc的补丁见
http://sources.redhat.com/ml/crossgcc/2004-04/msg00028.html

glibc 的补丁在LFS网站上有。
-------------
我刚才自己又重新做了一个补丁,综合了glibc的sscanf和fixup补丁。编译是需要带开关:
make CFLAGS+="-fno-unit-at-a-time"
-----------------------------------------------------
另:现在使用CVS下来的gcc-3.4.x分支版本来编译新的CVS下来的glibc-2.3.3没有问题了,上个星期前还有问题,现在可能已经解决了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP