Bulding Squid 3.5 for Win2k with SSL

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Bulding Squid 3.5 for Win2k with SSL

Reinhard Zumpf Dipl.-Ing.
Hi,

I am having trouble Bulding Squid 3.5 for Win2k with SSL according to:
https://docs.diladele.com/howtos/build_squid_windows/index.html

Do you know why configure terminates like this? I had to switch within
Cygwin frome home dir to usr/src dir as described in section Using
Cygwin
https://www.physionet.org/physiotools/cygwin/
to comply with the guide from Diladele initially. I wonder why enable
ssl is done in this guide without including any openssl for build?

synrzu@NTB-SYN-273 ~
$     --datadir=/usr/share/squid --libexecdir=/usr/lib/squid
--disable-strict-error-checking
-bash: --datadir=/usr/share/squid: No such file or directory

synrzu@NTB-SYN-273 ~
$     --with-logdir=/var/log/squid --with-swapdir=/var/cache/squid
-bash: --with-logdir=/var/log/squid: No such file or directory

synrzu@NTB-SYN-273 ~
$     --with-pidfile=/var/run/squid.pid --enable-ssl --enable-delay-pools
-bash: --with-pidfile=/var/run/squid.pid: No such file or directory

synrzu@NTB-SYN-273 ~
$     --enable-ssl-crtd --enable-icap-client --enable-esi --disable-eui
-bash: --enable-ssl-crtd: Kommando nicht gefunden.

synrzu@NTB-SYN-273 ~
$     --localstatedir=/var/run/squid --sharedstatedir=/var/run/squid
-bash: --localstatedir=/var/run/squid: No such file or directory

synrzu@NTB-SYN-273 ~
$     --datarootdir=/usr/share/squid
--enable-disk-io="AIO,Blocking,DiskThreads,IpcIo,Mmapped"
-bash: --datarootdir=/usr/share/squid: No such file or directory

synrzu@NTB-SYN-273 ~
$     --enable-auth-basic="DB,LDAP,NCSA,POP3,RADIUS,SASL,SMB,fake,getpwnam"
-bash: --enable-auth-basic=DB,LDAP,NCSA,POP3,RADIUS,SASL,SMB,fake,getpwnam:
Kommando nicht gefunden.

synrzu@NTB-SYN-273 ~
$     --enable-auth-ntlm='fake' --enable-auth-negotiate='kerberos,wrapper'
-bash: --enable-auth-ntlm=fake: Kommando nicht gefunden.

synrzu@NTB-SYN-273 ~
$     --enable-external-acl-helpers='LDAP_group,SQL_session,eDirectory_userip,file_userip,kerberos_ldap_group,session,time_quota,unix_group,wbinfo_group'
-bash: --enable-external-acl-helpers=LDAP_group,SQL_session,eDirectory_userip,file_userip,kerberos_ldap_group,session,time_quota,unix_group,wbinfo_group:
Kommando nicht gefunden.

synrzu@NTB-SYN-273 ~
$     --with-openssl --with-filedescriptors=65536
-bash: --with-openssl: Kommando nicht gefunden.

synrzu@NTB-SYN-273 ~
$     --enable-removal-policies="lru,heap"
-bash: --enable-removal-policies=lru,heap: Kommando nicht gefunden.

synrzu@NTB-SYN-273 ~
$

Regards

Reinhard
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Bulding Squid 3.5 for Win2k with SSL

Amos Jeffries
Administrator
On 9/02/19 10:37 pm, Reinhard Zumpf Dipl.-Ing. wrote:
> Hi,
>
> I am having trouble Bulding Squid 3.5 for Win2k with SSL according to:
> https://docs.diladele.com/howtos/build_squid_windows/index.html
>
> Do you know why configure terminates like this?


Looks like you copy-paste'd a command without accounting for line wrapping.

Notice the comment "(written as ONE line!)" directly above where you
copied the command from.


I had to switch within
> Cygwin frome home dir to usr/src dir as described in section Using
> Cygwin
> https://www.physionet.org/physiotools/cygwin/
> to comply with the guide from Diladele initially. I wonder why enable
> ssl is done in this guide without including any openssl for build?
>

Not sure what you are talking about there. OpenSSL module is mentioned
earlier in the Diladele document, and the configure option(s) to use it
are present.


Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Building Squid 3.5 for Win2k with SSL

Reinhard Zumpf Dipl.-Ing.
Hi,

thanks so much for helping out. I managed to get configure run through
now as described from Diladele.

But, make terminates like that:

