Subject: Using pkgsrc's OpenSSL to compile squid
To: None <netbsd-help@netbsd.org>
From: Sam Carleton <sam@linux-info.net>
List: netbsd-help
Date: 12/06/2002 11:22:58
folks,
I am trying to compile squid from the source. I am NOT using the pkgsrc tool
for this package. I did use the pkgsrc tool for OpenSSL, though. Now I am
trying to figure out how to compile squid with ssl enabled.
I used this to configure squid:
./configure --enable-ssl --with-openssl=/usr/pkg
Then I am using this little script to run make:
CPPFLAGS="-I/usr/local/include -I/usr/pkg/include -I/usr/pkg/include/openssl"
LDFLAGS="-L/usr/local/lib -L/usr/pkg/lib"
export CPPFLAGS
export LDFLAGS
make
The error I am getting is:
source='rfc2617.c' object='rfc2617.o' libtool=no depfile='.deps/rfc2617.Po' tmpdepfile='.deps/rfc2617.TPo' depmode=gcc /bin/sh ../cfgaux/depcomp gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I/usr/pkg/include -g -O2 -Wall -c `test -f rfc2617.c || echo './'`rfc2617.c
In file included from rfc2617.c:52:
../include/md5.h:18: #error Cannot find OpenSSL headers
Being a C/C++ windows programmer, I looked into the rfc2617.c file and
found simply:
#include "md5.h"
It appeared that my -I/usr/pkg/include/openssl was not getting picked up
from the command line. I hacked the Makefile in the lib/ directory, but
that didn't do any good either.
Can someone enlighten me as to how to use the OpenSSL that I installed via
the pkgsrc?
Sam