编译squid出现的错误。求解

2013-07-31 17:16:57 +08:00
 hcw1588
../../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
5372 次点击
所在节点    问与答
4 条回复
efi
2013-07-31 18:01:53 +08:00
apt-get install libssl-dev
hcw1588
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
2013-07-31 21:38:14 +08:00
kxmp
2013-09-29 00:39:00 +08:00
你在补全所需的库之后
需要重新检测一下环境
就可以了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/77565

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX