On 2014-07-03 16:38, Kzjnet wrote:
Hi, I was trying to build squid with MinGW on Windows. I have followed
the instruction on http://wiki.squid-cache.org/SquidFaq/CompilingSquid
to build it. I used the library file of libcrypt from
http://sourceforge.net/projects/mingwrep/. The version of squid is
3.4.6.
Hi Kzjnet,
Unfortunately a lot of change has gone on in Squid-3 without Windows
support being updated to work with the new features. That is slowly
being fixed but the official releases of Squid-3 still do not build
without extensive patching.
My configure options are:
--prefix=c:/squid --disable-wccp --disable-wccpv2
--enable-win32-service --enable-default-hostsfile=none
When I run make, it prints following information:
Making all in NCSA make[3]: Entering directory
`/c/squid-3.4.6/helpers/basic_auth/NCSA' /bin/sh ../../../libtool
--tag=CXX --mode=link g++ -Wall -Wpointer-arith -Wwr ite-strings
-Wcomments -Wshadow -Werror -pipe -g -O2 -march=native -mthreads -g -o
basic_ncsa_auth.exe basic_ncsa_auth.o crypt_md5.o
../../../lib/libmisccontai ners.la ../../../lib/libmiscencoding.la
../../../compat/libcompat-squid.la -lc rypt -lws2_32 -lpsapi libtool:
link: g++ -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow
-We rror -pipe -g -O2 -march=native -mthreads -g -o
.libs/basic_ncsa_auth.exe basic_ ncsa_auth.o crypt_md5.o
../../../lib/.libs/libmisccontainers.a ../../../lib/.li
bs/libmiscencoding.a ../../../compat/.libs/libcompat-squid.a -lcrypt
-lws2_32 -l psapi -mthreads basic_ncsa_auth.o: In function `main':
c:\squid-3.4.6\helpers\basic_auth\NCSA/basic_ncsa_auth.cc:166:
undefined refere nce to `crypt(char*, char*)'
c:\squid-3.4.6\helpers\basic_auth\NCSA/basic_ncsa_auth.cc:162:
undefined refere nce to `crypt(char*, char*)'
c:\squid-3.4.6\helpers\basic_auth\NCSA/basic_ncsa_auth.cc:156:
undefined refere nce to `crypt(char*, char*)' collect2.exe: error: ld
returned 1 exit status make[3]: *** [basic_ncsa_auth.exe] Error 1
make[3]: Leaving directory `/c/squid-3.4.6/helpers/basic_auth/NCSA'
make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory
`/c/squid-3.4.6/helpers/basic_auth' make[1]: *** [all-recursive] Error
1 make[1]: Leaving directory `/c/squid-3.4.6/helpers' make: ***
[all-recursive] Error 1
Could any person help me to deal with this problem? Thanks.
For this issue you will need to build with --enable-auth-basic=... and a
list of the helpers which do not contain build errors in your system.
The best Windows support (outside 2.7 which works fully) is in 3.HEAD
version, but even so the build does not work yet. If you are really
interested in helping all patches are welcome, they just need to be on
that 3.HEAD version to avoid duplicate work.
Amos