...
mv -f $depbase.Tpo $depbase.Po
depbase=`echo SBuf.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\"
-DDEFAULT_SQUID_DATA_DIR=\"/usr/share/squid\"
-DDEFAULT_SQUID_CONFIG_DIR=\"/etc/squid\"   -I.. -I../include -I../lib
-I../src -I../include    -I../src   -I/usr/include/libxml2
-I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings
-Wcomments -Wshadow -Woverloaded-virtual -pipe -D_REENTRANT -g -O2
-march=native -MT SBuf.o -MD -MP -MF $depbase.Tpo -c -o SBuf.o SBuf.cc
&&\
mv -f $depbase.Tpo $depbase.Po
SBuf.cc: In Elementfunktion »SBuf::size_type SBuf::rfind(char,
SBuf::size_type) const«:
SBuf.cc:760:21: Fehler: »memrchr« wurde in diesem Gültigkeitsbereich
nicht definiert
     const void *i = memrchr(buf(), (int)c, (size_type)endPos);
                     ^~~~~~~
SBuf.cc:760:21: Anmerkung: empfohlene Alternative: »memchr«
     const void *i = memrchr(buf(), (int)c, (size_type)endPos);
                     ^~~~~~~
                     memchr
make[3]: *** [Makefile:7173: SBuf.o] Fehler 1
make[3]: Verzeichnis „/home/synrzu/squid-3.5.28/src“ wird verlassen
make[2]: *** [Makefile:7296: all-recursive] Fehler 1
make[2]: Verzeichnis „/home/synrzu/squid-3.5.28/src“ wird verlassen
make[1]: *** [Makefile:6157: all] Fehler 2
make[1]: Verzeichnis „/home/synrzu/squid-3.5.28/src“ wird verlassen
make: *** [Makefile:581: all-recursive] Fehler 1

It is the latest x86 cygwin with all packages mentioned by Diladele
and Squid 3.5.28 sources.

What can I do?

Regards,

Reinhard

Am Sa., 9. Feb. 2019 um 18:00 Uhr schrieb Amos Jeffries <[hidden email]>:

>
> On 9/02/19 10:37 pm, Reinhard Zumpf Dipl.-Ing. wrote:
> > Hi,
> >
> > I am having trouble Bulding Squid 3.5 for Win2k with SSL according to:
> > https://docs.diladele.com/howtos/build_squid_windows/index.html
> >
> > Do you know why configure terminates like this?
>
>
> Looks like you copy-paste'd a command without accounting for line wrapping.
>
> Notice the comment "(written as ONE line!)" directly above where you
> copied the command from.
>
>
> I had to switch within
> > Cygwin frome home dir to usr/src dir as described in section Using
> > Cygwin
> > https://www.physionet.org/physiotools/cygwin/
> > to comply with the guide from Diladele initially. I wonder why enable
> > ssl is done in this guide without including any openssl for build?
> >
>
> Not sure what you are talking about there. OpenSSL module is mentioned
> earlier in the Diladele document, and the configure option(s) to use it
> are present.
>
>
> Amos
> _______________________________________________
> squid-users mailing list
> [hidden email]
> http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Building Squid 3.5 for Win2k with SSL

Amos Jeffries
Administrator
On 10/02/19 9:56 pm, Reinhard Zumpf Dipl.-Ing. wrote:

> Hi,
>
> thanks so much for helping out. I managed to get configure run through
> now as described from Diladele.
>
> But, make terminates like that:
>
> ...
> mv -f $depbase.Tpo $depbase.Po
> depbase=`echo SBuf.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\"
> -DDEFAULT_SQUID_DATA_DIR=\"/usr/share/squid\"
> -DDEFAULT_SQUID_CONFIG_DIR=\"/etc/squid\"   -I.. -I../include -I../lib
> -I../src -I../include    -I../src   -I/usr/include/libxml2
> -I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings
> -Wcomments -Wshadow -Woverloaded-virtual -pipe -D_REENTRANT -g -O2
> -march=native -MT SBuf.o -MD -MP -MF $depbase.Tpo -c -o SBuf.o SBuf.cc
> &&\
> mv -f $depbase.Tpo $depbase.Po
> SBuf.cc: In Elementfunktion »SBuf::size_type SBuf::rfind(char,
> SBuf::size_type) const«:
> SBuf.cc:760:21: Fehler: »memrchr« wurde in diesem Gültigkeitsbereich
> nicht definiert
>      const void *i = memrchr(buf(), (int)c, (size_type)endPos);
>                      ^~~~~~~
> SBuf.cc:760:21: Anmerkung: empfohlene Alternative: »memchr«
>      const void *i = memrchr(buf(), (int)c, (size_type)endPos);
>                      ^~~~~~~
>                      memchr
> make[3]: *** [Makefile:7173: SBuf.o] Fehler 1
> make[3]: Verzeichnis „/home/synrzu/squid-3.5.28/src“ wird verlassen
> make[2]: *** [Makefile:7296: all-recursive] Fehler 1
> make[2]: Verzeichnis „/home/synrzu/squid-3.5.28/src“ wird verlassen
> make[1]: *** [Makefile:6157: all] Fehler 2
> make[1]: Verzeichnis „/home/synrzu/squid-3.5.28/src“ wird verlassen
> make: *** [Makefile:581: all-recursive] Fehler 1
>
> It is the latest x86 cygwin with all packages mentioned by Diladele
> and Squid 3.5.28 sources.
>
> What can I do?
>

