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

From: Amos Jeffries <squid3@dont-contact.us>
Date: Sat, 10 Nov 2007 16:20:15 +1300

Randall DuCharme wrote:
> Greetings,
>
> Finally got some time again to get auto-tools working correctly,
> learn a little bit about using it, and work with the patch. First
> attempt after bootstrapping and configure (with 3.0.RC1 and GCC)
> left me with this:
> .
> .
> .
> if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I/usr/include/libxml2 -I/usr/local/include -Werror -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -D_REENTRANT -pthreads -DSOLARIS2=11 -m64 -march=opteron -mcpu=opteron -mtune=opteron -msse3 -m3dnow -mfpmath=sse -pthreads -MT rfc1123.o -MD -MP -MF ".deps/rfc1123.Tpo" -c -o rfc1123.o rfc1123.c; \
> then mv -f ".deps/rfc1123.Tpo" ".deps/rfc1123.Po"; else rm -f ".deps/rfc1123.Tpo"; exit 1; fi
> if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I/usr/include/libxml2 -I/usr/local/include -Werror -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -D_REENTRANT -pthreads -DSOLARIS2=11 -m64 -march=opteron -mcpu=opteron -mtune=opteron -msse3 -m3dnow -mfpmath=sse -pthreads -MT rfc1738.o -MD -MP -MF ".deps/rfc1738.Tpo" -c -o rfc1738.o rfc1738.c; \
> then mv -f ".deps/rfc1738.Tpo" ".deps/rfc1738.Po"; else rm -f ".deps/rfc1738.Tpo"; exit 1; fi
> if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I/usr/include/libxml2 -I/usr/local/include -Werror -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -D_REENTRANT -pthreads -DSOLARIS2=11 -m64 -march=opteron -mcpu=opteron -mtune=opteron -msse3 -m3dnow -mfpmath=sse -pthreads -MT rfc2617.o -MD -MP -MF ".deps/rfc2617.Tpo" -c -o rfc2617.o rfc2617.c; \
> then mv -f ".deps/rfc2617.Tpo" ".deps/rfc2617.Po"; else rm -f ".deps/rfc2617.Tpo"; exit 1; fi
> rfc2617.c: In function `DigestCalcHA1':
> rfc2617.c:119: warning: implicit declaration of function `MD5_Init'
> rfc2617.c:120: warning: implicit declaration of function `MD5_Update'
> rfc2617.c:125: warning: implicit declaration of function `MD5_Final'
> gmake[2]: *** [rfc2617.o] Error 1
> gmake[2]: Leaving directory `/export/home/randy/Download/squid-3.0.RC1/lib'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/export/home/randy/Download/squid-3.0.RC1/lib'
> gmake: *** [all-recursive] Error 1

Okay. Well thats a step further along than before.

Gah. Sorry my fault. copy-n-paste error :-P

In include/md5.h just after it says "#include <sys/md5.h>"
there are a bunch of compatability #defines.
Kill the function ones, leaving MD5_DIGEST_CHARS as-is.

>
> I'll start digging around a bit now that I have autotools and libtool
> working and if I find a solution, I'll post my findings. If you
> want me to try something else in the interim, just let me know.
>
> I'm not sure yet but I think there will be more problems if I try to
> use the --enable-ssl and --with-openssl configure flags. Attempts
> to use them before patching squid resulted in similar conflict
> messages but against the OpenSSL md5.h and not the Squid md5.h.

Ah, likely OpenSSL has the same problem squid does. Namely that your OS
bundles SSL/MD5 support internally now where it did not before.

What I a trying to do here is get squid to notice and use the OS
version. Assuming that the OS version works, that is.

Amos
Received on Fri Nov 09 2007 - 20:20:18 MST

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