LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1421|回复: 8

编译db-4.5.20失败,已解决

[复制链接]
发表于 2007-8-23 20:51:41 | 显示全部楼层 |阅读模式
编译db-4.5.20失败,出错消息如下

  1. Thu Aug 23 12:07:22 Local time zone must be set--see zic manual page 2007

  2. KB: 705554        /

  3. patching file rep/rep_method.c
  4. patching file rep/rep_record.c
  5. patching file sequence/sequence.c
  6. checking build system type... x86_64-unknown-linux-gnu
  7. checking host system type... x86_64-unknown-linux-gnu
  8. checking if building in the top-level or dist directories... no
  9. checking if --disable-cryptography option specified... no
  10. checking if --disable-hash option specified... no
  11. checking if --disable-queue option specified... no
  12. checking if --disable-replication option specified... no
  13. checking if --disable-statistics option specified... no
  14. checking if --disable-verify option specified... no
  15. checking if --enable-compat185 option specified... yes
  16. checking if --enable-cxx option specified... yes
  17. checking if --enable-debug option specified... no
  18. checking if --enable-debug_rop option specified... no
  19. checking if --enable-debug_wop option specified... no
  20. checking if --enable-diagnostic option specified... no
  21. checking if --enable-dump185 option specified... no
  22. checking if --enable-java option specified... no
  23. checking if --enable-mingw option specified... no
  24. checking if --enable-o_direct option specified... no
  25. checking if --enable-posixmutexes option specified... no
  26. checking if --enable-pthread_api option specified... no
  27. checking if --enable-rpc option specified... no
  28. checking if --enable-smallbuild option specified... no
  29. checking if --enable-tcl option specified... no
  30. checking if --enable-test option specified... no
  31. checking if --enable-uimutexes option specified... no
  32. checking if --enable-umrw option specified... no
  33. checking if --with-mutex=MUTEX option specified... no
  34. checking if --with-tcl=DIR option specified... no
  35. checking if --with-uniquename=NAME option specified... no
  36. checking for ar... ar
  37. checking for chmod... chmod
  38. checking for cp... cp
  39. checking for ln... ln
  40. checking for mkdir... mkdir
  41. checking for ranlib... ranlib
  42. checking for rm... rm
  43. checking for sh... /bin/sh
  44. checking for strip... strip
  45. checking for a BSD-compatible install... /tools/bin/install -c
  46. checking for cc... cc
  47. checking for C compiler default output file name... configure: error: C compiler cannot create executables
  48. See `config.log' for more details.
复制代码



以下是config.log文件的内容

  1. This file contains any messages produced by compilers while
  2. running configure, to aid debugging if configure makes a mistake.

  3. It was created by Berkeley DB configure 4.5.20, which was
  4. generated by GNU Autoconf 2.60.  Invocation command line was

  5.   $ ../dist/configure --prefix=/usr --enable-compat185 --enable-cxx

  6. ## --------- ##
  7. ## Platform. ##
  8. ## --------- ##

  9. hostname = lfslivecd
  10. uname -m = x86_64
  11. uname -r = 2.6.22.1-64bit
  12. uname -s = Linux
  13. uname -v = #1 SMP Sun Aug 5 12:32:51 GMT 2007

  14. /usr/bin/uname -p = unknown
  15. /bin/uname -X     = unknown

  16. /bin/arch              = unknown
  17. /usr/bin/arch -k       = unknown
  18. /usr/convex/getsysinfo = unknown
  19. /usr/bin/hostinfo      = unknown
  20. /bin/machine           = unknown
  21. /usr/bin/oslevel       = unknown
  22. /bin/universe          = unknown

  23. PATH: /bin
  24. PATH: /usr/bin
  25. PATH: /sbin
  26. PATH: /usr/sbin
  27. PATH: /tools/bin
  28. PATH: /usr/sbin


  29. ## ----------- ##
  30. ## Core tests. ##
  31. ## ----------- ##

  32. configure:2052: checking build system type
  33. configure:2070: result: x86_64-unknown-linux-gnu
  34. configure:2092: checking host system type
  35. configure:2107: result: x86_64-unknown-linux-gnu
  36. configure:2144: checking if building in the top-level or dist directories
  37. configure:2160: result: no
  38. configure:2244: checking if --disable-cryptography option specified
  39. configure:2257: result: no
  40. configure:2261: checking if --disable-hash option specified
  41. configure:2274: result: no
  42. configure:2278: checking if --disable-queue option specified
  43. configure:2291: result: no
  44. configure:2295: checking if --disable-replication option specified
  45. configure:2308: result: no
  46. configure:2312: checking if --disable-statistics option specified
  47. configure:2325: result: no
  48. configure:2329: checking if --disable-verify option specified
  49. configure:2342: result: no
  50. configure:2346: checking if --enable-compat185 option specified
  51. configure:2355: result: yes
  52. configure:2358: checking if --enable-cxx option specified
  53. configure:2367: result: yes
  54. configure:2370: checking if --enable-debug option specified
  55. configure:2379: result: no
  56. configure:2382: checking if --enable-debug_rop option specified
  57. configure:2391: result: no
  58. configure:2394: checking if --enable-debug_wop option specified
  59. configure:2403: result: no
  60. configure:2406: checking if --enable-diagnostic option specified
  61. configure:2430: result: no
  62. configure:2434: checking if --enable-dump185 option specified
  63. configure:2443: result: no
  64. configure:2446: checking if --enable-java option specified
  65. configure:2455: result: no
  66. configure:2458: checking if --enable-mingw option specified
  67. configure:2467: result: no
  68. configure:2470: checking if --enable-o_direct option specified
  69. configure:2479: result: no
  70. configure:2482: checking if --enable-posixmutexes option specified
  71. configure:2491: result: no
  72. configure:2502: checking if --enable-pthread_api option specified
  73. configure:2515: result: no
  74. configure:2526: checking if --enable-rpc option specified
  75. configure:2535: result: no
  76. configure:2538: checking if --enable-smallbuild option specified
  77. configure:2555: result: no
  78. configure:2558: checking if --enable-tcl option specified
  79. configure:2567: result: no
  80. configure:2570: checking if --enable-test option specified
  81. configure:2579: result: no
  82. configure:2582: checking if --enable-uimutexes option specified
  83. configure:2591: result: no
  84. configure:2594: checking if --enable-umrw option specified
  85. configure:2603: result: no
  86. configure:2606: checking if --with-mutex=MUTEX option specified
  87. configure:2624: result: no
  88. configure:2638: checking if --with-tcl=DIR option specified
  89. configure:2648: result: no
  90. configure:2654: checking if --with-uniquename=NAME option specified
  91. configure:2667: result: no
  92. configure:2778: checking for ar
  93. configure:2794: found /usr/bin/ar
  94. configure:2805: result: ar
  95. configure:2878: checking for chmod
  96. configure:2894: found /tools/bin/chmod
  97. configure:2905: result: chmod
  98. configure:2978: checking for cp
  99. configure:2994: found /tools/bin/cp
  100. configure:3005: result: cp
  101. configure:3181: checking for ln
  102. configure:3197: found /tools/bin/ln
  103. configure:3208: result: ln
  104. configure:3281: checking for mkdir
  105. configure:3297: found /tools/bin/mkdir
  106. configure:3308: result: mkdir
  107. configure:3383: checking for ranlib
  108. configure:3399: found /usr/bin/ranlib
  109. configure:3410: result: ranlib
  110. configure:3480: checking for rm
  111. configure:3496: found /tools/bin/rm
  112. configure:3507: result: rm
  113. configure:3689: checking for sh
  114. configure:3707: found /bin/sh
  115. configure:3719: result: /bin/sh
  116. configure:3796: checking for strip
  117. configure:3812: found /usr/bin/strip
  118. configure:3823: result: strip
  119. configure:3865: checking for a BSD-compatible install
  120. configure:3921: result: /tools/bin/install -c
  121. configure:4061: checking for cc
  122. configure:4077: found /usr/bin/cc
  123. configure:4088: result: cc
  124. configure:4124: checking for C compiler version
  125. configure:4131: cc --version >&5
  126. cc (GCC) 4.1.2
  127. Copyright (C) 2006 Free Software Foundation, Inc.
  128. This is free software; see the source for copying conditions.  There is NO
  129. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  130. configure:4134: $? = 0
  131. configure:4141: cc -v >&5
  132. Using built-in specs.
  133. Target: x86_64-unknown-linux-gnu
  134. Configured with: ../gcc-4.1.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib
  135. Thread model: posix
  136. gcc version 4.1.2
  137. configure:4144: $? = 0
  138. configure:4151: cc -V >&5
  139. cc: '-V' option must have argument
  140. configure:4154: $? = 1
  141. configure:4177: checking for C compiler default output file name
  142. configure:4204: cc -march=k8 -msse3 -O3 -pipe  -D_GNU_SOURCE -D_REENTRANT x86_64-pc-linux-gnu conftest.c  >&5
  143. cc: x86_64-pc-linux-gnu: No such file or directory
  144. configure:4207: $? = 1
  145. configure: failed program was:
  146. | /* confdefs.h.  */
  147. | #define PACKAGE_NAME "Berkeley DB"
  148. | #define PACKAGE_TARNAME "db-4.5.20"
  149. | #define PACKAGE_VERSION "4.5.20"
  150. | #define PACKAGE_STRING "Berkeley DB 4.5.20"
  151. | #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
  152. | /* end confdefs.h.  */
  153. |
  154. | int
  155. | main ()
  156. | {
  157. |
  158. |   ;
  159. |   return 0;
  160. | }
  161. configure:4246: error: C compiler cannot create executables
  162. See `config.log' for more details.

  163. ## ---------------- ##
  164. ## Cache variables. ##
  165. ## ---------------- ##

  166. ac_cv_build=x86_64-unknown-linux-gnu
  167. ac_cv_env_CCC_set=
  168. ac_cv_env_CCC_value=
  169. ac_cv_env_CC_set=
  170. ac_cv_env_CC_value=
  171. ac_cv_env_CFLAGS_set=set
  172. ac_cv_env_CFLAGS_value='-march=k8 -msse3 -O3 -pipe'
  173. ac_cv_env_CPPFLAGS_set=
  174. ac_cv_env_CPPFLAGS_value=
  175. ac_cv_env_CPP_set=
  176. ac_cv_env_CPP_value=
  177. ac_cv_env_CXXCPP_set=
  178. ac_cv_env_CXXCPP_value=
  179. ac_cv_env_CXXFLAGS_set=set
  180. ac_cv_env_CXXFLAGS_value='-march=k8 -msse3 -O3 -pipe'
  181. ac_cv_env_CXX_set=
  182. ac_cv_env_CXX_value=
  183. ac_cv_env_F77_set=
  184. ac_cv_env_F77_value=
  185. ac_cv_env_FFLAGS_set=
  186. ac_cv_env_FFLAGS_value=
  187. ac_cv_env_LDFLAGS_set=set
  188. ac_cv_env_LDFLAGS_value=x86_64-pc-linux-gnu
  189. ac_cv_env_build_alias_set=
  190. ac_cv_env_build_alias_value=
  191. ac_cv_env_host_alias_set=
  192. ac_cv_env_host_alias_value=
  193. ac_cv_env_target_alias_set=
  194. ac_cv_env_target_alias_value=
  195. ac_cv_host=x86_64-unknown-linux-gnu
  196. ac_cv_path_ac_pt_db_cv_path_sh=/bin/sh
  197. ac_cv_path_install='/tools/bin/install -c'
  198. ac_cv_prog_ac_ct_AR=ar
  199. ac_cv_prog_ac_ct_CC=cc
  200. ac_cv_prog_ac_ct_CHMOD=chmod
  201. ac_cv_prog_ac_ct_CP=cp
  202. ac_cv_prog_ac_ct_LN=ln
  203. ac_cv_prog_ac_ct_MKDIR=mkdir
  204. ac_cv_prog_ac_ct_RANLIB=ranlib
  205. ac_cv_prog_ac_ct_RM=rm
  206. ac_cv_prog_ac_ct_STRIP=strip
  207. ac_pt_db_cv_path_sh=/bin/sh
  208. db_cv_build_cryptography=yes
  209. db_cv_build_hash=yes
  210. db_cv_build_queue=yes
  211. db_cv_build_replication=yes
  212. db_cv_build_statistics=yes
  213. db_cv_build_verify=yes
  214. db_cv_compat185=yes
  215. db_cv_cxx=yes
  216. db_cv_debug=no
  217. db_cv_debug_rop=no
  218. db_cv_debug_wop=no
  219. db_cv_diagnostic=no
  220. db_cv_dump185=no
  221. db_cv_java=no
  222. db_cv_mingw=no
  223. db_cv_o_direct=no
  224. db_cv_path_sh=/bin/sh
  225. db_cv_posixmutexes=no
  226. db_cv_pthread_api=no
  227. db_cv_rpc=no
  228. db_cv_smallbuild=no
  229. db_cv_tcl=no
  230. db_cv_test=no
  231. db_cv_uimutexes=no
  232. db_cv_umrw=no
  233. db_cv_uniquename=no

  234. ## ----------------- ##
  235. ## Output variables. ##
  236. ## ----------------- ##

  237. ADDITIONAL_INCS=''
  238. ADDITIONAL_LANG=''
  239. ADDITIONAL_OBJS=''
  240. ADDITIONAL_PROGS=''
  241. AR='ar'
  242. BUILD_TARGET='library_build'
  243. CC='cc'
  244. CCC=''
  245. CFLAGS='-march=k8 -msse3 -O3 -pipe'
  246. CHMOD='chmod'
  247. CONFIGURATION_ARGS=''
  248. CONFIGURATION_PATH=''
  249. CP='cp'
  250. CPP=''
  251. CPPFLAGS=' -D_GNU_SOURCE -D_REENTRANT'
  252. CRYPTO_OBJS=''
  253. CXX=''
  254. CXXCPP=''
  255. CXXFLAGS='-march=k8 -msse3 -O3 -pipe'
  256. DB_CONST=''
  257. DB_PROTO1=''
  258. DB_PROTO2=''
  259. DB_VERSION_MAJOR='4'
  260. DB_VERSION_MINOR='5'
  261. DB_VERSION_PATCH='20'
  262. DB_VERSION_STRING='"Berkeley DB 4.5.20: (September 20, 2006)"'
  263. DB_VERSION_UNIQUE_NAME=''
  264. DEFAULT_LIB=''
  265. DEFAULT_LIB_CXX=''
  266. DEFS=''
  267. ECHO='echo'
  268. ECHO_C=''
  269. ECHO_N='-n'
  270. ECHO_T=''
  271. EGREP=''
  272. EXEEXT=''
  273. F77=''
  274. FFLAGS=''
  275. GREP=''
  276. INSTALLER=''
  277. INSTALL_DATA='${INSTALL} -m 644'
  278. INSTALL_LIBS=''
  279. INSTALL_PROGRAM='${INSTALL}'
  280. INSTALL_SCRIPT='${INSTALL}'
  281. INSTALL_TARGET='library_install'
  282. INT64_FMT=''
  283. JAR=''
  284. JAVA=''
  285. JAVAC=''
  286. JAVACFLAGS=''
  287. JMODSUFFIX=''
  288. KILL=''
  289. LDFLAGS='x86_64-pc-linux-gnu'
  290. LIBCSO_LIBS=''
  291. LIBJSO_LIBS=''
  292. LIBOBJS=''
  293. LIBS=''
  294. LIBSO_LIBS=''
  295. LIBTOOL=''
  296. LIBTSO_LIBS=''
  297. LIBTSO_MODSUFFIX=''
  298. LIBTSO_MODULE=''
  299. LIBXSO_LIBS=''
  300. LN='ln'
  301. LN_S=''
  302. LTLIBOBJS=''
  303. MAKEFILE_CC=''
  304. MAKEFILE_CCLINK=''
  305. MAKEFILE_CXX=''
  306. MAKEFILE_CXXLINK=''
  307. MAKEFILE_SOLINK=''
  308. MAKEFILE_XSOLINK=''
  309. MKDIR='mkdir'
  310. MODSUFFIX=''
  311. OBJEXT=''
  312. OSDIR=''
  313. PACKAGE_BUGREPORT='Oracle Technology Network Berkeley DB forum'
  314. PACKAGE_NAME='Berkeley DB'
  315. PACKAGE_STRING='Berkeley DB 4.5.20'
  316. PACKAGE_TARNAME='db-4.5.20'
  317. PACKAGE_VERSION='4.5.20'
  318. PATH_SEPARATOR=':'
  319. POSTLINK=''
  320. RANLIB='ranlib'
  321. REPLACEMENT_OBJS=''
  322. RM='rm'
  323. RPCGEN=''
  324. RPC_CLIENT_OBJS=''
  325. RPC_SERVER_H=''
  326. SHELL='/bin/sh'
  327. SOFLAGS=''
  328. SOSUFFIX=''
  329. STRIP='strip'
  330. SWIGCFLAGS=''
  331. TCL_BIN_DIR=''
  332. TCL_INCLUDE_SPEC=''
  333. TCL_LIB_FILE=''
  334. TCL_SRC_DIR=''
  335. TCL_TCLSH=''
  336. TEST_LIBS=''
  337. UINT64_FMT=''
  338. _ACJNI_JAVAC=''
  339. ac_ct_CC='cc'
  340. ac_ct_CXX=''
  341. ac_ct_F77=''
  342. bindir='${exec_prefix}/bin'
  343. build='x86_64-unknown-linux-gnu'
  344. build_alias=''
  345. build_cpu='x86_64'
  346. build_os='linux-gnu'
  347. build_vendor='unknown'
  348. cxx_have_stdheaders=''
  349. datadir='${datarootdir}'
  350. datarootdir='${prefix}/share'
  351. db_cv_path_sh='/bin/sh'
  352. db_int_def=''
  353. db_seq_decl=''
  354. db_threadid_t_decl=''
  355. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  356. dvidir='${docdir}'
  357. exec_prefix='NONE'
  358. host='x86_64-unknown-linux-gnu'
  359. host_alias=''
  360. host_cpu='x86_64'
  361. host_os='linux-gnu'
  362. host_vendor='unknown'
  363. htmldir='${docdir}'
  364. includedir='${prefix}/include'
  365. infodir='${datarootdir}/info'
  366. int16_decl=''
  367. int32_decl=''
  368. int64_decl=''
  369. inttypes_h_decl=''
  370. libdir='${exec_prefix}/lib'
  371. libexecdir='${exec_prefix}/libexec'
  372. localedir='${datarootdir}/locale'
  373. localstatedir='${prefix}/var'
  374. mandir='${datarootdir}/man'
  375. o=''
  376. oldincludedir='/usr/include'
  377. pdfdir='${docdir}'
  378. pid_t_decl=''
  379. platform_footer=''
  380. platform_header=''
  381. prefix='/usr'
  382. program_transform_name='s,x,x,'
  383. psdir='${docdir}'
  384. sbindir='${exec_prefix}/sbin'
  385. sharedstatedir='${prefix}/com'
  386. ssize_t_decl=''
  387. stddef_h_decl=''
  388. stdint_h_decl=''
  389. sysconfdir='${prefix}/etc'
  390. target_alias=''
  391. thread_h_decl=''
  392. u_char_decl=''
  393. u_int16_decl=''
  394. u_int32_decl=''
  395. u_int64_decl=''
  396. u_int8_decl=''
  397. u_int_decl=''
  398. u_long_decl=''
  399. u_short_decl=''
  400. uintmax_t_decl=''
  401. uintptr_t_decl=''
  402. unistd_h_decl=''
  403. uudecode=''

  404. ## ----------- ##
  405. ## confdefs.h. ##
  406. ## ----------- ##

  407. #define PACKAGE_NAME "Berkeley DB"
  408. #define PACKAGE_TARNAME "db-4.5.20"
  409. #define PACKAGE_VERSION "4.5.20"
  410. #define PACKAGE_STRING "Berkeley DB 4.5.20"
  411. #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"

  412. configure: exit 77
