Re: [squid-users] Solaris/OpenSSL/MD5 Issues

From: Amos Jeffries <squid3@dont-contact.us>
Date: Fri, 9 Nov 2007 14:20:49 +1300 (NZDT)

>
> Greetings,
>
> Can't reply directly to the squid3@.... address from here. One of
> us is blacklisted ( probably my end at excite.com )
>
> Anyway... it's a small header. I think the identification section
> in the header comment provides license enough to include it in the
> body of a plain text email message. If not, I guess I'm going to
> jail.....
>
> $> cat /usr/include/sys/md5.h
>

Thank you. (move to squid-dev as its a coding problem now)

With that header, I now have a patch that should get you past the MD5
compile error.

It's here:
   http://squid.treenet.co.nz/MD5-solaris10.patch
and needs a bootstrap after applying.

Amos

>
> --- On Wed 11/07, Amos Jeffries < squid3@treenet.co.nz > wrote:
> From: Amos Jeffries [mailto: squid3@treenet.co.nz]
> To: radio-ad5gb@excite.com
> Cc: rousskov@measurement-factory.com, squid-users@squid-cache.org
> Date: Thu, 8 Nov 2007 16:53:45 +1300 (NZDT)
> Subject: Re: [squid-users] Solaris/OpenSSL/MD5 Issues
>
>>> Greetings,>> First of all please note that I was using the SunStudio-12
>>> compiler> and not GCC for this. I'm sorry if I was not clear on that
>>> point.>> If I use GCC however I do not get any complaint about the
>>> operator> overloading. It ends up like this.>> g++ -DHAVE_CONFIG_H>
>>> -DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\" -I. -I.>
>>> -I../include -I. -I. -I../include -I../include
>>> -I../lib/libTrie/include> -I/usr/include/libxml2 -I/usr/local/include
>>> -Werror -Wall -Wpointer-arith> -Wwrite-strings -Wcomments -D_REENTRANT
>>> -pthreads -DSOLARIS2=11 -g -O2 -MT> IPInterception.lo -MD -MP -MF
>>> .deps/IPInterception.Tpo -c> IPInterception.cc -o IPInterception.o> In
>>> file included from /usr/include/inet/ip_stack.h:37,>
>>> from /usr/include/inet/ip.h:50,> from
>>> /usr/include/netinet/ip_compat.h:189,> from
>>> IPInterception.cc:59:> /usr/include/sys/md5.h:62: error: conflicting
>>> declaration 'typedef struct> MD5_CTX MD5_CTX'>
> ../include/md5.h:59: error: 'MD5_CTX' has a previous declaration as>
> `typedef struct MD5Context MD5_CTX'> /usr/include/sys/md5.h:62: error:
> declaration of `typedef struct MD5_CTX> MD5_CTX'This is a separate issue.
> In the absence of --enable-ssl config optionsquid provides a simple
> implementation of MD5. It appears that your OSprovides one too.I think I
> can fix this but will need to see a copy of your/usr/include/sys/md5.h
> that is clashing with the squid one.ThanksAmos
>
> _______________________________________________
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
>
>
>
Received on Thu Nov 08 2007 - 18:20:53 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:05 MST