[squid-users] error compiling squid-3.1.0.2 on ubuntu 8.10

From: Mario Remy Almeida <malmeida_at_isaaviation.ae>
Date: Tue, 25 Nov 2008 16:58:21 +0400

Hi All,

tried to compile squid squid-3.1.0.2 on ubuntu 8.10

with the following options
./configure \
  --prefix=/usr \
  --localstatedir=/var \
  --libexecdir=${prefix}/lib/squid \
  --srcdir=. \
  --datadir=${prefix}/share/squid \
  --sysconfdir=/etc/squid \
  --with-default-user=prox \
  --with-logdir=/var/log \
  --enable-arp-acl

below are all the errors found in config.log file

conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
conftest.cpp:22:28: error: ac_nonexistent.h: No such file or directory

./configure: line 6626: --version: command not found
configure:6628: $? = 127
configure:6635: -v >&5
./configure: line 6636: -v: command not found
configure:6638: $? = 127
configure:6645: -V >&5
./configure: line 6646: -V: command not found
configure:6648: $? = 127
configure:6656: checking whether we are using the GNU Fortran 77
compiler
configure:6675: -c conftest.F >&5
./configure: line 6676: -c: command not found

/home/remy/rnd/squid-3.1.0.2/conftest.c:56: undefined reference to
`shl_load'
/home/remy/rnd/squid-3.1.0.2/conftest.c:56: undefined reference to
`dlopen'

/home/remy/rnd/squid-3.1.0.2/configure:10955: warning: Using 'dlopen' in
statically linked applications requires at runtime the shared libraries
from the glibc version used for
linking
configure:10974: $? = 0
/lib/: cannot read file data: Is a directory

conftest.c:68:23: error: gnumalloc.h: No such file or directory
conftest.c:69:27: error: ip_fil_compat.h: No such file or directory
conftest.c:69:20: error: ip_nat.h: No such file or directory
conftest.c:102:17: error: ipl.h: No such file or directory
conftest.c:73:19: error: mount.h: No such file or directory
conftest.c:128:23: error: sys/bswap.h: No such file or directory
conftest.c:95:24: error: sys/endian.h: No such file or directory
conftest.c:132:21: error: sys/md5.h: No such file or directory
conftest.c:117:18: error: glib.h: No such file or directory
conftest.c:153:24: error: nss_common.h: No such file or directory
conftest.c:154:16: error: db.h: No such file or directory
conftest.c:154:20: error: db_185.h: No such file or directory
conftest.c:121:28: error: sys/capability.h: No such file or directory
conftest.c:157:44: error: linux/netfilter_ipv4/ip_tproxy.h: No such file
or directory
conftest.c:180:31: error: netinet/ip_compat.h: No such file or directory
conftest.c:180:28: error: netinet/ip_fil.h: No such file or directory
conftest.c:181:28: error: netinet/ip_nat.h: No such file or directory
conftest.c:181:25: error: netinet/ipl.h: No such file or directory
conftest.c:181:23: error: net/pfvar.h: No such file or directory
conftest.c:163:27: error: libxml/parser.h: No such file or directory

executed make and got this error

de -I../lib/libTrie/include -I../lib -I../lib -Werror -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -DDEFAULT_SQUID_CONFIG_DIR=
\"/etc/squid\" -DDEFAULT_SQUID_DATA_DIR=\"/share/squid\" -g -O2 -MT
ICAP/AsyncJob.lo -MD -MP -MF "$depbase.Tpo" -c -o ICAP/AsyncJob.lo
ICAP/AsyncJob.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo";
exit 1; fi
mkdir ICAP/.libs
 g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\" -I.
-I. -I../include -I. -I. -I../include -I../include
-I../lib/libTrie/include -I../lib -I../lib -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments -DDEFAULT_SQUID_CONFIG_DIR=\"/etc/squid\"
-DDEFAULT_SQUID_DATA_DIR=\"/share/squid\" -g -O2 -MT ICAP/AsyncJob.lo
-MD -MP -MF ICAP/.deps/AsyncJob.Tpo -c ICAP/AsyncJob.cc -fPIC -DPIC -o
ICAP/.libs/AsyncJob.o
cc1plus: warnings being treated as errors
ICAP/AsyncJob.cc: In member function ‘virtual const char*
AsyncJob::status() const’:
ICAP/AsyncJob.cc:158: error: format not a string literal and no format
arguments
make[1]: *** [ICAP/AsyncJob.lo] Error 1
make[1]: Leaving directory `/home/remy/rnd/squid-3.1.0.2/src'
make: *** [all-recursive] Error 1

can someone tell me what other packages are required to fix the above
errors

Regards,
Remy
Received on Tue Nov 25 2008 - 12:58:39 MST

This archive was generated by hypermail 2.2.0 : Thu Nov 27 2008 - 12:00:03 MST