Re: Compiling squid 3.2 with Sun CC

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 17 Mar 2012 00:30:10 +1300

On 17/03/2012 12:14 a.m., Jose-Marcio Martins da Cruz wrote:
>
> Hello,
>
> Bad news...
>
> The first attempt was to compile squid 3.2.0.16 with Sun CC, using the
> same options working with gcc 4.6.3.
>
> configure goes till the end but...
>
> launching gmake, the process stops with :
>
> source='GnuRegex.c' object='GnuRegex.o' libtool=no \
> DEPDIR=.deps depmode=none /bin/bash ../cfgaux/depcomp \
> cc -DHAVE_CONFIG_H -I.. -I../include -I../lib -I../src -I../include
> -I../libltdl -I/usr/local/ssl/include -errwarn=%all -errtags
> -D_REENTRANT -lpthread -Usparc -Uunix -Ui386 -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -g -c GnuRegex.c
> "../compat/xstrto.h", line 24: warning: old-style declaration or
> incorrect type for: bool (E_OLD_STYLE_DECL_OR_BAD_TYPE)
> "../compat/xstrto.h", line 24: syntax error before or at: xstrtoul
> "../compat/xstrto.h", line 25: warning: old-style declaration or
> incorrect type for: xstrtoul (E_OLD_STYLE_DECL_OR_BAD_TYPE)
> "../compat/xstrto.h", line 27: warning: old-style declaration or
> incorrect type for: bool (E_OLD_STYLE_DECL_OR_BAD_TYPE)
> "../compat/xstrto.h", line 27: syntax error before or at: xstrtoui
> "../compat/xstrto.h", line 28: warning: old-style declaration or
> incorrect type for: xstrtoui (E_OLD_STYLE_DECL_OR_BAD_TYPE)
> cc: acomp failed for GnuRegex.c

>
> Sun CC is very pesky and I'm afraid it will be a hard work to get this
> working with Sun CC.

We had someone get it working beginning of last year, so hopefully it
won't be too hard to catchup.

These are only needed in C++ code. So the whole xstrto.h file contents
can be wrapped in

#if defined(__cplusplus)
...
#endif

Amos
Received on Fri Mar 16 2012 - 11:30:18 MDT

This archive was generated by hypermail 2.2.0 : Fri Mar 16 2012 - 12:00:12 MDT