Re: [squid-users] Problem to set up multi-cpu multi-ports squid 3.3.12

From: Patrick Chemla <patrick.chemla_at_performance-managers.com>
Date: Tue, 15 Jul 2014 10:45:18 +0300

Hi Eliezer,

I have disabled SELINUX, doesn't help.
shm partition is mounted OK from beginning

I can't find basic_data.sh, nor on my disk after install of squid
package or sources, nor using google.

I am trying to compile squid-3.4.6 to add rock cache type (not included
by default) but I get errors with crypto and ssl libraries :

Making all in anyp
make[3] : on entre dans le répertoire «
/usr/local/src/squid-3.4.6/src/anyp »
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I../.. -I../../include -I../../lib -I../../src -I../../include
-I../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-Wshadow -Werror -pipe -D_REENTRANT -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
-fpie -march=native -std=c++11 -c -o PortCfg.lo PortCfg.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-m64 -mtune=generic -march=native -std=c++11 -c PortCfg.cc -fPIC -DPIC
-o .libs/PortCfg.o
In file included from ../../src/anyp/PortCfg.h:9:0,
                  from PortCfg.cc:2:
../../src/ssl/gadgets.h:32:9: error: 'SSL_METHOD' does not name a type
  typedef SSL_METHOD * ContextMethod;
          ^
In file included from ../../src/anyp/PortCfg.h:9:0,
                  from PortCfg.cc:2:
../../src/ssl/gadgets.h:76:40: error: variable or field 'X509_free_cpp'
declared void
  CtoCpp1(X509_free, X509 *)
                                         ^
../../src/ssl/gadgets.h:76:40: error: 'X509' was not declared in this scope
../../src/ssl/gadgets.h:76:47: error: 'a' was not declared in this scope
  CtoCpp1(X509_free, X509 *)
                                                ^
../../src/ssl/gadgets.h:77:24: error: 'X509' was not declared in this scope
  typedef LockingPointer<X509, X509_free_cpp, CRYPTO_LOCK_X509>
X509_Pointer;
                         ^
../../src/ssl/gadgets.h:77:30: error: 'X509_free_cpp' was not declared
in this scope
  typedef LockingPointer<X509, X509_free_cpp, CRYPTO_LOCK_X509>
X509_Pointer;

Do you have an idea?
Thanks
Patrick

Le 14/07/2014 22:03, Eliezer Croitoru a écrit :
> On 07/14/2014 08:42 PM, Patrick Chemla wrote:
>> Hey Eliezer,
>>
>> Happy to read you.
>>
>> What do you call "rock as cache_dir"?
>
> Squid uses cache_dir to store objects on disk.
> If you don't know what it is I will refer you to the configuration pages:
> http://www.squid-cache.org/Doc/config/cache_dir/
>
> Your basic issue is related to SHM and\or selinux.
> you can use the basic_data.sh script to get most of the needed
> information about your system and the issue.
>
> You need to first disable selinux or use permissive mode.
> Then make sure you have a SHM partition mounted.
> Only then squid will work with SMP support.
>
> Good Luck,
> Eliezer
Received on Tue Jul 15 2014 - 07:45:23 MDT

This archive was generated by hypermail 2.2.0 : Tue Jul 15 2014 - 12:00:08 MDT