On Wed, 2007-08-08 at 13:49 +0700, zen wrote: > i recently trying to build a squid box using squid-3.0.PRE6 version > but the process stop during make stage with these error messages : > > > Making all in src > if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Werror -Wall > -Wpointer-arith -Wwrite-strings -Wcomments -g -O2 -MT Trie.o -MD -MP -MF > ".deps/Trie.Tpo" -c -o Trie.o Trie.cc; then mv -f ".deps/Trie.Tpo" > ".deps/Trie.Po"; else rm -f ".deps/Trie.Tpo"; exit 1; fi > if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Werror -Wall > -Wpointer-arith -Wwrite-strings -Wcomments -g -O2 -MT TrieNode.o -MD -MP > -MF ".deps/TrieNode.Tpo" -c -o TrieNode.o TrieNode.cc; then mv -f > ".deps/TrieNode.Tpo" ".deps/TrieNode.Po"; else rm -f > ".deps/TrieNode.Tpo"; exit 1; fi > rm -f libTrie.a > ar cru libTrie.a Trie.o TrieNode.o > ranlib libTrie.a > Making all in test > if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include > -Werror -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes > -Wmissing-declarations -Wcomments -D_REENTRANT -Wall -g -O2 -MT > dlmalloc.o -MD -MP -MF ".deps/dlmalloc.Tpo" -c -o dlmalloc.o > dlmalloc.c; then mv -f ".deps/dlmalloc.Tpo" ".deps/dlmalloc.Po"; else > rm -f ".deps/dlmalloc.Tpo"; exit 1; fi > rm -f libdlmalloc.a > /usr/bin/ar cru libdlmalloc.a dlmalloc.o > ranlib libdlmalloc.a > if g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include > -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -D_REENTRANT > -g -O2 -MT MemPool.o -MD -MP -MF ".deps/MemPool.Tpo" -c -o MemPool.o > MemPool.cc; then mv -f ".deps/MemPool.Tpo" ".deps/MemPool.Po"; else rm > -f ".deps/MemPool.Tpo"; exit 1; fi > MemPool.cc: In constructor `MemPools::MemPools()': > MemPool.cc:365: error: `mallopt' undeclared (first use this function) > MemPool.cc:365: error: (Each undeclared identifier is reported only once > for each function it appears in.) > *** Error code 1 > Stop in /data/source/squid-3.0.PRE6/lib. Please post the output of awk '/checking.for.mallopt/,/result:/' config.log and perhaps fgrep mallopt /usr/include/*.h In other words, let's see whether Squid found mallopt during ./configure run and where mallopt is actually declared in your system headers. > the OS is 6.1-RELEASE-p15 with 1 Gigs of ram What is the name of your OS? FreeBSD? > and the squid configure option is: > > ./configure --prefix=/usr/local/squid --enable-dependency-tracking > --enable-carp '--enable-storeio=coss diskd null ufs' > '--enable-removal-policies=heap lru' --enable-delay-pools > --enable-useragent-log --enable-referer-log --enable-kill-parent-hack > --enable-htcp --enable-cache-digests --enable-poll > --disable-http-violations --enable-ipf-transparent > --enable-internal-dns --enable-truncate --enable-underscores > '--enable-auth=basic digest' '--enable-basic-auth-helpers=NCSA PAM' > --enable-digest-auth-helpers=password > '--enable-external-acl-helpers=ip_user unix_group' --enable-stacktraces > --enable-x-accelerator-vary --enable-dlmalloc --enable-snmp --enable-ssl > --enable-icap-support --with-pthreads AFAIK, there is no --enable-icap-support option. There is --enable-icap-client HTH, Alex.