Search squid archive

Re: Cannot Compile squid3.2.0.10 under Solaris10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 22/08/11 13:49, Yuuichi Ikeda (SKLC) wrote:
Hi, I'm Yuuichi Ikeda from Japan User.
Can't compile Squid3.2.0.10., The person who knows the cause, please teach.

OS:Solaris 10 9/10 s10x_u9wos_14a X86
Mem:8GB
HDD:3TB
gcc:gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

configure:./configure

Build on Squid3.2.10 Solaris10 error occurred while compiling gnuRegex next,
and it was not possible to compile though the compilation failed at first
because of the Kerberos library.

When someone knowing the solution comes, could you teach?

# gmake
Making all in compat
gmake[1]: Entering directory `/work/squid-3.2.0.10/compat'
gcc -DHAVE_CONFIG_H  -I.. -I../include -I../lib -I../src -I../include  -I/usr/include/gssapi -I/usr/include/kerberosv5 -I../libltdl  -I/usr/include/gssapi -I/usr/include/kerberosv5 -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -pipe -D_REENTRANT -pthreads  -MT GnuRegex.o -MD -MP -MF .deps/GnuRegex.Tpo -c -o GnuRegex.o GnuRegex.c
In file included from ../compat/compat_shared.h:218,
                  from ../compat/compat.h:85,
                  from ../include/config.h:68,
                  from GnuRegex.c:35:
../compat/xstrto.h:24: error: syntax error before "xstrtoul"
../compat/xstrto.h:25: warning: type defaults to `int' in declaration of `xstrtoul'
../compat/xstrto.h:25: warning: data definition has no type or storage class
../compat/xstrto.h:27: error: syntax error before "xstrtoui"
../compat/xstrto.h:28: warning: type defaults to `int' in declaration of `xstrtoui'
../compat/xstrto.h:28: warning: data definition has no type or storage class
gmake[1]: *** [GnuRegex.o] Error 1
gmake[1]: Leaving directory `/work/squid-3.2.0.10/compat'
gmake: *** [all-recursive] Error 1


Squid-3 requires a compiler that supports at least C99 standards. Which for GCC means 4.x series, or defining "CFLAGS=-std=c99" as a ./configure argument.

I suggest using the 4.x GCC, since there are highly likely to be related issues with the GCC 3.4 C++ compiler as well.

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE9 or 3.1.14
  Beta testers wanted for 3.2.0.10


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux