suse升级glibc,configure报错:configure: error: compiler support for visibility attrib

underbears 2017-12-06 12:53:55
最近在给一个suse11sp4的系统升级glibc的版本,准备升级到2.15,但是在configure时就报错了:
# ../glibc-2.15/configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
……
……
checking for bash... /bin/bash
checking for gawk... gawk
checking for perl... /usr/bin/perl
checking for install-info... /sbin/install-info
checking for bison... /usr/bin/bison
checking for signed size_t type... no
checking for libc-friendly stddef.h... no
checking whether we need to use -P to assemble .S files... no
checking for .set assembler directive... no
checking for assembler gnu_unique_object symbol type... yes
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... no
configure: error: compiler support for visibility attribute is required
因为在测试环境下也搭建了对应的平台,测试平台的操作系统,gcc,binutils的版本和生产环境都是一致的(有一点区别就是生产环境的系统版本是通过系统升级升上来的suse10sp4→suse11sp4,测试平台操作系统是直接安装的),测试平台在configure时就没有报错,成功升级了glibc的版本。所以一直没有找到好的解决思路。
还望各位大神指导。
...全文
310 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