免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4576 | 回复: 5

Cent5.5 64位源码安 装Squid 就是make 不过去。 [复制链接]

论坛徽章:
0
发表于 2011-06-27 20:57 |显示全部楼层
如下所示,执行了./configure 后,make 总是出错,都哭死了,不知道应该怎么处理这个问题,希望各位朋友,能给些见意, 先谢谢大家了。
  1. [root]# ./configure --prefix=/usr/local/squid --enable-snmp --enable-storeio='ufs,aufs,coss,diskd,null' --enable-epoll --disable-hostname-checks --enable-underscores --enable-x-accelerator-vary --enable-kill-parent-hack --enable-err-language="Simplify_Chinese" --enable-default-err-languages="Simplify_Chinese" --disable-ident-lookups --with-maxfd=65535 --enable-removal-policies='heap,lru' --enable-useragent-log --enable-referer-log --enable-ssl

复制代码
  1. [root@svr27m5 squid-3.0.STABLE2]# make
  2. Making all in lib
  3. make[1]: Entering directory `/soft/squid-3.0.STABLE2/lib'
  4. Making all in libTrie
  5. make[2]: Entering directory `/soft/squid-3.0.STABLE2/lib/libTrie'
  6. make  all-recursive
  7. make[3]: Entering directory `/soft/squid-3.0.STABLE2/lib/libTrie'
  8. Making all in src
  9. make[4]: Entering directory `/soft/squid-3.0.STABLE2/lib/libTrie/src'
  10. if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments  -g -O2 -MT Trie.o -MD -MP -MF ".deps/Trie.Tpo" -c -o Trie.o Trie.cc; \
  11.         then mv -f ".deps/Trie.Tpo" ".deps/Trie.Po"; else rm -f ".deps/Trie.Tpo"; exit 1; fi
  12. /usr/include/bits/typesizes.h:63: 错误:‘define’ 没有命名一个类型
  13. /usr/include/sys/types.h:62: 错误:‘__dev_t’ 没有命名一个类型
  14. /usr/include/sys/select.h:72: 错误:‘__FD_SETSIZE’ 在此作用域中尚未声明
  15. make[4]: *** [Trie.o] 错误 1
  16. make[4]: Leaving directory `/soft/squid-3.0.STABLE2/lib/libTrie/src'
  17. make[3]: *** [all-recursive] 错误 1
  18. make[3]: Leaving directory `/soft/squid-3.0.STABLE2/lib/libTrie'
  19. make[2]: *** [all] 错误 2
  20. make[2]: Leaving directory `/soft/squid-3.0.STABLE2/lib/libTrie'
  21. make[1]: *** [all-recursive] 错误 1
  22. make[1]: Leaving directory `/soft/squid-3.0.STABLE2/lib'
  23. make: *** [all-recursive] 错误 1
  24. [root@svr27m5 squid-3.0.STABLE2]#
复制代码

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
发表于 2011-06-27 21:05 |显示全部楼层
第一步configure的时候有报错信息没有?

