Re: [squid-users] Build Squid 3.3.1 on Solaris 10

From: Markus Sonnenberg <lassmichinruhe_at_rz-amper.de>
Date: Wed, 27 Feb 2013 22:32:00 +0100

On 2/27/2013 5:04 PM, C. Pelissier wrote:
>
> Le mer. 27/02/2013 à 16:21, Markus Sonnenberg a écrit :
>> Hi All,
>>
>> i'm trying to build the latest squid on solaris 10 and i'm facing the
>> following problem.
>>
>> <snip>
>> ismine/Download/squid-3.3.1# gmake
>> Making all in compat
>> gmake[1]: Entering directory `/Download/squid-3.3.1/compat'
>> /usr/sfw/bin/g++ -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 -I/opt/csw/include -I/usr/local/include
>> -I/usr/include/gssapi -I/usr/include/kerberosv5 -Wall -Wpointer-arith
>> -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -pthreads
>> -I/usr/include -I/opt/csw/include -I/usr/local/include -MT assert.o -MD
>> -MP -MF .deps/assert.Tpo -c -o assert.o assert.cc
>> In file included from ../compat/compat_shared.h:202,
>> from ../compat/compat.h:80,
>> from ../include/squid.h:66,
>> from assert.cc:32:
>> /usr/include/kerberosv5/com_err.h:20: warning: ignoring #pragma ident
>> gmake[1]: *** [assert.o] Error 1
>> gmake[1]: Leaving directory `/Download/squid-3.3.1/compat'
>> gmake: *** [all-recursive] Error 1
>> </snip>
>
>
> This is a known problem since 3.2 release. Inside squid src directory
> just do :
>
> cd compat
> mv xstrto.h xstrto.h.ref
> sed -e '1i\
> #if defined(__cplusplus)' -e '$a\
> #endif' xstrto.h.ref> xstrto.h
> cd ..
>
> Add to xstrto.h
>
> #if defined(__cplusplus) at the top
> and
> #endif at the bottom
>
> It would be nice to integrate this patch to future squid releases ...
> Thank's

unfortunatly that didn't do the trick. i'm getting now the following.

<snip>
ismine/Download/squid-3.3.1# gmake
Making all in compat
gmake[1]: Entering directory `/Download/squid-3.3.1/compat'
/usr/sfw/bin/g++ -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 -I/opt/csw/include -I/usr/local/include
-I/usr/include/gssapi -I/usr/include/kerberosv5 -Wall -Wpointer-arith
-Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -pthreads
-I/usr/include -I/opt/csw/include -I/usr/local/include -MT assert.o -MD
-MP -MF .deps/assert.Tpo -c -o assert.o assert.cc
In file included from ../compat/compat_shared.h:202,
                  from ../compat/compat.h:80,
                  from ../include/squid.h:66,
                  from assert.cc:32:
/usr/include/kerberosv5/com_err.h:20: warning: ignoring #pragma ident
In file included from ../compat/compat_shared.h:213,
                  from ../compat/compat.h:80,
                  from ../include/squid.h:66,
                  from assert.cc:32:
../compat/xstrto.h:1: error: expected unqualified-id before "if"
../compat/xstrto.h:1: error: expected `,' or `;' before "if"
In file included from ../compat/compat.h:80,
                  from ../include/squid.h:66,
                  from assert.cc:32:
../compat/compat_shared.h:241: error: expected constructor, destructor,
or type conversion before "const"
../compat/compat_shared.h:241: error: expected `,' or `;' before "const"
gmake[1]: *** [assert.o] Error 1
gmake[1]: Leaving directory `/Download/squid-3.3.1/compat'
gmake: *** [all-recursive] Error 1
</snip>

regards
markus

ct,

-- 
Das Abspringen einer Begrenzungsmauer dient nicht dem direkten 
Zurücklegen des Arbeitsweges.
http://www.rz-amper.de
Received on Wed Feb 27 2013 - 21:32:43 MST

This archive was generated by hypermail 2.2.0 : Thu Feb 28 2013 - 12:00:04 MST