- 论坛徽章:
- 0
|
我想使用iptables+squid对内网的进行一下上网限制,但是squid默认不支持下划线的url,我从网上下载了一个squid-2.5.STABLE7-2.src.rpm的包,安装上之后,对/usr/src/redhat/SPECS/squid.spec这个文件进行了修改,在%configure处添加了一些编译的参数--enable-underscores \,希望生成一个新的rpm包,已备后用,但我用rpmbuild -bb squid.spec 或rpmbuild -ba squid.spec
补充:我用操作系统是centos 5.0的
操作系统具体信息:Linux version 2.6.18-8.el5xen (mockbuild@builder4.centos.org) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP Thu Mar 15 21:02:53 EDT 2007
进行编译,这个命令编译时都出现错误。具体信息如下:
# rpmbuild -bb squid.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.52257
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf squid-2.5.STABLE7
+ /usr/bin/bzip2 -dc /usr/src/redhat/SOURCES/squid-2.5.STABLE7.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd squid-2.5.STABLE7
+ /bin/gzip -dc /usr/src/redhat/SOURCES/squid-1.1.19-faq.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /bin/gzip -dc /usr/src/redhat/SOURCES/squid-docs.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (squid-2.5.STABLE7-wccp_denial_of_service.patch):'
Patch #0 (squid-2.5.STABLE7-wccp_denial_of_service.patch):
+ patch -p1 -s
+ echo 'Patch #1 (squid-2.5.STABLE7-gopher_html_parsing.patch):'
Patch #1 (squid-2.5.STABLE7-gopher_html_parsing.patch):
+ patch -p1 -s
+ echo 'Patch #2 (squid-2.5.STABLE7-fakeauth_auth.patch):'
Patch #2 (squid-2.5.STABLE7-fakeauth_auth.patch):
+ patch -p1 -s
+ echo 'Patch #3 (squid-2.5.STABLE7-close_other.patch):'
Patch #3 (squid-2.5.STABLE7-close_other.patch):
+ patch -p1 -s
+ echo 'Patch #4 (squid-2.5.STABLE7-empty_acls.patch):'
Patch #4 (squid-2.5.STABLE7-empty_acls.patch):
+ patch -p1 -s
+ echo 'Patch #5 (squid-2.5.STABLE7-cachemgr_vmobjects.patch):'
Patch #5 (squid-2.5.STABLE7-cachemgr_vmobjects.patch):
+ patch -p1 -s
+ echo 'Patch #6 (squid-2.5.STABLE7-httpd_accel_vport.patch):'
Patch #6 (squid-2.5.STABLE7-httpd_accel_vport.patch):
+ patch -p1 -s
+ echo 'Patch #7 (squid-2.5.STABLE7-PURGE_internal.patch):'
Patch #7 (squid-2.5.STABLE7-PURGE_internal.patch):
+ patch -p1 -s
+ echo 'Patch #8 (squid-2.5.STABLE7-dothost.patch):'
Patch #8 (squid-2.5.STABLE7-dothost.patch):
+ patch -p1 -s
+ echo 'Patch #9 (squid-2.5.STABLE7-blank_response.patch):'
Patch #9 (squid-2.5.STABLE7-blank_response.patch):
+ patch -p1 -s
+ echo 'Patch #10 (squid-2.5.STABLE7-non_blocking_disk.patch):'
Patch #10 (squid-2.5.STABLE7-non_blocking_disk.patch):
+ patch -p1 -s
+ echo 'Patch #11 (squid-2.5.STABLE7-helper_shutdown.patch):'
Patch #11 (squid-2.5.STABLE7-helper_shutdown.patch):
+ patch -p1 -s
+ echo 'Patch #12 (squid-2.5.STABLE7_req_resp_header.patch):'
Patch #12 (squid-2.5.STABLE7_req_resp_header.patch):
+ patch -p1 -s
+ echo 'Patch #13 (squid-2.5.STABLE7-LDAP_version_documentation.patch):'
Patch #13 (squid-2.5.STABLE7-LDAP_version_documentation.patch):
+ patch -p1 -s
+ echo 'Patch #14 (squid-2.5.STABLE7-half_closed_POST.patch):'
Patch #14 (squid-2.5.STABLE7-half_closed_POST.patch):
+ patch -p1 -s
+ echo 'Patch #101 (squid-location.patch):'
Patch #101 (squid-location.patch):
+ patch -p1 -s
+ echo 'Patch #102 (squid-domainmatch.patch):'
Patch #102 (squid-domainmatch.patch):
+ patch -p1 -s
+ echo 'Patch #103 (squid-ac_fix.patch):'
Patch #103 (squid-ac_fix.patch):
+ patch -p1 -s
+ echo 'Patch #104 (squid-crash-on-ENOSPC.patch):'
Patch #104 (squid-crash-on-ENOSPC.patch):
+ patch -p1 -s
+ echo 'Patch #105 (squid-newssl.patch):'
Patch #105 (squid-newssl.patch):
+ patch -p1 -s
+ echo 'Patch #106 (squid-64bit.patch):'
Patch #106 (squid-64bit.patch):
+ patch -p1 -s
+ echo 'Patch #107 (squid-libnsl_fixes.patch):'
Patch #107 (squid-libnsl_fixes.patch):
+ patch -p1 -s
+ mv -f squid/Release-Notes-1.1.txt squid/Welcome.html squid/added squid/basics squid/detail squid/hierarchies squid/images squid/index.html squid/info squid/initial squid/nty.html squid/opt squid/starting squid/template.html doc
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.15536
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd squid-2.5.STABLE7
+ LANG=C
+ export LANG
+ unset DISPLAY
+ aclocal
acinclude.m4:10: warning: underquoted definition of AC_CHECK_SIZEOF_SYSTYPE
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automa ... l#Extending-aclocal
acinclude.m4:49: warning: underquoted definition of AC_CHECK_SYSTYPE
configure.in:1438: warning: AC_CHECK_TYPE: assuming `u_short' is not a type
autoconf/types.m4:234: AC_CHECK_TYPE is expanded from...
configure.in:1438: the top level
+ autoconf
configure.in:1438: warning: AC_CHECK_TYPE: assuming `u_short' is not a type
autoconf/types.m4:234: AC_CHECK_TYPE is expanded from...
configure.in:1438: the top level
+ autoheader
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
configure.in:1438: warning: AC_CHECK_TYPE: assuming `u_short' is not a type
autoconf/types.m4:234: AC_CHECK_TYPE is expanded from...
configure.in:1438: the top level
+ automake
configure.in:1438: warning: AC_CHECK_TYPE: assuming `u_short' is not a type
autoconf/types.m4:234: AC_CHECK_TYPE is expanded from...
configure.in:1438: the top level
Makefile.am: required file `./NEWS' not found
Makefile.am: required file `./AUTHORS' not found
error: Bad exit status from /var/tmp/rpm-tmp.15536 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.15536 (%build)
请各位帮忙看一下,谢谢。 |
|