Hi. Before I have compiled squid-3.3.3 with --enable-ecap option successfully on cygwin. but then I faild to compile ecap-adapter module.
Now, I compiled it as .dll successfully by writing compile and link command by myself. ------------------------compile and link command------------------------------------- g++ -DHAVE_CONFIG_H -I../src -I/usr/local/include -g -O3 -Wall -Wwrite-strings -Woverloaded-virtual -pipe -MT adapter_modifying.lo -MD -MP -MF .deps/adapter_modifying.Tpo -c adapter_modifying.cc -DDLL_EXPORT -DPIC -o adapter_modifying.o g++ -shared -o cygmodify.dll -Wl,--out-implib=libmodify.dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive adapter_minimal.o -Wl,--no-whole-archive /usr/local/lib/libecap.a ------------------------compile and link command end------------------------------------- But, when I configure squid to load it, it does't work well. Here are the message than squid output. -----------------------squid message------------------------------------------- HDM@HDM-PC /cygdrive/c/squdid/sbin $ ./squid.exe -N -C -d1 2014/10/22 19:29:30| WARNING cache_mem is larger than total disk cache space! 2014/10/22 19:29:30| Starting Squid Cache version 3.3.3 for i686-pc-cygwin... 2014/10/22 19:29:30| Process ID 2040 2014/10/22 19:29:30| Process Roles: master worker 2014/10/22 19:29:30| With 3072 file descriptors available 2014/10/22 19:29:30| Initializing IP Cache... 2014/10/22 19:29:30| DNS Socket created at [::], FD 4 2014/10/22 19:29:30| DNS Socket created at 0.0.0.0, FD 5 2014/10/22 19:29:30| Adding nameserver 8.8.8.8 from squid.conf 2014/10/22 19:29:30| Logfile: opening log daemon:/cygdrive/c/squdid/var/logs/access.log 2014/10/22 19:29:30| Logfile Daemon: opening log /cygdrive/c/squdid/var/logs/access.log 2014/10/22 19:29:30| WARNING: no_suid: setuid(0): (22) Invalid argument 2014/10/22 19:29:30| WARNING: no_suid: setuid(0): (22) Invalid argument 2014/10/22 19:29:30| Unlinkd pipe opened on FD 11 2014/10/22 19:29:30| Store logging disabled 2014/10/22 19:29:30| Swap maxSize 102400 + 262144 KB, estimated 28041 objects 2014/10/22 19:29:30| Target number of buckets: 1402 2014/10/22 19:29:30| Using 8192 Store buckets 2014/10/22 19:29:30| Max Mem size: 262144 KB 2014/10/22 19:29:30| Max Swap size: 102400 KB 2014/10/22 19:29:30| Rebuilding storage in /usr/local/squid/var/cache/squid (dirty log) 2014/10/22 19:29:30| Using Least Load store dir selection 2014/10/22 19:29:30| Set Current Directory to /usr/local/squid/var/cache/squid 2014/10/22 19:29:30| Loaded Icons. 2014/10/22 19:29:30| HTCP Disabled. 2014/10/22 19:29:30| Loading Squid module from '/usr/local/lib/cygmodify.dll' 2014/10/22 19:29:30| Squid plugin modules loaded: 1 2014/10/22 19:29:30| Adaptation support is on 2014/10/22 19:29:30| WARNING: configured ecap_service was not loaded: ecap://e-cap.org/ecap/services/sample/modifying 2014/10/22 19:29:30| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 14 flags=9 2014/10/22 19:29:30| Done reading /usr/local/squid/var/cache/squid swaplog (8 entries) 2014/10/22 19:29:30| Finished rebuilding storage from disk. 2014/10/22 19:29:30| 8 Entries scanned 2014/10/22 19:29:30| 0 Invalid entries. 2014/10/22 19:29:30| 0 With invalid flags. 2014/10/22 19:29:30| 8 Objects loaded. 2014/10/22 19:29:30| 0 Objects expired. 2014/10/22 19:29:30| 0 Objects cancelled. 2014/10/22 19:29:30| 0 Duplicate URLs purged. 2014/10/22 19:29:30| 0 Swapfile clashes avoided. 2014/10/22 19:29:30| Took 0.02 seconds (512.82 objects/sec). 2014/10/22 19:29:30| Beginning Validation Procedure 2014/10/22 19:29:30| Completed Validation Procedure 2014/10/22 19:29:30| Validated 8 Entries 2014/10/22 19:29:30| store_swap_size = 364.00 KB 2014/10/22 19:29:31| storeLateRelease: released 0 objects -----------------------squid message end------------------------------------------- I think that the .dll file should be not OK. Please give me some hints and the location of src where squid loads ecap-adapter module. I want debug it. Thanks. HDM1991
_______________________________________________ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users