squid 下载软件时发生了问题 Invalid Request 会是什么问题

Squid&反向代理Reverse&Proxy
<img BORDER="0" ALT="" src="/blog7style/images/common/sg_trans.gif" real_src ="/attachment/311352.jpg" WIDTH="650" HEIGHT="419" STYLE="padding: 0 margin: 0 vertical-align: border-style:"
TITLE="Squid&反向代理Reverse&Proxy" />
当反向代理服务器不止一个的时候,我们甚至可以把它们做成集群,当更多的用户访问资源服务器B的时候,让不同的代理服务器Z(x)去应答不同的用户,然后发送不同用户需要的资源。
当然反向代理服务器像正向代理服务器一样拥有CACHE的作用,它可以缓存原始资源服务器B的资源,而不是每次都要向原始资源服务器B请求数据,特别是一些静态的数据,比如图片和文件,如果这些反向代理服务器能够做到和用户X来自同一个网络,那么用户X访问反向代理服务器X,就会得到很高质量的速度。这正是CDN技术的核心。如下图2.3
<img BORDER="0" ALT="" src="/blog7style/images/common/sg_trans.gif" real_src ="/attachment/403848.jpg" WIDTH="594" HEIGHT="484" STYLE="padding: 0 margin: 0 vertical-align: border-style:"
TITLE="Squid&反向代理Reverse&Proxy" />
我们并不是讲解CDN,所以去掉了CDN最关键的核心技术智能DNS。只是展示CDN技术实际上利用的正是反向代理原理这块。
反向代理结论与正向代理正好相反,对于客户端而言它就像是原始服务器,并且客户端不需要进行任何特别的设置。客户端向反向代理的命名空间(name-space)中的内容发送普通请求,接着反向代理将判断向何处(原始服务器)转交请求,并将获得的内容返回给客户端,就像这些内容原本就是它自己的一样。
基本上,网上做正反向代理的程序很多,能做正向代理的软件大部分也可以做反向代理。开源软件中最流行的就是squid,既可以做正向代理,也有很多人用来做反向代理的前端服务器。另外MS
ISA也可以用来在WINDOWS平台下做正向代理。反向代理中最主要的实践就是WEB服务,近些年来最火的就是Nginx了。网上有人说NGINX不能做正向代理,其实是不对的。NGINX也可以做正向代理,不过用的人比较少了。
&互联网的客户端直接访问squid,squid代理他们访问内网的web服务器,把获取的结果返回客户端
vm1 ———&
vmnet1 [真实机器squid] eth0 —&& [web]
http_port 80 vhost vport
cache_peer
&10.1.1.172 parent 80 0 no-query originserver
cache_peer_domain web
&&—这个域名是实验,不能被DNS解析,所以必须在服务器hosts文件作静态绑定
注意:把所有规则都去掉,改成允许所有人访问
http_access allow all
cache_dir ufs /var/spool/squid 1000
8 128 &配置缓存文件的文件格式,缓存大小,缓存目录数
http://wiki.squid-cache.org/ConfigExamples/Reverse/VirtualHosting
If you are using Squid-3.1 or
older has an accelerator for a domain based virtual host system
then you need to additionally specify the vhost option to
http_port 80 accel
defaultsite=your.main.website.name vhost
//解释说明accel
tells Squid to handle requests coming in this port as if it was a
Web Server
//解释说明defaultsite=X tells Squid
to assume the domain X is wanted.
//解释说明vhost for Squid-3.1 or older
enables HTTP/1.1 domain based virtual hosting support. Omit this
option for Squid-3.2 or later versions.
//解释说明When both defaultsite and
vhost is specified, defaultsite specifies the domain name old
HTTP/1.0 clients not sending a Host header should be sent to. Squid
will run fine if you only use vhost, but there is still some
software out there not sending Host headers so it's recommended to
specify defaultsite as well. If defaultsite is not specified those
clients will get an "Invalid request" error.\
//解释说明Next,
you need to tell Squid where to find the real web
cache_peer
backend.webserver.ip.or.dnsname parent 80 0 no-query originserver
name=myAccel
//解释说明And finally you need to set
up access controls to allow access to your site without pushing
other web requests to your web server.
acl our_sites dstdomain
your.main.website.name
http_access allow
cache_peer_access myAccel allow
cache_peer_access myAccel deny
//解释说明You should now be able to
start Squid and it will serve requests as a HTTP
difference between these
1.正向代理服务器需要客户端指定ip地址和端口号才能访问登录的
2.透明代理服务器和正向代理基本上是一样的,但是有一点它对客户端是透明的,客户端不需要知道ip端口号就能访问代理服务器
3.反向代理服务器主要是为了减轻web服务器的负载,依靠cache缓存实现负载均衡
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。编译squid出现的错误。求解 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
已注册用户请 &
Sponsored by
国内领先的实时后端云野狗 API 可用于开发即时聊天、网络游戏、实时定位等实时场景传输快!响应快!入门快!
Promoted by
编译squid出现的错误。求解
17:16:57 +08:00 · 2502 次点击
../../src/ssl/gadgets.h:32: error: expected initializer before '*' tokencc1plus: warnings being treated as errors../../src/ssl/gadgets.h:76: warning: 'X509_free_cpp' initialized and declared 'e xtern'../../src/ssl/gadgets.h:76: error: variable or field 'X509_free_cpp' declared vo id../../src/ssl/gadgets.h:76: error: 'Ssl::X509_free_cpp' declared as an 'inline' variable../../src/ssl/gadgets.h:76: error: 'X509' was not declared in this scope../../src/ssl/gadgets.h:76: error: 'a' was not declared in this scope../../src/ssl/gadgets.h:76: error: expected ',' or ';' before '{' token../../src/ssl/gadgets.h:77: error: 'X509' was not declared in this scope../../src/ssl/gadgets.h:77: error: 'CRYPTO_LOCK_X509' was not declared in this s cope../../src/ssl/gadgets.h:77: error: template argument 1 is invalid../../src/ssl/gadgets.h:77: error: '&type error&' is not a valid type for a temp late constant parameter../../src/ssl/gadgets.h:77: error: template argument 3 is invalid../../src/ssl/gadgets.h:77: error: invalid type in declaration before ';' token../../src/ssl/gadgets.h:79: warning: 'sk_X509_free_wrapper' initialized and decl ared 'extern'../../src/ssl/gadgets.h:79: error: variable or field 'sk_X509_free_wrapper' decl ared void../../src/ssl/gadgets.h:79: error: 'Ssl::sk_X509_free_wrapper' declared as an 'i nline' variable../../src/ssl/gadgets.h:79: error: 'X509' was not declared in this scope../../src/ssl/gadgets.h:79: error: 'STACK_OF' was not declared in this scope../../src/ssl/gadgets.h:79: error: 'a' was not declared in this scope../../src/ssl/gadgets.h:79: error: expected ',' or ';' before '{' token../../src/ssl/gadgets.h:80: error: 'X509' was not declared in this scope../../src/ssl/gadgets.h:80: error: a function call cannot appear in a constant-e xpression../../src/ssl/gadgets.h:80: error: template argument 1 is invalid../../src/ssl/gadgets.h:80: error: '&type error&' is not a valid type for a temp late constant parameter../../src/ssl/gadgets.h:80: error: invalid type in declaration before ';' token../../src/ssl/gadgets.h:82: warning: 'EVP_PKEY_free_cpp' initialized and declare d 'extern'../../src/ssl/gadgets.h:82: error: variable or field 'EVP_PKEY_free_cpp' declare d void../../src/ssl/gadgets.h:82: error: 'Ssl::EVP_PKEY_free_cpp' declared as an 'inli ne' variable../../src/ssl/gadgets.h:82: error: 'EVP_PKEY' was not declared in this scope../../src/ssl/gadgets.h:82: error: 'a' was not declared in this scope../../src/ssl/gadgets.h:82: error: expected ',' or ';' before '{' token../../src/ssl/gadgets.h:83: error: 'EVP_PKEY' was not declared in this scope../../src/ssl/gadgets.h:83: error: 'CRYPTO_LOCK_EVP_PKEY' was not declared in th is scope../../src/ssl/gadgets.h:83: error: template argument 1 is invalid../../src/ssl/gadgets.h:83: error: '&type error&' is not a valid type for a temp late constant parameter../../src/ssl/gadgets.h:83: error: template argument 3 is invalid../../src/ssl/gadgets.h:83: error: invalid type in declaration before ';' token../../src/ssl/gadgets.h:85: warning: 'BN_free_cpp' initialized and declared 'ext ern'../../src/ssl/gadgets.h:85: error: variable or field 'BN_free_cpp' declared void../../src/ssl/gadgets.h:85: error: 'Ssl::BN_free_cpp' declared as an 'inline' va riable../../src/ssl/gadgets.h:85: error: 'BIGNUM' was not declared in this scope../../src/ssl/gadgets.h:85: error: 'a' was not declared in this scope../../src/ssl/gadgets.h:85: error: expected ',' or ';' before '{' token../../src/ssl/gadgets.h:86: error: 'BIGNUM' was not declared in this scope../../src/ssl/gadgets.h:86: error: template argument 1 is invalid../../src/ssl/gadgets.h:86: error: '&type error&' is not a valid type for a temp late constant parameter../../src/ssl/gadgets.h:86: error: invalid type in declaration before ';' token../../src/ssl/gadgets.h:88: warning: 'BIO_free_cpp' initialized and declared 'ex tern'../../src/ssl/gadgets.h:88: error: variable or field 'BIO_free_cpp' declared voi d../../src/ssl/gadgets.h:88: error: 'Ssl::BIO_free_cpp' declared as an 'inline' v ariable../../src/ssl/gadgets.h:88: error: 'BIO' was not declared in this scope../../src/ssl/gadgets.h:88: error: 'a' was not declared in this scope../../src/ssl/gadgets.h:88: error: expected ',' or ';' before '{' token../../src/ssl/gadgets.h:89: error: 'BIO' was not declared in this scope../../src/ssl/gadgets.h:89: error: template argument 1 is invalid../../src/ssl/gadgets.h:89: error: '&type error&' is not a valid type for a temp late constant parameter../../src/ssl/gadgets.h:89: error: invalid type in declaration before ';' token../../src/ssl/gadgets.h:91: warning: 'ASN1_INTEGER_free_cpp' initialized and dec lared 'extern'../../src/ssl/gadgets.h:91: error: variable or field 'ASN1_INTEGER_free_cpp' dec lared void../../src/ssl/gadgets.h:91: error: 'Ssl::ASN1_INTEGER_free_cpp' declared as an ' inline' variable../../src/ssl/gadgets.h:91: error: 'ASN1_INTEGER' was not declared in this scope../../src/ssl/gadgets.h:91: error: 'a' was not declared in this scope../../src/ssl/gadgets.h:91: error: expected ',' or ';' before '{' token../../src/ssl/gadgets.h:92: error: 'ASN1_INTEGER' was not declared in this scope../../src/ssl/gadgets.h:92: error: template argument 1 is invalid../../src/ssl/gadgets.h:92: error: '&type error&' is not a valid type for a temp late constant parameter../../src/ssl/gadgets.h:92: error: invalid type in declaration before ';' token../../src/ssl/gadgets.h:94: warning: 'TXT_DB_free_cpp' initialized and declared 'extern'../../src/ssl/gadgets.h:94: error: variable or field 'TXT_DB_free_cpp' declared void../../src/ssl/gadgets.h:94: error: 'Ssl::TXT_DB_free_cpp' declared as an 'inline ' variable../../src/ssl/gadgets.h:94: error: 'TXT_DB' was not declared in this scope../../src/ssl/gadgets.h:94: error: 'a' was not declared in this scope../../src/ssl/gadgets.h:94: error: expected ',' or ';' before '{' token../../src/ssl/gadgets.h:95: error: 'TXT_DB' was not declared in this scope../../src/ssl/gadgets.h:95: error: template argument 1 is invalid../../src/ssl/gadgets.h:95: error: '&type error&' is not a valid type for a temp late constant parameter../../src/ssl/gadgets.h:95: error: invalid type in declaration before ';' token../../src/ssl/gadgets.h:97: warning: 'X509_NAME_free_cpp' initialized and declar ed 'extern'../../src/ssl/gadgets.h:97: error: variable or field 'X509_NAME_free_cpp' declar ed void../../src/ssl/gadgets.h:97: error: 'Ssl::X509_NAME_free_cpp' declared as an 'inl ine' variable../../src/ssl/gadgets.h:97: error: 'X509_NAME' was not declared in this scope../../src/ssl/gadgets.h:97: error: 'a' was not declared in this scope../../src/ssl/gadgets.h:97: error: expected ',' or ';' before '{' token../../src/ssl/gadgets.h:98: error: 'X509_NAME' was not declared in this scope../../src/ssl/gadgets.h:98: error: template argument 1 is invalid../../src/ssl/gadgets.h:98: error: '&type error&' is not a valid type for a temp late constant parameter../../src/ssl/gadgets.h:98: error: invalid type in declaration before ';' token../../src/ssl/gadgets.h:100: warning: 'RSA_free_cpp' initialized and declared 'e xtern'../../src/ssl/gadgets.h:100: error: variable or field 'RSA_free_cpp' declared vo id../../src/ssl/gadgets.h:100: error: 'Ssl::RSA_free_cpp' declared as an 'inline' variable../../src/ssl/gadgets.h:100: error: 'RSA' was not declared in this scope../../src/ssl/gadgets.h:100: error: 'a' was not declared in this scope../../src/ssl/gadgets.h:100: error: expected ',' or ';' before '{' token../../src/ssl/gadgets.h:101: error: 'RSA' was not declared in this scope../../src/ssl/gadgets.h:101: error: template argument 1 is invalid../../src/ssl/gadgets.h:101: error: '&type error&' is not a valid type for a tem plate constant parameter../../src/ssl/gadgets.h:101: error: invalid type in declaration before ';' token../../src/ssl/gadgets.h:103: warning: 'X509_REQ_free_cpp' initialized and declar ed 'extern'../../src/ssl/gadgets.h:103: error: variable or field 'X509_REQ_free_cpp' declar ed void../../src/ssl/gadgets.h:103: error: 'Ssl::X509_REQ_free_cpp' declared as an 'inl ine' variable../../src/ssl/gadgets.h:103: error: 'X509_REQ' was not declared in this scope../../src/ssl/gadgets.h:103: error: 'a' was not declared in this scope../../src/ssl/gadgets.h:103: error: expected ',' or ';' before '{' token../../src/ssl/gadgets.h:104: error: 'X509_REQ' was not declared in this scope../../src/ssl/gadgets.h:104: error: template argument 1 is invalid../../src/ssl/gadgets.h:104: error: '&type error&' is not a valid type for a tem plate constant parameter../../src/ssl/gadgets.h:104: error: invalid type in declaration before ';' token../../src/ssl/gadgets.h:106: warning: 'SSL_CTX_free_cpp' initialized and declare d 'extern'../../src/ssl/gadgets.h:106: error: variable or field 'SSL_CTX_free_cpp' declare d void../../src/ssl/gadgets.h:106: error: 'Ssl::SSL_CTX_free_cpp' declared as an 'inli ne' variable../../src/ssl/gadgets.h:106: error: 'SSL_CTX' was not declared in this scope../../src/ssl/gadgets.h:106: error: 'a' was not declared in this scope../../src/ssl/gadgets.h:106: error: expected ',' or ';' before '{' token../../src/ssl/gadgets.h:107: error: 'SSL_CTX' was not declared in this scope../../src/ssl/gadgets.h:107: error: template argument 1 is invalid../../src/ssl/gadgets.h:107: error: '&type error&' is not a valid type for a tem plate constant parameter../../src/ssl/gadgets.h:107: error: invalid type in declaration before ';' token../../src/ssl/gadgets.h:109: warning: 'SSL_free_cpp' initialized and declared 'e xtern'../../src/ssl/gadgets.h:109: error: variable or field 'SSL_free_cpp' declared vo id../../src/ssl/gadgets.h:109: error: 'Ssl::SSL_free_cpp' declared as an 'inline' variable../../src/ssl/gadgets.h:109: error: 'SSL' was not declared in this scope../../src/ssl/gadgets.h:109: error: 'a' was not declared in this scope../../src/ssl/gadgets.h:109: error: expected ',' or ';' before '{' token../../src/ssl/gadgets.h:110: error: 'SSL' was not declared in this scope../../src/ssl/gadgets.h:110: error: template argument 1 is invalid../../src/ssl/gadgets.h:110: error: '&type error&' is not a valid type for a tem plate constant parameter../../src/ssl/gadgets.h:110: error: invalid type in declaration before ';' token../../src/ssl/gadgets.h:112: warning: 'DH_free_cpp' initialized and declared 'ex tern'../../src/ssl/gadgets.h:112: error: variable or field 'DH_free_cpp' declared voi d../../src/ssl/gadgets.h:112: error: 'Ssl::DH_free_cpp' declared as an 'inline' v ariable../../src/ssl/gadgets.h:112: error: 'DH' was not declared in this scope../../src/ssl/gadgets.h:112: error: 'a' was not declared in this scope../../src/ssl/gadgets.h:112: error: expected ',' or ';' before '{' token../../src/ssl/gadgets.h:113: error: 'DH' was not declared in this scope../../src/ssl/gadgets.h:113: error: template argument 1 is invalid../../src/ssl/gadgets.h:113: error: '&type error&' is not a valid type for a tem plate constant parameter../../src/ssl/gadgets.h:113: error: invalid type in declaration before ';' token../../src/ssl/gadgets.h:115: warning: 'sk_X509_CRL_free_wrapper' initialized and declared 'extern'../../src/ssl/gadgets.h:115: error: variable or field 'sk_X509_CRL_free_wrapper' declared void../../src/ssl/gadgets.h:115: error: 'Ssl::sk_X509_CRL_free_wrapper' declared as an 'inline' variable../../src/ssl/gadgets.h:115: error: 'X509_CRL' was not declared in this scope../../src/ssl/gadgets.h:115: error: 'STACK_OF' was not declared in this scope../../src/ssl/gadgets.h:115: error: 'a' was not declared in this scope../../src/ssl/gadgets.h:115: error: expected ',' or ';' before '{' token../../src/ssl/gadgets.h:116: error: 'X509_CRL' was not declared in this scope../../src/ssl/gadgets.h:116: error: a function call cannot appear in a constant- expression../../src/ssl/gadgets.h:116: error: template argument 1 is invalid../../src/ssl/gadgets.h:116: error: '&type error&' is not a valid type for a tem plate constant parameter../../src/ssl/gadgets.h:116: error: invalid type in declaration before ';' token../../src/ssl/gadgets.h:118: warning: 'sk_X509_NAME_free_wrapper' initialized an d declared 'extern'../../src/ssl/gadgets.h:118: error: variable or field 'sk_X509_NAME_free_wrapper ' declared void../../src/ssl/gadgets.h:118: error: 'Ssl::sk_X509_NAME_free_wrapper' declared as an 'inline' variable../../src/ssl/gadgets.h:118: error: 'X509_NAME' was not declared in this scope../../src/ssl/gadgets.h:118: error: 'STACK_OF' was not declared in this scope../../src/ssl/gadgets.h:118: error: 'a' was not declared in this scope../../src/ssl/gadgets.h:118: error: expected ',' or ';' before '{' token../../src/ssl/gadgets.h:119: error: 'X509_NAME' was not declared in this scope../../src/ssl/gadgets.h:119: error: a function call cannot appear in a constant- expression../../src/ssl/gadgets.h:119: error: template argument 1 is invalid../../src/ssl/gadgets.h:119: error: '&type error&' is not a valid type for a tem plate constant parameter../../src/ssl/gadgets.h:119: error: invalid type in declaration before ';' token../../src/ssl/gadgets.h:125: error: expected constructor, destructor, or type co nversion before '*' token../../src/ssl/gadgets.h:256: error: expected constructor, destructor, or type co nversion before '*' token../../src/ssl/gadgets.h:279: error: 'X509' was not declared in this scope../../src/ssl/gadgets.h:279: error: 'peer_cert' was not declared in this scope../../src/ssl/gadgets.h:279: error: expected primary-expression before 'const'../../src/ssl/gadgets.h:279: error: initializer expression list treated as compo und expression../../src/ssl/gadgets.h:286: error: 'X509' was not declared in this scope../../src/ssl/gadgets.h:286: error: 'x509' was not declared in this scope../../src/ssl/gadgets.h:293: error: 'X509' was not declared in this scope../../src/ssl/gadgets.h:293: error: 'x509' was not declared in this scope../../src/anyp/PortCfg.h:85: error: 'ContextMethod' in namespace 'Ssl' does not name a type../../src/ssl/support.h:80: error: expected constructor, destructor, or type con version before '*' token../../src/ssl/support.h:83: error: expected constructor, destructor, or type con version before '*' token../../src/ssl/support.h:92: error: variable or field 'ssl_shutdown_method' decla red void../../src/ssl/support.h:92: error: 'SSL' was not declared in this scope../../src/ssl/support.h:92: error: 'ssl' was not declared in this scope../../src/ssl/support.h:95: error: 'SSL' was not declared in this scope../../src/ssl/support.h:95: error: 'ssl' was not declared in this scope../../src/ssl/support.h:98: error: typedef 'SSLGETATTRIBUTE' is initialized (use __typeof__ instead)../../src/ssl/support.h:98: error: 'SSL' was not declared in this scope../../src/ssl/support.h:98: error: expected primary-expression before ',' token../../src/ssl/support.h:98: error: expected primary-expression before 'const'../../src/ssl/support.h:101: error: 'SSLGETATTRIBUTE' does not name a type../../src/ssl/support.h:104: error: 'SSLGETATTRIBUTE' does not name a type../../src/ssl/support.h:107: error: 'SSL' was not declared in this scope../../src/ssl/support.h:107: error: 'ssl' was not declared in this scope../../src/ssl/support.h:110: error: 'SSL' was not declared in this scope../../src/ssl/support.h:110: error: 'ssl' was not declared in this scope../../src/ssl/support.h:151: error: expected constructor, destructor, or type co nversion before '(' token../../src/ssl/support.h:157: error: expected constructor, destructor, or type co nversion before '*' token../../src/ssl/support.h:163: error: 'ContextMethod' does not name a type../../src/ssl/support.h:175: error: expected constructor, destructor, or type co nversion before '*' token../../src/ssl/support.h:184: error: 'SSL_CTX' was not declared in this scope../../src/ssl/support.h:184: error: 'sslContext' was not declared in this scope../../src/ssl/support.h:184: error: expected primary-expression before 'const'../../src/ssl/support.h:184: error: initializer expression list treated as compo und expression../../src/ssl/support.h:191: error: expected constructor, destructor, or type co nversion before '*' token../../src/ssl/support.h:197: error: variable or field 'addChainToSslContext' dec lared void../../src/ssl/support.h:197: error: 'SSL_CTX' was not declared in this scope../../src/ssl/support.h:197: error: 'sslContext' was not declared in this scope../../src/ssl/support.h:197: error: 'X509' was not declared in this scope../../src/ssl/support.h:197: error: 'STACK_OF' was not declared in this scope../../src/ssl/support.h:197: error: 'certList' was not declared in this scope../../src/ssl/support.h:197: error: initializer expression list treated as compo und expression../../src/ssl/support.h:217: error: 'X509' was not declared in this scope../../src/ssl/support.h:217: error: 'peer_cert' was not declared in this scope../../src/ssl/support.h:217: error: expected primary-expression before 'void'../../src/ssl/support.h:217: error: 'check_func' was not declared in this scope../../src/ssl/support.h:217: error: expected primary-expression before 'void'../../src/ssl/support.h:217: error: 'ASN1_STRING' was not declared in this scope../../src/ssl/support.h:217: error: 'cn_data' was not declared in this scope../../src/ssl/support.h:217: error: initializer expression list treated as compo und expression../../src/ssl/support.h:226: error: 'X509' was not declared in this scope../../src/ssl/support.h:226: error: 'cert' was not declared in this scope../../src/ssl/support.h:226: error: expected primary-expression before 'const'../../src/ssl/support.h:226: error: initializer expression list treated as compo und expression../../src/ssl/support.h:236: error: 'ASN1_TIME' was not declared in this scope../../src/ssl/support.h:236: error: expected primary-expression before ',' token../../src/ssl/support.h:236: error: expected primary-expression before 'char'../../src/ssl/support.h:236: error: expected primary-expression before 'int'../../src/ssl/support.h:236: error: initializer expression list treated as compo und expression../../src/ssl/support.h:244: error: 'SSL' was not declared in this scope../../src/ssl/support.h:244: error: 'ssl' was not declared in this scope../../src/ssl/support.h:244: error: expected primary-expression before 'const'../../src/ssl/support.h:244: error: initializer expression list treated as compo und expressionPortCfg.cc: In member function 'void AnyP::PortCfg::configureSslServerContext()' :PortCfg.cc:119: error: request for member 'reset' in '((AnyP::PortCfg*)this)-&An yP::PortCfg::clientVerifyCrls', which is of non-class type 'Ssl::X509_CRL_STACK_ Pointer'PortCfg.cc:119: error: 'loadCrl' is not a member of 'Ssl'PortCfg.cc:122: error: request for member 'reset' in '((AnyP::PortCfg*)this)-&An yP::PortCfg::clientCA', which is of non-class type 'Ssl::X509_NAME_STACK_Pointer 'PortCfg.cc:122: error: 'SSL_load_client_CA_file' was not declared in this scopePortCfg.cc:123: error: request for member 'get' in '((AnyP::PortCfg*)this)-&AnyP ::PortCfg::clientCA', which is of non-class type 'Ssl::X509_NAME_STACK_Pointer'PortCfg.cc:128: error: 'contextMethod' was not declared in this scopePortCfg.cc:128: error: 'contextMethod' is not a member of 'Ssl'PortCfg.cc:133: error: request for member 'reset' in '((AnyP::PortCfg*)this)-&An yP::PortCfg::dhParams', which is of non-class type 'Ssl::DH_Pointer'PortCfg.cc:133: error: 'readDHParams' is not a member of 'Ssl'PortCfg.cc:140: error: request for member 'reset' in '((AnyP::PortCfg*)this)-&An yP::PortCfg::staticSslContext', which is of non-class type 'Ssl::SSL_CTX_Pointer 'PortCfg.cc:140: error: 'sslCreateServerContext' was not declared in this scopemake[3]: *** [PortCfg.lo] Error 1make[3]: Leaving directory `/root/squid-3.3.8/src/anyp'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/root/squid-3.3.8/src'make[1]: *** [all] Error 2make[1]: Leaving directory `/root/squid-3.3.8/src
第 1 条附言 &·&
17:56:17 +08:00
./configure --prefix=/usr/local/squid --enable-ssl --enable-cache-digests --enable-err-language="Traditional_Chinese" --enable-default-err-language="Traditional_Chinese" --enable-kill-parent-hack --enable-linux-netfilter --enable-snmp --enable-underscores --enable-gnuregex --enable-async-io=160 --enable-poll --disable-ident-lookups --disable-internal-dns --enable-icmp --enable-useragent-log --enable-referer-log --enable-cachemgr
--enable-truncate --enable-underscores --enable-stacktrace
4 回复 &| &直到
08:00:00 +08:00
& & 18:01:53 +08:00
apt-get install libssl-dev
& & 18:35:50 +08:00
@ centos。。上一个问题解决了
然后出现
ibIpcIo.a(IpcIoFile.o):/root/squid-3.3.8/src/../src/ipc/AtomicWord.h:45: more undefined references to `__sync_fetch_and_add_4' follow
libIpcIo.a(IpcIoFile.o): In function `Ipc::Atomic::WordT&int&:perator+=(int)':
/root/squid-3.3.8/src/../src/ipc/AtomicWord.h:29: undefined reference to `__sync_add_and_fetch_4'
libIpcIo.a(IpcIoFile.o): In function `Ipc::Atomic::WordT&int&::get() const':
/root/squid-3.3.8/src/../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
libIpcIo.a(IpcIoFile.o): In function `Ipc::Atomic::WordT&int&::swap_if(int, int)':
/root/squid-3.3.8/src/../src/ipc/AtomicWord.h:36: undefined reference to `__sync_bool_compare_and_swap_4'
libIpcIo.a(IpcIoFile.o): In function `Ipc::Atomic::WordT&int&::get() const':
/root/squid-3.3.8/src/../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
/root/squid-3.3.8/src/../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
libIpcIo.a(IpcIoFile.o): In function `Ipc::Atomic::WordT&int&::swap_if(int, int)':
/root/squid-3.3.8/src/../src/ipc/AtomicWord.h:36: undefined reference to `__sync_bool_compare_and_swap_4'
libIpcIo.a(IpcIoFile.o): In function `Ipc::Atomic::WordT&int&::get() const':
/root/squid-3.3.8/src/../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
libIpcIo.a(IpcIoFile.o): In function `Ipc::Atomic::WordT&int&::swap_if(int, int)':
/root/squid-3.3.8/src/../src/ipc/AtomicWord.h:36: undefined reference to `__sync_bool_compare_and_swap_4'
libIpcIo.a(IpcIoFile.o): In function `Ipc::Atomic::WordT&int&:perator-=(int)':
/root/squid-3.3.8/src/../src/ipc/AtomicWord.h:30: undefined reference to `__sync_sub_and_fetch_4'
libIpcIo.a(IpcIoFile.o): In function `Ipc::Atomic::WordT&int&::get() const':
/root/squid-3.3.8/src/../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
/root/squid-3.3.8/src/../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
/root/squid-3.3.8/src/../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
ipc/.libs/libipc.a(Queue.o): In function `Ipc::Atomic::WordT&int&::swap_if(int, int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:36: undefined reference to `__sync_bool_compare_and_swap_4'
ipc/.libs/libipc.a(Queue.o): In function `Ipc::Atomic::WordT&int&::swap_if(int, int)':
/root/squid-3.3.8/src/ipc/Queue.cc:250: undefined reference to `__sync_bool_compare_and_swap_4'
ipc/.libs/libipc.a(ReadWriteLock.o): In function `Ipc::Atomic::WordT&int&:perator--(int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:34: undefined reference to `__sync_fetch_and_sub_4'
ipc/.libs/libipc.a(ReadWriteLock.o): In function `Ipc::Atomic::WordT&int&:perator+=(int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:29: undefined reference to `__sync_add_and_fetch_4'
ipc/.libs/libipc.a(ReadWriteLock.o): In function `Ipc::Atomic::WordT&int&::get() const':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
ipc/.libs/libipc.a(ReadWriteLock.o): In function `Ipc::Atomic::WordT&int&:perator--(int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:34: undefined reference to `__sync_fetch_and_sub_4'
ipc/.libs/libipc.a(ReadWriteLock.o): In function `Ipc::Atomic::WordT&int&:perator+=(int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:29: undefined reference to `__sync_add_and_fetch_4'
ipc/.libs/libipc.a(ReadWriteLock.o): In function `Ipc::Atomic::WordT&int&::get() const':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
ipc/.libs/libipc.a(ReadWriteLock.o): In function `Ipc::Atomic::WordT&int&:perator-=(int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:30: undefined reference to `__sync_sub_and_fetch_4'
ipc/.libs/libipc.a(ReadWriteLock.o): In function `Ipc::Atomic::WordT&int&:perator++(int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:33: undefined reference to `__sync_fetch_and_add_4'
ipc/.libs/libipc.a(ReadWriteLock.o): In function `Ipc::Atomic::WordT&int&::get() const':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
ipc/.libs/libipc.a(ReadWriteLock.o): In function `Ipc::Atomic::WordT&int&:perator-=(int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:30: undefined reference to `__sync_sub_and_fetch_4'
ipc/.libs/libipc.a(StoreMap.o): In function `Ipc::Atomic::WordT&int&::get() const':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
ipc/.libs/libipc.a(StoreMap.o): In function `Ipc::Atomic::WordT&int&:perator-=(int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:30: undefined reference to `__sync_sub_and_fetch_4'
ipc/.libs/libipc.a(StoreMap.o): In function `Ipc::Atomic::WordT&unsigned char&::get() const':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_1'
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_1'
ipc/.libs/libipc.a(StoreMap.o): In function `Ipc::Atomic::WordT&int&::operator+=(int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:29: undefined reference to `__sync_add_and_fetch_4'
ipc/.libs/libipc.a(Pages.o): In function `Ipc::Atomic::WordT&int&::get() const':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
ipc/.libs/libipc.a(PagePool.o): In function `Ipc::Atomic::WordT&int&::get() const':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
ipc/.libs/libipc.a(PagePool.o): In function `Ipc::Atomic::WordT&int&::operator-=(int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:30: undefined reference to `__sync_sub_and_fetch_4'
ipc/.libs/libipc.a(PagePool.o): In function `Ipc::Atomic::WordT&int&::operator+=(int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:29: undefined reference to `__sync_add_and_fetch_4'
ipc/.libs/libipc.a(PageStack.o): In function `Ipc::Atomic::WordT&int&::operator-=(int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:30: undefined reference to `__sync_sub_and_fetch_4'
ipc/.libs/libipc.a(PageStack.o): In function `Ipc::Atomic::WordT&int&::get() const':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
ipc/.libs/libipc.a(PageStack.o): In function `Ipc::Atomic::WordT&unsigned int&::fetchAndAnd(unsigned int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:39: undefined reference to `__sync_fetch_and_and_4'
ipc/.libs/libipc.a(PageStack.o): In function `Ipc::Atomic::WordT&int&::swap_if(int, int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:36: undefined reference to `__sync_bool_compare_and_swap_4'
ipc/.libs/libipc.a(PageStack.o): In function `Ipc::Atomic::WordT&int&::operator+=(int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:29: undefined reference to `__sync_add_and_fetch_4'
ipc/.libs/libipc.a(PageStack.o): In function `Ipc::Atomic::WordT&int&::get() const':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
ipc/.libs/libipc.a(PageStack.o): In function `Ipc::Atomic::WordT&unsigned int&::swap_if(unsigned int, unsigned int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:36: undefined reference to `__sync_bool_compare_and_swap_4'
ipc/.libs/libipc.a(PageStack.o): In function `Ipc::Atomic::WordT&int&::swap_if(int, int)':
/root/squid-3.3.8/src/ipc/mem/PageStack.cc:86: undefined reference to `__sync_bool_compare_and_swap_4'
ipc/.libs/libipc.a(PageStack.o): In function `Ipc::Atomic::WordT&int&::operator+=(int)':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:29: undefined reference to `__sync_add_and_fetch_4'
ipc/.libs/libipc.a(PageStack.o): In function `Ipc::Atomic::WordT&int&::get() const':
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
/root/squid-3.3.8/src/ipc/../../src/ipc/AtomicWord.h:45: undefined reference to `__sync_fetch_and_add_4'
collect2: ld returned 1 exit status
libtool: link: rm -f &.libs/squidS.o&
make[3]: *** [squid] Error 1
make[3]: Leaving directory `/root/squid-3.3.8/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/squid-3.3.8/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/squid-3.3.8/src'
make: *** [all-recursive] Error 1
& & 21:38:14 +08:00
总之字符串喂狗可查
& & 00:39:00 +08:00
你在补全所需的库之后
需要重新检测一下环境
就可以了
& · & 1135 人在线 & 最高记录 1893 & · &
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.7.3 · 44ms · UTC 10:42 · PVG 18:42 · LAX 03:42 · JFK 06:42? Do have faith in what you're doing.}

我要回帖

更多关于 invalid request code 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信