编译samba库遇到C compiler cannot create executables的问题

ynwlgh 2014-07-15 10:40:00
我之前编译过samba库没有问题.
最近系统升级到了OS X10.10. xcode 升级到了6Beta3.
现在编译不过了.

config.log文件里的信息:

configure:3984: xcrun clang -v >&5
Apple LLVM version 6.0 (clang-600.0.38) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
configure:3995: $? = 0
configure:3984: xcrun clang -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3995: $? = 1
configure:3984: xcrun clang -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:3995: $? = 1
configure:4015: checking whether the C compiler works
configure:4037: xcrun clang -std=gnu99 -no-cpp-precomp -miphoneos-version-min=5.0 -isysroot /Applications/Xcode6-Beta3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -I/Applications/Xcode6-Beta3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/usr/include -arch i386 -pipe -Wno-trigraphs -fpascal-strings -Os -Wreturn-type -Wunused-variable -fmessage-length=0 -gdwarf-2 -std=gnu99 -no-cpp-precomp -miphoneos-version-min=5.0 -isysroot /Applications/Xcode6-Beta3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -I/Applications/Xcode6-Beta3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/usr/include -arch i386 -pipe -Wno-trigraphs -fpascal-strings -Os -Wreturn-type -Wunused-variable -fmessage-length=0 -gdwarf-2 -I/Users/liaogang/kxsmb/tmp/include -miphoneos-version-min=5.0 -isysroot /Applications/Xcode6-Beta3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -L/Applications/Xcode6-Beta3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/usr/lib -arch i386 conftest.c >&5
Undefined symbols for architecture i386:
Undefined symbols for architecture i386:
"start", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:4041: $? = 1
configure:4079: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Samba"
| #define PACKAGE_TARNAME "samba"
| #define PACKAGE_VERSION "3"
| #define PACKAGE_STRING "Samba 3"
| #define PACKAGE_BUGREPORT "samba-technical@samba.org"
| #define PACKAGE_URL ""
| #define CONFIG_H_IS_FROM_SAMBA 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4084: error: in `/Users/liaogang/kxsmb/samba/source3':
configure:4088: error: C compiler cannot create executables
...全文
603 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

2,161

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 UNIX文化
社区管理员
  • UNIX文化社区
  • 文天大人
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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