Hi,
Squid 3.2.10 failed to compile under Solaris 10
Error : src/ip/Intercept.cc does not find include file src/tools.h
../src -I../../include -I../../libltdl -I/usr/sfw/include -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -pipe -D_REENTRANT -pthreads
-Usparc -Uunix -Ui386 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2
-MT Intercept.lo -MD -MP -MF .deps/Intercept.Tpo -c Intercept.cc -fPIC
-DPIC -o .libs/Intercept.o
Intercept.cc:37:23: src/tools.h: No such file or directory
Configure options are :
CFLAGS=-std=c99 ./configure --prefix=$PREFIX
--disable-strict-error-checking --localstatedir=/var/squid
--with-pthreads --enable-default-err-language=French
--enable-err-languages="French"
--with-build-environment=POSIX_V6_ILP32_OFFBIG --enable-auth-basic="LDAP
NCSA" --enable-digest-auth-helpers=password
--enable-external-acl-helpers="ldap_group ip_user" --enable-eui
--enable-ssl --with-openssl=/usr/sfw --with-large-files
LDFLAGS=-R/usr/sfw/lib
Solution :
$ cd src/ip
$ ls
Address.cc Intercept.h Qos.cci tools.cc
Address.h Intercept.lo QosConfig.cc tools.h
Address.lo Intercept.o QosConfig.h tools.lo
Address.o libip.la QosConfig.lo tools.o
forward.h Makefile QosConfig.o
Intercept.cc Makefile.am testAddress.cc
Intercept.cc.ref Makefile.in testAddress.h
With the following diff applied compilation is successfull
diff Intercept.cc Intercept.cc.ref
37c37
< #include "ip/tools.h" <<< OK
--- > #include "src/tools.h" Strange : no such change is needed to compile squid 3.3.4 with the same configure options (may be default configure options are different between 3.2.10 and 3.3.4 ?)Received on Mon Apr 29 2013 - 11:41:04 MDT
This archive was generated by hypermail 2.2.0 : Mon Apr 29 2013 - 12:00:06 MDT