MacOSX编译coreutils出错的修改
2013-07-03 17:35
393 查看
coreutils版本coreutils-8.20
configure参数为:
./configure --prefix=/mnt/work/sdk/coreutils
make时,出错:
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_mem_cd_iconv in libcoreutils.a(striconv.o)
_str_cd_iconv in libcoreutils.a(striconv.o)
(maybe
you meant: _str_iconv, _mem_cd_iconv , _xstr_cd_iconv , _xstr_iconv
, _str_cd_iconv , _xmem_cd_iconv )
"_iconv_close", referenced from:
_str_iconv in libcoreutils.a(striconv.o)
"_iconv_open", referenced from:
_str_iconv in libcoreutils.a(striconv.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [src/factor] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
看上去是有一个库找不到了。make distclean清空目录,重新configure
./configure --prefix=/mnt/work/sdk/coreutils
--cache-file=config.cache
--enable-no-install-program=kill,uptime
--enable-install-program=hostname LDFLAGS="-liconv"
其实主要目的是加LDFLAGS,别的都是从LFS脚本里拷着用的。
然后,顺利的编过了。
configure参数为:
./configure --prefix=/mnt/work/sdk/coreutils
make时,出错:
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_mem_cd_iconv in libcoreutils.a(striconv.o)
_str_cd_iconv in libcoreutils.a(striconv.o)
(maybe
you meant: _str_iconv, _mem_cd_iconv , _xstr_cd_iconv , _xstr_iconv
, _str_cd_iconv , _xmem_cd_iconv )
"_iconv_close", referenced from:
_str_iconv in libcoreutils.a(striconv.o)
"_iconv_open", referenced from:
_str_iconv in libcoreutils.a(striconv.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [src/factor] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
看上去是有一个库找不到了。make distclean清空目录,重新configure
./configure --prefix=/mnt/work/sdk/coreutils
--cache-file=config.cache
--enable-no-install-program=kill,uptime
--enable-install-program=hostname LDFLAGS="-liconv"
其实主要目的是加LDFLAGS,别的都是从LFS脚本里拷着用的。
然后,顺利的编过了。
相关文章推荐
- MacOSX编译coreutils出错的修改
- Mac OS X 10.10 编译代码出错 fatal error: '__debug' file not found #include <__debug>
- 在MAC OS X 10.9下编译CUDA 5.5例子程序出错解决方案
- MAC下编译CSCOPE出错修改
- mac os x 下的 编译 protoc-gen-lua 的pb.so
- Mac OS X 下 Android6.0源码的下载与编译
- LDD3 short程序编译出错之修改
- mac os X 下编译jrtplib
- Mac OS X下使用终端编译OpenGL程序
- Cocos2d-x iOS Mac环境编译出错 can't locate file for: -lpng -ljpeg -ltiff -lwebp -lfreetype -lwebsockets -lcurl
- MAC编译Android源码 prebuilts/misc/darwin-x86/bison/bison出错
- Mac OS X:修改SMART Utility期限限制
- Mac OS X 系统修改Terminal终端配色
- MacOS X编译OpenSceneGraph
- 在MacOS X下编译emacs23
- boa-0.94.13编译出错修改信息
- 在Mac OS X下编译 boost|building boost library under mac os x
- mac os x 编译hadoop
- Android 编译工具 ant ( mac OS X 10.10.2 )