复制代码
发表于 2007-8-23 21:11:33 | 显示全部楼层
checking for mkdir... mkdir
checking for ranlib... ranlib
checking for rm... rm
checking for sh... /bin/sh
checking for strip... strip
checking for a BSD-compatible install... /tools/bin/install -c
[color="Red"]checking for cc... cc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
貌似是前一章装 GCC PASS 1 的时候忘记建立连结
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-23 21:30:19 | 显示全部楼层
怎么连接?我使用的是jhalfs自动编译的
回复 支持 反对

使用道具 举报

发表于 2007-8-23 21:31:25 | 显示全部楼层
configure:4204: cc -march=k8 -msse3 -O3 -pipe  -D_GNU_SOURCE -D_REENTRANT [color="Red"]x86_64-pc-linux-gnu conftest.c  >&5
cc: [color="Red"]x86_64-pc-linux-gnu: No such file or directory
LDFLAGS=[color="Red"]'x86_64-pc-linux-gnu'

以上是在你的config.log里面的
检查一下是不是设置了LDFLAGS
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-23 21:34:49 | 显示全部楼层
是设置了LDFLAGS='x86_64-pc-linux-gnu'
回复 支持 反对

使用道具 举报

发表于 2007-8-23 21:36:23 | 显示全部楼层
把这个设置去了再试试看
回复 支持 反对

使用道具 举报

发表于 2007-8-23 21:39:20 | 显示全部楼层
另外,关于LDFLAGS的设置,可以参考一下Gentoo的Choosing safe LDFLAGS:
http://gentoo-wiki.com/TIP_Safe_LDFLAGS
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-24 08:01:41 | 显示全部楼层
Post by LanEast
另外,关于LDFLAGS的设置,可以参考一下Gentoo的Choosing safe LDFLAGS:
http://gentoo-wiki.com/TIP_Safe_LDFLAGS


我的英文不是很好,有点不大明白上面说的,我想问一下我需要使用哪一个LanEast参数?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-24 08:10:16 | 显示全部楼层
我去掉了x86_64-pc-linux-gnu参数将LDFLAGS_O3pipe置空,后可以将编译进行下去了,不过没有进度条的显示了,还有,如果不写x86_64-pc-linux-gnu这个参数对编译有什么影响?我的机器是64位的,打算编译个64位的系统
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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