爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 8383|回复: 3

zlib安装问题,请教一下大家

[复制链接]
发表于 2014-11-28 20:36:28 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
[xiaoxia@N000 zlib-1.2.5]$ ./configure --prefix=/cvfs01/disk5/xiaoxia/bin/zlib
Checking for shared library support...
Tested icc -w -c -O ztest26803.c
Tested cc -shared -O -o ztest26803.so ztest26803.o
/usr/bin/ld: ztest26803.o: relocation R_X86_64_PC32 against `getchar@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
No shared library support; try without defining CC and CFLAGS
Building static library libz.a version 1.2.5 with icc.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2014-11-28 20:36:54 | 显示全部楼层
No shared library support; try without defining CC and CFLAGS  这个错误怎么解决
密码修改失败请联系微信:mofangbao
发表于 2014-11-28 21:37:13 | 显示全部楼层
yuan/// 发表于 2014-11-28 20:36
No shared library support; try without defining CC and CFLAGS  这个错误怎么解决

指定以下CC
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2014-11-29 10:05:49 | 显示全部楼层
我用的是intel编译器,指定CC=icc后,有错误,是这样的

[xiaoxia@N000 zlib-1.2.5]$ ./configure --prefix=/cvfs01/disk5/xiaoxia/bin/zlib
Checking for shared library support...
Tested icc -w -c -O ztest894.c
Tested cc -shared -O -o ztest894.so ztest894.o
/usr/bin/ld: ztest894.o: relocation R_X86_64_PC32 against `getchar@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
No shared library support; try without defining CC and CFLAGS
Building static library libz.a version 1.2.5 with icc.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

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