Re: [squid-users] Compiling squid 3.3.2 under Solaris.

From: Jose-Marcio Martins <Jose-Marcio.Martins_at_mines-paristech.fr>
Date: Wed, 13 Mar 2013 19:00:57 +0100

Hello,

I had no feedback on this.

Squid is configured this way:

*************************
HELPERS="basic,digest,ntlm"
BASIC_HELPERS="DB,LDAP,PAM,getpwnam,SASL"
DIGEST_HELPERS="ldap,password"

./configure\
  --prefix=/var/squid \
  --enable-build-info \
  --disable-icmp \
  --enable-icap-client \
  --enable-snmp \
  --enable-delay-pools \
  --enable-cache-digests \
  --enable-kill-parent-hack \
  --enable-cachemgr-hostname=proxy.ensmp.fr \
  --enable-ssl \
  --with-openssl=/usr/local/ssl \
  --disable-ident-lookups \
  --enable-async-io \
  --enable-carp \
  --enable-xmalloc-statistics \
  --with-large-files \
  --with-build-environment=POSIX_V6_ILP32_OFFBIG \
  --disable-gnuregex \
  --without-krb5-config \
  --enable-auth \
  --enable-auth-basic=$BASIC_HELPERS \
  --enable-auth-digest=$DIGEST_HELPERS \
  --enable-storeio="ufs,aufs,diskd" \
  --disable-ipv6 \
  --enable-cpu-profiling \
  --with-filedescriptors=32768 \
  --disable-devpoll
*******************************

Regards,

Jose-Marcio Martins wrote:
>
> Hello,
>
> Trying to compile squid 3.3.2 under Solaris 10. Using gcc 4.7.1.
>
> depbase=`echo store_digest.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/var/squid/etc/squid.conf\"
> -DDEFAULT_SQUID_DATA_DIR=\"/var/squid/share\"
> -DDEFAULT_SQUID_CONFIG_DIR=\"/var/squid/etc\" -I.. -I../include
> -I../lib -I../src -I../include -I../libltdl -I../src -I../libltdl
> -I/usr/local/ssl/include -Wall -Wpointer-arith -Wwrite-strings
> -Wcomments -Werror -pipe -D_REENTRANT -pthreads -Usparc -Uunix -Ui386
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -std=c++0x -MT
> store_digest.o -MD -MP -MF $depbase.Tpo -c -o store_digest.o
> store_digest.cc &&\
> mv -f $depbase.Tpo $depbase.Po
> depbase=`echo store_dir.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/var/squid/etc/squid.conf\"
> -DDEFAULT_SQUID_DATA_DIR=\"/var/squid/share\"
> -DDEFAULT_SQUID_CONFIG_DIR=\"/var/squid/etc\" -I.. -I../include
> -I../lib -I../src -I../include -I../libltdl -I../src -I../libltdl
> -I/usr/local/ssl/include -Wall -Wpointer-arith -Wwrite-strings
> -Wcomments -Werror -pipe -D_REENTRANT -pthreads -Usparc -Uunix -Ui386
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -std=c++0x -MT
> store_dir.o -MD -MP -MF $depbase.Tpo -c -o store_dir.o store_dir.cc &&\
> mv -f $depbase.Tpo $depbase.Po
> store_dir.cc: In function 'int storeDirSelectSwapDirLeastLoad(const
> StoreEntry*)':
> store_dir.cc:251:22: error: 'INT_MAX' was not declared in this scope
> gmake[3]: *** [store_dir.o] Error 1
> gmake[3]: Leaving directory
> `/export/home/martins/sources/squid/squid-3.3.2/src'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory
> `/export/home/martins/sources/squid/squid-3.3.2/src'
> gmake[1]: *** [all] Error 2
> gmake[1]: Leaving directory
> `/export/home/martins/sources/squid/squid-3.3.2/src'
> gmake: *** [all-recursive] Error 1
>
>
> Adding a "#include <limits.h>" to src/store_dir.cc it compiles. Well,
> this is just a workaround and a hint on how to correct this in my
> installation. Surely not to add this line, this way to source code.
>
> I have the same problem with squid 3.3.1.
>
> Regards,
>
> José-Marcio
>

-- 
Received on Wed Mar 13 2013 - 18:01:03 MDT

This archive was generated by hypermail 2.2.0 : Thu Mar 14 2013 - 12:00:05 MDT