V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
hcw1588
V2EX  ›  问与答

编译squid出现的错误。求解

  •  
  •   hcw1588 · 2013-07-31 17:16:57 +08:00 · 5372 次点击
    这是一个创建于 4136 天前的主题,其中的信息可能已经有所发展或是发生改变。
    ../../src/ssl/gadgets.h:32: error: expected initializer before '*' token
    cc1plus: 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 expression
    PortCfg.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 scope
    PortCfg.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 scope
    PortCfg.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 scope
    make[3]: *** [PortCfg.lo] Error 1
    make[3]: Leaving directory `/root/squid-3.3.8/src/anyp'
    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
    第 1 条附言  ·  2013-07-31 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 条回复    1970-01-01 08:00:00 +08:00
    efi
        1
    efi  
       2013-07-31 18:01:53 +08:00
    apt-get install libssl-dev
    hcw1588
        2
    hcw1588  
    OP
       2013-07-31 18:35:50 +08:00
    @efi 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
    efi
        3
    efi  
       2013-07-31 21:38:14 +08:00
    kxmp
        4
    kxmp  
       2013-09-29 00:39:00 +08:00
    你在补全所需的库之后
    需要重新检测一下环境
    就可以了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   6029 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 02:27 · PVG 10:27 · LAX 18:27 · JFK 21:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.