论坛徽章:
0
发表于 2011-06-27 22:11 |显示全部楼层
就是这样。
  1. checking for a BSD-compatible install... /usr/bin/install -c
  2. checking whether build environment is sane... yes
  3. checking for gawk... gawk
  4. checking whether make sets $(MAKE)... yes
  5. checking whether to enable maintainer-specific portions of Makefiles... no
  6. checking for gcc... gcc
  7. checking for C compiler default output file name... a.out
  8. checking whether the C compiler works... yes
  9. checking whether we are cross compiling... no
  10. checking for suffix of executables...
  11. checking for suffix of object files... o
  12. checking whether we are using the GNU C compiler... yes
  13. checking whether gcc accepts -g... yes
  14. checking for gcc option to accept ISO C89... unsupported
  15. checking for style of include used by make... GNU
  16. checking dependency style of gcc... gcc3
  17. checking whether gcc and cc understand -c and -o together... yes
  18. checking build system type... x86_64-unknown-linux-gnu
  19. checking host system type... x86_64-unknown-linux-gnu
  20. checking for pkg-config... /usr/bin/pkg-config
  21. Store modules built: ufs aufs coss diskd null
  22. aufs store used, pthreads support automatically enabled
  23. coss store used, aio support automatically enabled
  24. Removal policies built: heap lru
  25. User-Agent logging enabled
  26. Referer logging enabled
  27. Kill parent on shutdown
  28. SNMP monitoring enabled
  29. SSL gatewaying using OpenSSL enabled
  30. Using OpenSSL MD5 implementation
  31. Forcing epoll() to be enabled
  32. Disabling Ident Lookups
  33. Auth scheme modules built: basic
  34. unlinkd enabled
  35. Enabling support for X-Accelerator-Vary
  36. checking for egrep... /bin/egrep
  37. checking how to run the C preprocessor... gcc -E
  38. checking for a BSD-compatible install... /usr/bin/install -c
  39. checking for ranlib... ranlib
  40. checking whether ln -s works... yes
  41. checking for sh... /bin/sh
  42. checking for false... /bin/false
  43. checking for true... /bin/true
  44. checking for rm... /bin/rm
  45. checking for mv... /bin/mv
  46. checking for mkdir... /bin/mkdir
  47. checking for ln... /bin/ln
  48. checking for perl... /usr/bin/perl
  49. checking for ar... /usr/bin/ar
  50. checking for dirent.h that defines DIR... no
  51. checking for sys/ndir.h that defines DIR... no
  52. checking for sys/dir.h that defines DIR... no
  53. checking for ndir.h that defines DIR... no
  54. checking for library containing opendir... none required
  55. checking for ANSI C header files... no
  56. checking for sys/types.h... no
  57. checking for stddef.h... yes
  58. checking for limits.h... yes
  59. checking for sys/param.h... no
  60. checking for sys/socket.h... no
  61. checking for netinet/in.h... no
  62. checking for stdio.h... no
  63. checking for stdlib.h... no
  64. checking for arpa/inet.h... no
  65. checking for arpa/nameser.h... no
  66. checking for assert.h... yes
  67. checking for bstring.h... no
  68. checking for crypt.h... yes
  69. checking for ctype.h... no
  70. checking for errno.h... yes
  71. checking for execinfo.h... yes
  72. checking for fcntl.h... no
  73. checking for fnmatch.h... yes
  74. checking for getopt.h... yes
  75. checking for glob.h... yes
  76. checking for gnumalloc.h... no
  77. checking for grp.h... no
  78. checking for libc.h... no
  79. checking for linux/netfilter_ipv4.h... yes
  80. checking for linux/netfilter_ipv4/ip_tproxy.h... no
  81. checking for malloc.h... yes
  82. checking for math.h... yes
  83. checking for memory.h... no
  84. checking for mount.h... no
  85. checking for net/if.h... no
  86. checking for net/pfvar.h... no
  87. checking for netdb.h... no
  88. checking for netinet/if_ether.h... no
  89. checking for netinet/tcp.h... no
  90. checking for openssl/err.h... no
  91. checking for openssl/md5.h... no
  92. checking for openssl/ssl.h... no
  93. checking for openssl/engine.h... no
  94. checking for paths.h... yes
  95. checking for poll.h... yes
  96. checking for pwd.h... no
  97. checking for regex.h... no
  98. checking for resolv.h... no
  99. checking for sched.h... no
  100. checking for signal.h... no
  101. checking for stdarg.h... yes
  102. checking for string.h... no
  103. checking for strings.h... yes
  104. checking for sys/bitypes.h... no
  105. checking for sys/file.h... no
  106. checking for sys/ioctl.h... yes
  107. checking for sys/mount.h... yes
  108. checking for md5.h... no
  109. checking for sys/md5.h... no
  110. checking for sys/msg.h... no
  111. checking for sys/prctl.h... yes
  112. checking for sys/resource.h... no
  113. checking for sys/poll.h... yes
  114. checking for sys/select.h... no
  115. checking for sys/stat.h... no
  116. checking for sys/statfs.h... no
  117. checking for sys/statvfs.h... no
  118. checking for syscall.h... yes
  119. checking for sys/syscall.h... yes
  120. checking for sys/time.h... no
  121. checking for sys/un.h... no
  122. checking for sys/vfs.h... no
  123. checking for sys/wait.h... no
  124. checking for sys/event.h... no
  125. checking for syslog.h... yes
  126. checking for time.h... no
  127. checking for unistd.h... no
  128. checking for utime.h... no
  129. checking for varargs.h... no
  130. checking for byteswap.h... yes
  131. checking for glib.h... no
  132. checking for stdint.h... yes
  133. checking for inttypes.h... yes
  134. checking for grp.h... (cached) no
  135. checking for nss_common.h... no
  136. checking for nss.h... yes
  137. checking for db.h... no
  138. checking for db_185.h... no
  139. checking for aio.h... no
  140. checking for sys/capability.h... no
  141. checking for ip_compat.h... no
  142. checking for ip_fil_compat.h... no
  143. checking for ip_fil.h... no
  144. checking for ip_nat.h... no
  145. checking for ipl.h... no
  146. checking for netinet/ip_compat.h... no
  147. checking for netinet/ip_fil_compat.h... no
  148. checking for netinet/ip_fil.h... no
  149. checking for netinet/ip_nat.h... no
  150. checking for netinet/ipl.h... no
  151. checking for an ANSI C-conforming const... yes
  152. checking whether byte ordering is bigendian... yes
  153. checking for inline... inline
  154. checking if ANSI prototypes work... yes
  155. checking for tm->tm_gmtoff... no
  156. checking for struct mallinfo... no
  157. checking for extended mallinfo... no
  158. checking for struct rusage... no
  159. checking for ip->ip_hl... no
  160. checking for void *... no
  161. checking size of void *... 0
  162. checking for char... no
  163. checking size of char... 0
  164. checking for short... no
  165. checking size of short... 0
  166. checking for int... no
  167. checking size of int... 0
  168. checking for long... no
  169. checking size of long... 0
  170. checking for long long... no
  171. checking size of long long... 0
  172. checking for int8_t... no
  173. checking size of int8_t... 0
  174. checking for uint8_t... no
  175. checking size of uint8_t... 0
  176. checking for u_int8_t... no
  177. checking size of u_int8_t... 0
  178. checking for int16_t... no
  179. checking size of int16_t... 0
  180. checking for uint16_t... no
  181. checking size of uint16_t... 0
  182. checking for u_int16_t... no
  183. checking size of u_int16_t... 0
  184. checking for int32_t... no
  185. checking size of int32_t... 0
  186. checking for uint32_t... no
  187. checking size of uint32_t... 0
  188. checking for u_int32_t... no
  189. checking size of u_int32_t... 0
  190. checking for int64_t... no
  191. checking size of int64_t... 0
  192. checking for uint64_t... no
  193. checking size of uint64_t... 0
  194. checking for u_int64_t... no
  195. checking size of u_int64_t... 0
  196. checking for __int64... no
  197. checking size of __int64... 0
  198. checking for pid_t... no
  199. checking for size_t... no
  200. checking for ssize_t... no
  201. checking for off_t... no
  202. checking for mode_t... no
  203. checking for fd_mask... no
  204. checking for off_t... (cached) no
  205. checking size of off_t... 0
  206. checking for size_t... (cached) no
  207. checking size of size_t... 0
  208. checking for working alloca.h... no
  209. checking for alloca... yes
  210. checking for socklen_t... yes
  211. checking for mtyp_t... no
  212. checking for main in -lnsl... yes
  213. checking for main in -lsocket... no
  214. checking for unix domain sockets... no
  215. checking for main in -lgnumalloc... no
  216. checking for main in -lmalloc... no
  217. checking for main in -lbsd... yes
  218. checking for main in -lregex... no
  219. checking for main in -lm... yes
  220. checking for crypt in -lcrypt... yes
  221. checking for MD5Init in -lmd5... no
  222. checking for MD5Init in -lmd... no
  223. checking for main in -lpthread... yes
  224. checking for aio_read in -lrt... yes
  225. checking for epoll_ctl in -lepoll... no
  226. checking for main in -llber... no
  227. checking if dbopen needs -ldb... no
  228. checking for bcopy... yes
  229. checking for backtrace_symbols_fd... yes
  230. checking for fchmod... yes
  231. checking for getdtablesize... yes
  232. checking for getpagesize... yes
  233. checking for getpass... yes
  234. checking for getrusage... yes
  235. checking for getspnam... yes
  236. checking for gettimeofday... yes
  237. checking for glob... yes
  238. checking for kqueue... no
  239. checking for lrand48... yes
  240. checking for mallinfo... yes
  241. checking for mallocblksize... no
  242. checking for MD5Init... no
  243. checking for mallopt... yes
  244. checking for memcpy... yes
  245. checking for memmove... yes
  246. checking for memset... yes
  247. checking for mkstemp... yes
  248. checking for mktime... yes
  249. checking for mstats... no
  250. checking for poll... yes
  251. checking for prctl... yes
  252. checking for pthread_attr_setscope... yes
  253. checking for pthread_setschedparam... yes
  254. checking for pthread_attr_setschedparam... yes
  255. checking for pthread_sigmask... yes
  256. checking for putenv... yes
  257. checking for random... yes
  258. checking for regcomp... yes
  259. checking for regexec... yes
  260. checking for regfree... yes
  261. checking for res_init... no
  262. checking for __res_init... yes
  263. checking for rint... yes
  264. checking for sbrk... yes
  265. checking for select... yes
  266. checking for seteuid... yes
  267. checking for setgroups... yes
  268. checking for setpgrp... yes
  269. checking for setrlimit... yes
  270. checking for getrlimit... yes
  271. checking for setsid... yes
  272. checking for sigaction... yes
  273. checking for snprintf... yes
  274. checking for socketpair... yes
  275. checking for srand48... yes
  276. checking for srandom... yes
  277. checking for statfs... yes
  278. checking for strsep... yes
  279. checking for strtoll... yes
  280. checking for sysconf... yes
  281. checking for syslog... yes
  282. checking for timegm... yes
  283. checking for vsnprintf... yes
  284. checking for epoll_ctl... yes
  285. checking for crypt... yes
  286. checking if epoll works... no
  287. Using epoll for the IO loop.
  288. checking if AF_UNIX dgram sockets support large packets... no
  289. checking if setresuid is implemented... no
  290. checking if va_copy is implemented... yes
  291. checking if __va_copy is implemented... yes
  292. checking if GNUregex needs to be compiled... yes
  293. checking for drand48... yes
  294. checking for tempnam... yes
  295. checking for strerror... yes
  296. checking for initgroups... yes
  297. checking Default FD_SETSIZE value... 256
  298. Maximum filedescriptors set to 65535
  299. checking Default UDP send buffer size... 16384
  300. checking Default UDP receive buffer size... 16384
  301. checking Default TCP send buffer size... 16384
  302. checking Default TCP receive buffer size... 16384
  303. checking if sys_errlist is already defined... yes
  304. checking if inet_ntoa() actually works... "no"
  305. Will use our own inet_ntoa().
  306. checking for _res.nsaddr_list... no
  307. checking for _res.ns_list... no
  308. configure: creating ./config.status
  309. config.status: creating Makefile
  310. config.status: creating lib/Makefile
  311. config.status: creating scripts/Makefile
  312. config.status: creating scripts/RunCache
  313. config.status: creating src/Makefile
  314. config.status: creating src/fs/Makefile
  315. config.status: creating src/repl/Makefile
  316. config.status: creating src/auth/Makefile
  317. config.status: creating contrib/Makefile
  318. config.status: creating snmplib/Makefile
  319. config.status: creating icons/Makefile
  320. config.status: creating errors/Makefile
  321. config.status: creating doc/Makefile
  322. config.status: creating helpers/Makefile
  323. config.status: creating helpers/basic_auth/Makefile
  324. config.status: creating helpers/basic_auth/LDAP/Makefile
  325. config.status: creating helpers/basic_auth/MSNT/Makefile
  326. config.status: creating helpers/basic_auth/NCSA/Makefile
  327. config.status: creating helpers/basic_auth/PAM/Makefile
  328. config.status: creating helpers/basic_auth/SMB/Makefile
  329. config.status: creating helpers/basic_auth/YP/Makefile
  330. config.status: creating helpers/basic_auth/getpwnam/Makefile
  331. config.status: creating helpers/basic_auth/mswin_sspi/Makefile
  332. config.status: creating helpers/basic_auth/multi-domain-NTLM/Makefile
  333. config.status: creating helpers/basic_auth/SASL/Makefile
  334. config.status: creating helpers/basic_auth/POP3/Makefile
  335. config.status: creating helpers/basic_auth/DB/Makefile
  336. config.status: creating helpers/basic_auth/squid_radius_auth/Makefile
  337. config.status: creating helpers/digest_auth/Makefile
  338. config.status: creating helpers/digest_auth/password/Makefile
  339. config.status: creating helpers/digest_auth/ldap/Makefile
  340. config.status: creating helpers/digest_auth/eDirectory/Makefile
  341. config.status: creating helpers/ntlm_auth/Makefile
  342. config.status: creating helpers/ntlm_auth/fakeauth/Makefile
  343. config.status: creating helpers/ntlm_auth/mswin_sspi/Makefile
  344. config.status: creating helpers/ntlm_auth/no_check/Makefile
  345. config.status: creating helpers/ntlm_auth/SMB/Makefile
  346. config.status: creating helpers/ntlm_auth/SMB/smbval/Makefile
  347. config.status: creating helpers/negotiate_auth/Makefile
  348. config.status: creating helpers/negotiate_auth/mswin_sspi/Makefile
  349. config.status: creating helpers/negotiate_auth/squid_kerb_auth/Makefile
  350. config.status: creating helpers/external_acl/Makefile
  351. config.status: creating helpers/external_acl/ip_user/Makefile
  352. config.status: creating helpers/external_acl/ldap_group/Makefile
  353. config.status: creating helpers/external_acl/mswin_ad_group/Makefile
  354. config.status: creating helpers/external_acl/mswin_lm_group/Makefile
  355. config.status: creating helpers/external_acl/session/Makefile
  356. config.status: creating helpers/external_acl/unix_group/Makefile
  357. config.status: creating helpers/external_acl/wbinfo_group/Makefile
  358. config.status: creating tools/Makefile
  359. config.status: creating include/autoconf.h
  360. config.status: include/autoconf.h is unchanged
  361. config.status: executing depfiles commands
