[squid-users] some question about compiling squid with Cygwin
Hello, everybody! Recently i need run squid 3.x(x >= 1) on windows, and i found related wiki from this url: http://wiki.squid-cache.org/KnowledgeBase/Windows From this i know there are two methods of running squid on windows. 1. Compiling with Cygwin 2. Compiling with MinGW and squid series 3 has major build issues on all Windows compiler systems. And there is no solution of the issues about compiling with MinGw. but then i readed that there have been unconfirmed reports from some users of building up to squid-3.3 successfully and producing a usable executable. Cygwin project provide version 3.3.3 packages. I was excited. I tried it immediately, but i failed when i make it. I had sucessfully compiled suqid-2.7 in the same environmnent. so, are there people of compiling squid 3.3.3 with Cygwin successfully. and can give me some help? lionx...@gmail.com ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
[squid-users] some question about compiling squid with Cygwin
Thank you all. I have compiled squid 3.3.3 successfully followed what you said. Firstly,I grab squid 3.3.3 from Cygwin. https://onedrive.live.com/?cid=d6d15dd582a99400&id=D6D15DD582A99400%211078&v=3&ithint=photo,jpg&authkey=!AJIKkMnxNhr_KzY Secondly,I use cygport to compile it. https://onedrive.live.com/?cid=d6d15dd582a99400&id=D6D15DD582A99400%211079&v=3&ithint=photo,jpg&authkey=!AEKCGBF1lDigTUM Next, i will do my best to understand it, and then try to add eCap to squid, recompile squid 3.3.3 with --enable-ecap option. That my ultimate aim. lionx...@gmail.com From: Mirza Dedic Date: 2014-10-15 00:01 To: squid-users@lists.squid-cache.org Subject: Re: [squid-users] some question about compiling squid with Cygwin You should be able to grab SQUID 3.3.3 from Cygwin and compile it there without issues. When working within cygwin get the "cygport" program as there is a specific squid.cygport install file that extracts the squid source, applies cygwin specific patches and compiles it for you. If you are running this on a Win2003 box (x86) and no ipv6, you'll need a small patch that fixes the built in ACL that causes the executable to crash (https://bugs.freebsd.org/bugzilla/attachment.cgi?id=132625&action=diff). I've been testing this the last few days to replace our outdated SQUID 2.7 on Windows and it looks promising so far... got it in PROD at a small site with about 20 people and its running fine. > Date: Tue, 14 Oct 2014 20:55:51 +1300 > From: squ...@treenet.co.nz > To: squid-users@lists.squid-cache.org > Subject: Re: [squid-users] some question about compiling squid with Cygwin > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 14/10/2014 7:17 p.m., lionx...@gmail.com wrote: > > Hello, everybody! > > > > Recently i need run squid 3.x(x >= 1) on windows, and i found > > related wiki from this url: > > > > http://wiki.squid-cache.org/KnowledgeBase/Windows > > > > From this i know there are two methods of running squid on > > windows. 1. Compiling with Cygwin 2. Compiling with MinGW and squid > > series 3 has major build issues on all Windows compiler systems. > > And there is no solution of the issues about compiling with MinGw. > > > > but then i readed that there have been unconfirmed reports from > > some users of building up to squid-3.3 successfully and producing a > > usable executable. Cygwin project provide version 3.3.3 packages. > > > > I was excited. I tried it immediately, but i failed when i make it. > > I had sucessfully compiled suqid-2.7 in the same environmnent. > > > > so, are there people of compiling squid 3.3.3 with Cygwin > > successfully. and can give me some help? > > The download URLs referenced under > <http://wiki.squid-cache.org/KnowledgeBase/Windows#Pre-Built_Binary_Packages> > includes both binary and source packages which are being used to build. > > Please check if you are using that src package rather than the > upstream release tarball. There may be cygwin specific patches applied > to it. > > Also, if you need to build any features not included in the provided > binary package then you may consider the feature untested possibly > either not building or working. There may be some support from Cygwin > regarding those situations, but the upstream target for resuming > Windows support is 3.5 series. > > Amos > > -BEGIN PGP SIGNATURE- > Version: GnuPG v2.0.22 (MingW32) > > iQEcBAEBAgAGBQJUPNcGAAoJELJo5wb/XPRj75kIAOSp5KgTJVLNjiVqzQnwBKGP > /w8thp52qhpLwoiTQQ8vouyuuElbwMihJ6SWH51xOiCFyCtG5n1iTenEb26xcCGf > g49UaeehlKihnElkLmFUJmDsnHHD+tkjr6gfg5pAKwtVzMdU30bmpF2ga7TnBwSe > KZvGcWSfOD6xCEysuYMokgRPYmWcZd4ySX+r32lrWW+c28Tyz1KTJlcuvpq8TAzN > twyjubjLCRSh7s91eFnhf0/woY7dn2dr0jnflA3ZPPcIqgOqw4Y7wnA7GTVFLviC > JnA8qVT5k4VK4xurUoYyOMfKmVIh3W+Q4M8gfDyjjcwr89d/xFf0C2pjTMEkcsA= > =QROG > -END PGP SIGNATURE- > ___ > squid-users mailing list > squid-users@lists.squid-cache.org > http://lists.squid-cache.org/listinfo/squid-users ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
[squid-users] question on compile squid 3.3.3 with --enable-ecap option on cygwin
Hi. A few days ago I compiled squid-3.3.3 successfully on cygwin , then I also compiled ecap-0.2.0 successfully on cygwin because I want compiled squid-3.3.3 with --enable-ecap option on cygwin. Firstly, I edit squid.cygport file to add --enable-ecap option. https://onedrive.live.com/redir?resid=D6D15DD582A99400!1095&authkey=!AJmIUOonXS28gW8&v=3&ithint=photo%2cjpg Secondly, I recompiled squid-3.3.3 by cygport. But, I get some errors when I do this step。 Here is the error messages. https://onedrive.live.com/redir?resid=D6D15DD582A99400!1096&authkey=!AFGZHC7hElpvdUc&v=3&ithint=photo%2cjpg I think that the reson of this error is the link command is incorrect. Here is the link command on cygwin and the link command on Kail linux. https://onedrive.live.com/redir?resid=D6D15DD582A99400!1100&authkey=!AP_S5cfD2iwzPrs&v=3&ithint=photo%2cpng Compare it, we can find it the link command on cygwin don't refer to libecap.a。I think this is the reason. But, I can‘t repair it now, becaust I don't know well g++ command, automake, autoconf. So, Are there anybody can help me? Thank you. HDM1991 lionx...@gmail.com ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] question on compile squid 3.3.3 with --enable-ecap option on cygwin
Thank you very much. I made it. I installed pkg-config,then I copy libecap.pc to /lib/pkgconfig dir. Next, I will test it. PS. You are right. It's not a good idea. I remember. lionx...@gmail.com From: Amos Jeffries Date: 2014-10-21 09:28 To: squid-users Subject: Re: [squid-users] question on compile squid 3.3.3 with --enable-ecap option on cygwin -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20/10/2014 7:59 p.m., lionxyes wrote: > > Hi. > > A few days ago I compiled squid-3.3.3 successfully on cygwin , then > I also compiled ecap-0.2.0 successfully on cygwin because I want > compiled squid-3.3.3 with --enable-ecap option on cygwin. > > Firstly, I edit squid.cygport file to add --enable-ecap option. > > > > Secondly, I recompiled squid-3.3.3 by cygport. But, I get some > errors when I do this step。 Here is the error messages. > > > > I think that the reson of this error is the link command is > incorrect. Here is the link command on cygwin and the link command > on Kail linux. > > > > Compare it, we can find it the link command on cygwin don't refer > to libecap.a。I think this is the reason. But, I can‘t repair it > now, becaust I don't know well g++ command, automake, autoconf. > > So, Are there anybody can help me? Thank you. ecap requires dynamic library loading. That is still one of the untested features of Squid-3 on Windows. some possibilities to try: 1) ensure that you have pkg-config tool installed. It is required for detecting where your libecap is located. 2) For cygwin you may need --with-included-ltdl. If not one of those then sorry I am not aware of the solution yet. PS. in future please send the traces as inline text. This is a public mailing list for the open-source community permanent record. Making its content depend on proprietary services offered at the whim of commercial entities is not a great idea. Amos -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.22 (MingW32) iQEcBAEBAgAGBQJURbafAAoJELJo5wb/XPRjrYIH/jNQtqwjSSa/wn7Gjj6zGxDi 8P8J22a5ggS1hkzaehQygEmIAEBtnMSekepScxk9j9T5BCXQk2Gqt8IPG7Spe4Mu bRAutwksNGv5NCjw4a7i96kmFNj515ngQwrt/YCrQh7fE8X16x590amc95IGBJib y8Te5qkKEu+N98UV2UwxUMHjFNGiyxomeQ+Q8k7TG04Xuc4ZoZmAN4AYhYutg367 S21GlqkskKmDesON/Fr3xOcaQD9AS4/b7P02oNSMh7Fc90U61Ve74m1my5TXc4C2 z9lLHMxniPwXxfDz+Mp7u8MmsJbkWJsaR/RN/C/R+7PctPjcPkXqrynikgMW/0g= =P14p -END PGP SIGNATURE- ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
[squid-users] Question about compiling and loading ecap-adapter module on windows
Hi. I‘m coming again. Now, I have compiled squid-3.3.3 with --enable-ecap option successfully on cygwin and run it successfully on windows. But, there are another question about compiling ecap-adapter module? I'm not sure that I should ask this question here, maybe I should ask eCAP developer. but I think that I should try it firstly. OK! Question 1: Does it need compile ecap-adapter module as .dll file if I want use ecap-adapter module on windows. Question 2: If it need, How to do it and do I shoud ask eCAP developer? Now, when I compile ecap-adapter module(ecap_adapter_sample-0.2.1.tar.gz) directly on cygwin. I just get .a .la file. Here is some output message when I make it. --output message--- Making all in src make[1]: Entering directory '/usr/src/ecap_adapter_sample-0.2.1/src' make all-am make[2]: Entering directory '/usr/src/ecap_adapter_sample-0.2.1/src' /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../src -I/usr/local/include -g -O3 -Wall -Wwrite-strings -Woverloaded-virtual -pipe -MT adapter_minimal.lo -MD -MP -MF .deps/adapter_minimal.Tpo -c -o adapter_minimal.lo adapter_minimal.cc libtool: compile: g++ -DHAVE_CONFIG_H -I../src -I/usr/local/include -g -O3 -Wall -Wwrite-strings -Woverloaded-virtual -pipe -MT adapter_minimal.lo -MD -MP -MF .deps/adapter_minimal.Tpo -c adapter_minimal.cc -DDLL_EXPORT -DPIC -o .libs/adapter_minimal.o libtool: compile: g++ -DHAVE_CONFIG_H -I../src -I/usr/local/include -g -O3 -Wall -Wwrite-strings -Woverloaded-virtual -pipe -MT adapter_minimal.lo -MD -MP -MF .deps/adapter_minimal.Tpo -c adapter_minimal.cc -o adapter_minimal.o >/dev/null 2>&1 mv -f .deps/adapter_minimal.Tpo .deps/adapter_minimal.Plo /bin/sh ../libtool --tag=CXX --mode=link g++ -g -O3 -Wall -Wwrite-strings -Woverloaded-virtual -pipe -module -avoid-version -L/usr/local/lib -lecap -o ecap_adapter_minimal.la -rpath /usr/local/lib adapter_minimal.lo *** Warning: This system can not link to static lib archive /usr/local/lib/libecap.la. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** But as you try to build a module library, libtool will still create *** a static module, that should work as long as the dlopening application *** is linked with the -dlopen flag to resolve symbols at runtime. libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries libtool: link: /usr/bin/ar cru .libs/ecap_adapter_minimal.a adapter_minimal.o libtool: link: ranlib .libs/ecap_adapter_minimal.a libtool: link: ( cd ".libs" && rm -f "ecap_adapter_minimal.la" && ln -s "../ecap_adapter_minimal.la" "ecap_adapter_minimal.la" ) --output message end------- Please give some help. Thank you. HDM1991 lionx...@gmail.com ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Question about compiling and loading ecap-adapter module on windows
There are some other message that may be helpful. I used to configure squid to load ecap-adapter module as following on windows. ---configure--- ecap_enable on adaptation_send_client_ip on loadable_modules /usr/local/lib/ecap_adapter_modifying.so ecap_service ecapModifier respmod_precache \ uri=ecap://e-cap.org/ecap/services/sample/modifying \ victim=the \ replacement=a adaptation_access ecapModifier allow all -configure end then, when I run squid, i surely failed. Here is the error messages. error message-- $ ./squid.exe -N -C -d1 2014/10/20 23:33:26| WARNING cache_mem is larger than total disk cache space! 2014/10/20 23:33:26| Starting Squid Cache version 3.3.3 for i686-pc-cygwin... 2014/10/20 23:33:26| Process ID 3200 2014/10/20 23:33:26| Process Roles: master worker 2014/10/20 23:33:26| With 3072 file descriptors available 2014/10/20 23:33:26| Initializing IP Cache... 2014/10/20 23:33:26| DNS Socket created at [::], FD 4 2014/10/20 23:33:26| DNS Socket created at 0.0.0.0, FD 5 2014/10/20 23:33:26| Adding nameserver 8.8.8.8 from squid.conf 2014/10/20 23:33:26| Logfile: opening log daemon:/var/log/squid/access.log 2014/10/20 23:33:26| Logfile Daemon: opening log /var/log/squid/access.log 2014/10/20 23:33:26| WARNING: no_suid: setuid(0): (22) Invalid argument 2014/10/20 23:33:26| WARNING: no_suid: setuid(0): (22) Invalid argument 2014/10/20 23:33:27| Unlinkd pipe opened on FD 11 2014/10/20 23:33:27| Store logging disabled 2014/10/20 23:33:27| Swap maxSize 102400 + 262144 KB, estimated 28041 objects 2014/10/20 23:33:27| Target number of buckets: 1402 2014/10/20 23:33:27| Using 8192 Store buckets 2014/10/20 23:33:27| Max Mem size: 262144 KB 2014/10/20 23:33:27| Max Swap size: 102400 KB 2014/10/20 23:33:27| Rebuilding storage in /var/cache/squid (dirty log) 2014/10/20 23:33:27| Using Least Load store dir selection 2014/10/20 23:33:27| Set Current Directory to /var/cache/squid 2014/10/20 23:33:27| Loaded Icons. 2014/10/20 23:33:27| HTCP Disabled. 2014/10/20 23:33:27| Loading Squid module from '/usr/local/lib/ecap_adapter_modifying.so' 2014/10/20 23:33:27| FATAL: dying from an unhandled exception: %1 is not a valid Win32 application. terminate called after throwing an instance of 'TextException' what(): %1 is not a valid Win32 application. Aborted (core dumped) error message end- So, I think that it is running natively on windows. HDM1991 lionx...@gmail.com From: Amos Jeffries Date: 2014-10-21 16:19 To: squid-users Subject: Re: [squid-users] Question about compiling and loading ecap-adapter module on windows -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 21/10/2014 8:52 p.m., lionx...@gmail.com wrote: > > Hi. I‘m coming again. > > Now, I have compiled squid-3.3.3 with --enable-ecap option > successfully on cygwin and run it successfully on windows. But, > there are another question about compiling ecap-adapter module? > > I'm not sure that I should ask this question here, maybe I should > ask eCAP developer. but I think that I should try it firstly. Probably. But I'll give this a try at answering... > > OK! Question 1: Does it need compile ecap-adapter module as .dll > file if I want use ecap-adapter module on windows. If it is running natively on Windows, the answer is yes. If it is running inside the cygwin environment (I suspect so) then the answer might be no. The cygwin people maybe could help there. > Question 2: If it need, How to do it and do I shoud ask eCAP > developer? Now, when I compile ecap-adapter > module(ecap_adapter_sample-0.2.1.tar.gz) directly on cygwin. I just > get .a .la file. Here is some output message when I make it. IF its necessary the .dll parts should be done by your compiler tools automatically. The error it produced gives a few obscure hints... > > --output > message--- > Making all in src make[1]: Entering directory > '/usr/src/ecap_adapter_sample-0.2.1/src' make all-am make[2]: > Entering directory '/usr/src/ecap_adapter_sample-0.2.1/src' /bin/sh > ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../src > -I/usr/local/include -g -O3 -Wall -Wwrite-strings > -Woverloaded-virtual -pipe -MT adapter_minimal.lo -MD -MP -MF > .deps/adapter_minimal.Tpo -c -o adapter_minimal.lo > adapter_minimal.cc libtool: compile: g++ -DHAVE_CONFIG_H -I../src > -I/usr/local/include -g -O3 -Wall -Wwrite-strings > -Woverloaded-virtual -pipe -MT adapter_minimal.lo -MD -MP -MF > .deps/adapter_minimal.Tpo -c adapter_minimal.cc -DDLL_EXPORT -DPIC > -o .libs/adapter_minimal.o libtool: compile: g++ -DHAV
[squid-users] Question about the reponse body content geted by ecap-adapter
Hi. As we know, the reponse body content may be encoded by web server, for example gzip. Before, I think the reponse body content geted by ecap-adapter from squid has been decoded by squid. But, Now I‘m not sure about this. So, What is the really answer ? lionx...@gmail.com ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users