I'm not familiar enough with Cygwin to be specific, sorry. You will need
to track down where the memrchr is defined and make sure that file gets
included properly by the compiler.

Rafael has not mentioned this failing with 3.5 before so I assume it is
something missing from the ./configure options, or perhapse some
extension to cygwin that needs installing.

You could try and ask Rafael / Diladele directly since it is their
document you are following here.

Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Building Squid 3.5 for Win2k with SSL

Rafael Akchurin
Hello Amos, Reinhard,

Interestingly enough this error does not popup when building Squid on 64-bit Cygwin.
Might be some 32-bit installation glitch?

Best regards,
Rafael Akchurin
Diladele B.V.



-----Original Message-----
From: squid-users <[hidden email]> On Behalf Of Amos Jeffries
Sent: Sunday, 10 February 2019 11:30
To: [hidden email]
Subject: Re: [squid-users] Building Squid 3.5 for Win2k with SSL

On 10/02/19 9:56 pm, Reinhard Zumpf Dipl.-Ing. wrote:

> Hi,
>
> thanks so much for helping out. I managed to get configure run through
> now as described from Diladele.
>
> But, make terminates like that:
>
> ...
> mv -f $depbase.Tpo $depbase.Po
> depbase=`echo SBuf.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\"
> -DDEFAULT_SQUID_DATA_DIR=\"/usr/share/squid\"
> -DDEFAULT_SQUID_CONFIG_DIR=\"/etc/squid\"   -I.. -I../include -I../lib
> -I../src -I../include    -I../src   -I/usr/include/libxml2
> -I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings
> -Wcomments -Wshadow -Woverloaded-virtual -pipe -D_REENTRANT -g -O2
> -march=native -MT SBuf.o -MD -MP -MF $depbase.Tpo -c -o SBuf.o SBuf.cc
> &&\ mv -f $depbase.Tpo $depbase.Po
> SBuf.cc: In Elementfunktion »SBuf::size_type SBuf::rfind(char,
> SBuf::size_type) const«:
> SBuf.cc:760:21: Fehler: »memrchr« wurde in diesem Gültigkeitsbereich
> nicht definiert
>      const void *i = memrchr(buf(), (int)c, (size_type)endPos);
>                      ^~~~~~~
> SBuf.cc:760:21: Anmerkung: empfohlene Alternative: »memchr«
>      const void *i = memrchr(buf(), (int)c, (size_type)endPos);
>                      ^~~~~~~
>                      memchr
> make[3]: *** [Makefile:7173: SBuf.o] Fehler 1
> make[3]: Verzeichnis „/home/synrzu/squid-3.5.28/src“ wird verlassen
> make[2]: *** [Makefile:7296: all-recursive] Fehler 1
> make[2]: Verzeichnis „/home/synrzu/squid-3.5.28/src“ wird verlassen
> make[1]: *** [Makefile:6157: all] Fehler 2
> make[1]: Verzeichnis „/home/synrzu/squid-3.5.28/src“ wird verlassen
> make: *** [Makefile:581: all-recursive] Fehler 1
>
> It is the latest x86 cygwin with all packages mentioned by Diladele
> and Squid 3.5.28 sources.
>
> What can I do?
>

I'm not familiar enough with Cygwin to be specific, sorry. You will need to track down where the memrchr is defined and make sure that file gets included properly by the compiler.

Rafael has not mentioned this failing with 3.5 before so I assume it is something missing from the ./configure options, or perhapse some extension to cygwin that needs installing.

You could try and ask Rafael / Diladele directly since it is their document you are following here.

Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Building Squid 3.5 for Win2k with SSL

Reinhard Zumpf Dipl.-Ing.
Dear Gentlemen,

was anyone successful in building Squid 3.5 for Win2k with SSL (>
OpenSSL 1.0.1 / TLS 1.2) so far?

If not, I will not be able to do it without an tremendous amount of
support, which is a great pity, if Squid can only be used on x64 while
the field of application spans over mitigating TLS compatibility
problems for older x86 servers (eg. php4 with cURL w/o TLS1.2, which
is needed for several APIs), too.

Best Regards

Reinhard


Am So., 10. Feb. 2019 um 11:53 Uhr schrieb Rafael Akchurin
<[hidden email]>:

>
> Hello Amos, Reinhard,
>
> Interestingly enough this error does not popup when building Squid on 64-bit Cygwin.
> Might be some 32-bit installation glitch?
>
> Best regards,
> Rafael Akchurin
> Diladele B.V.
>
>
>
> -----Original Message-----
> From: squid-users <[hidden email]> On Behalf Of Amos Jeffries
> Sent: Sunday, 10 February 2019 11:30
> To: [hidden email]
> Subject: Re: [squid-users] Building Squid 3.5 for Win2k with SSL
>
> On 10/02/19 9:56 pm, Reinhard Zumpf Dipl.-Ing. wrote:
> > Hi,
> >
> > thanks so much for helping out. I managed to get configure run through
> > now as described from Diladele.
> >
> > But, make terminates like that:
> >
> > ...
> > mv -f $depbase.Tpo $depbase.Po
> > depbase=`echo SBuf.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> > g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\"
> > -DDEFAULT_SQUID_DATA_DIR=\"/usr/share/squid\"
> > -DDEFAULT_SQUID_CONFIG_DIR=\"/etc/squid\"   -I.. -I../include -I../lib
> > -I../src -I../include    -I../src   -I/usr/include/libxml2
> > -I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings
> > -Wcomments -Wshadow -Woverloaded-virtual -pipe -D_REENTRANT -g -O2
> > -march=native -MT SBuf.o -MD -MP -MF $depbase.Tpo -c -o SBuf.o SBuf.cc
> > &&\ mv -f $depbase.Tpo $depbase.Po
> > SBuf.cc: In Elementfunktion »SBuf::size_type SBuf::rfind(char,
> > SBuf::size_type) const«:
> > SBuf.cc:760:21: Fehler: »memrchr« wurde in diesem Gültigkeitsbereich
> > nicht definiert
> >      const void *i = memrchr(buf(), (int)c, (size_type)endPos);
> >                      ^~~~~~~
> > SBuf.cc:760:21: Anmerkung: empfohlene Alternative: »memchr«
> >      const void *i = memrchr(buf(), (int)c, (size_type)endPos);
> >                      ^~~~~~~
> >                      memchr
> > make[3]: *** [Makefile:7173: SBuf.o] Fehler 1
> > make[3]: Verzeichnis „/home/synrzu/squid-3.5.28/src“ wird verlassen
> > make[2]: *** [Makefile:7296: all-recursive] Fehler 1
> > make[2]: Verzeichnis „/home/synrzu/squid-3.5.28/src“ wird verlassen
> > make[1]: *** [Makefile:6157: all] Fehler 2
> > make[1]: Verzeichnis „/home/synrzu/squid-3.5.28/src“ wird verlassen
> > make: *** [Makefile:581: all-recursive] Fehler 1
> >
> > It is the latest x86 cygwin with all packages mentioned by Diladele
> > and Squid 3.5.28 sources.
> >
> > What can I do?
> >
>
> I'm not familiar enough with Cygwin to be specific, sorry. You will need to track down where the memrchr is defined and make sure that file gets included properly by the compiler.
>
> Rafael has not mentioned this failing with 3.5 before so I assume it is something missing from the ./configure options, or perhapse some extension to cygwin that needs installing.
>
> You could try and ask Rafael / Diladele directly since it is their document you are following here.
>
> Amos
> _______________________________________________
> squid-users mailing list
> [hidden email]
> http://lists.squid-cache.org/listinfo/squid-users
> _______________________________________________
> squid-users mailing list
> [hidden email]
> http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Building Squid 3.5 for Win2k with SSL

Amos Jeffries
Administrator
On 11/02/19 1:02 am, Reinhard Zumpf Dipl.-Ing. wrote:
> Dear Gentlemen,
>
> was anyone successful in building Squid 3.5 for Win2k with SSL (>
> OpenSSL 1.0.1 / TLS 1.2) so far?
>

The oldest Windows I have had Squid-3.x building was Win7. But my work
was on the native builds with MinGW-w64. The Cygwin environment is a
different beast entirely - much more POSIX and Linux.



> If not, I will not be able to do it without an tremendous amount of
> support, which is a great pity, if Squid can only be used on x64 while
> the field of application spans over mitigating TLS compatibility
> problems for older x86 servers (eg. php4 with cURL w/o TLS1.2, which
> is needed for several APIs), too.
>

Squid can be run on any machine and still do that job. You do not have
to limit yourself to old hardware or Win2k OS to achieve.

Just have routing and NAT systems enforcing clients traffic goes through
the proxy if you are the ISP for them. Or advertise the proxy IP address
instead of the old server address if you are running the service. Or
both if you have a mixed environment.

Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users