复制代码

论坛徽章:
0
发表于 2011-06-27 22:13 |显示全部楼层
换了一个 2.7 版本的也是不行。
  1. [root@svr27m5 squid-2.7.STABLE5]# make
  2. Making all in lib
  3. make[1]: Entering directory `/soft/squid-2.7.STABLE5/lib'
  4. if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include    -Wall -g -O2 -D_REENTRANT -MT Array.o -MD -MP -MF ".deps/Array.Tpo" -c -o Array.o Array.c; \
  5.         then mv -f ".deps/Array.Tpo" ".deps/Array.Po"; else rm -f ".deps/Array.Tpo"; exit 1; fi
  6. In file included from /usr/include/stdio.h:34,
  7.                  from ../include/util.h:38,
  8.                  from Array.c:52:
  9. /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/stddef.h:214: 错误:重复的 ‘unsigned’
  10. /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/stddef.h:214: 错误:声明指定了两个以上的数据类型
  11. In file included from /usr/include/bits/types.h:134,
  12.                  from /usr/include/stdio.h:36,
  13.                  from ../include/util.h:38,
  14.                  from Array.c:52:
  15. /usr/include/bits/typesizes.h:63: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__FD_SETSIZE’
  16. In file included from ../include/util.h:39,
  17.                  from Array.c:52:
  18. /usr/include/time.h:175: 错误:声明指定了两个以上的数据类型
  19. In file included from Array.c:52:
  20. ../include/util.h:66: 警告:‘struct timeval’ 在形参表内部声明
  21. ../include/util.h:66: 警告:它的作用域仅限于此定义或声明,这可能并不是您想要的
  22. ../include/util.h:67: 警告:‘struct timeval’ 在形参表内部声明
  23. ../include/util.h:68: 警告:‘struct timeval’ 在形参表内部声明
  24. Array.c: In function ‘arrayInit’:
  25. Array.c:69: 警告:隐式声明函数 ‘memset’
  26. Array.c:69: 警告:隐式声明与内建函数 ‘memset’ 不兼容
  27. Array.c: In function ‘arrayInsert’:
  28. Array.c:106: 警告:隐式声明函数 ‘memmove’
  29. Array.c:106: 警告:隐式声明与内建函数 ‘memmove’ 不兼容
  30. Array.c: In function ‘arrayGrow’:
  31. Array.c:139: 警告:隐式声明与内建函数 ‘memset’ 不兼容
  32. make[1]: *** [Array.o] 错误 1
  33. make[1]: Leaving directory `/soft/squid-2.7.STABLE5/lib'
  34. make: *** [all-recursive] 错误 1
  35. [root@svr27m5 squid-2.7.STABLE5]#
复制代码

论坛徽章:
0
发表于 2011-06-27 22:26 |显示全部楼层
我装下GCC  试试吧。

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
发表于 2011-06-28 11:58 |显示全部楼层
估计是 gcc 的版本问题。

有很多的时候,头文件不兼容引起的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP