On 15/03/2015 1:39 a.m., johnzeng wrote: > > Hello All > > i read the link > > http://www.squid-cache.org/mail-archive/squid-users/201112/0339.html > > but i cat config.log | grep HAVE_DB_H in according to the advisement >> | #define HAVE_DB_H 1 >> | #define HAVE_DB_H 1 >> | #define HAVE_DB_H 1 >> | #define HAVE_DB_H 1 >> | #define HAVE_DB_H 1 >> | #define HAVE_DB_H 1 >> | #define HAVE_DB_H 1 >> | #define HAVE_DB_H 1 >> | #define HAVE_DB_H 1 > > > > >> Hello All: >> >> I try to compile helpers/external_acl/session too , and Db evirontment >> is db-4.8.30 ( Berkeley DB) , Maybe it will be caused by error Bdb version . >> >> But i can't confirm . >> >> ./configure --prefix=/accerater/webcache3 >> --enable-follow-x-forwarded-for --enable-snmp --enable-linux-netfilter >> --enable-storeio=aufs,rock --enable-wccpv2 --with-large-files >> --enable-removal-policies=lru,heap --enable-async-io=128 >> --enable-http-violations --with-maxfd=65536 --enable-large-cache-files >> --enable-delay-pools --enable-forward-log --with-pthreads >> LIBS=-ltcmalloc --enable-url-rewrite-helpers --enable-log-daemon-helpers >> --enable-epoll --enable-ltdl-convenience --with-included-ltdl >> --enable-disk-io=AIO,Blocking,DiskThreads,IpcIo,Mmapped >> CXXFLAGS="-I/accerater/env/ldap/include -I/accerater/env/bdb/include" >> LDFLAGS="-L/accerater/env/ldap/lib -L/accerater/env/bdb/lib" >> >> >> This is error compile info >> >> libtool: link: g++ -Wall -Wpointer-arith -Wwrite-strings -Wcomments >> -Wshadow -Werror -pipe -D_REENTRANT -m32 -D_LARGEFILE_SOURCE >> -D_FILE_OFFSET_BITS=64 -I/accerater/env/bdb/include -march=native -m32 >> -o ext_session_acl ext_session_acl.o -L/accerater/env/bdb/lib >> ../../../compat/.libs/libcompat-squid.a >> ext_session_acl.o: In function `init_db()': >> ext_session_acl.cc:(.text+0x5a): undefined reference to `db_env_create' >> ext_session_acl.cc:(.text+0x101): undefined reference to `db_create' >> ext_session_acl.cc:(.text+0x1d6): undefined reference to `db_create' The BDB library seems not to be built or found at the -L location you provided. When its found by ./configure an -lbdb or similar entry would be added for it after the libcompat-squid.a name. Amos _______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users