[squid-users] Compiling squid 3.3.2 under Solaris.

From: Jose-Marcio Martins <Jose-Marcio.Martins_at_mines-paristech.fr>
Date: Sat, 09 Mar 2013 19:19:47 +0100

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

-- 
  Envoyé de ma machine à écrire.
  ---------------------------------------------------------------
   Spam : Classement statistique de messages électroniques -
          Une approche pragmatique
   Chez Amazon.fr : http://amzn.to/LEscRu ou http://bit.ly/SpamJM
  ---------------------------------------------------------------
  Jose Marcio MARTINS DA CRUZ            http://www.j-chkmail.org
Received on Sat Mar 09 2013 - 18:19:59 MST

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