Search squid archive

using clang to compile squid 4-5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

The purpose is to compile squid to get HTTPS or SSL with bump support, on Debian 10 (Buster).

After trying to compile squid-4-5  with clang (clang version 7.0.1-4 (tags/RELEASE_701/final)), it doesn't work.

Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/6.5.0
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7.4.0
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.4.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/8
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64

The command ./configure is followed by the options:

--enable-ssl --enable-ssl-crtd --localstatedir=/var --datadir=/usr/share/squid --sysconfdir=/etc/squid --libexecdir=/usr/lib/squid --mandir=/usr/share/man --enable-inline --disable-arch-native --enable-async-io=8  --enable-storeio="ufs,aufs,diskd,rock" --enable-removal-policies="lru,heap" --enable-delay-pools --enable-cache-digests --enable-icap-client --enable-follow-x-forwarded-for --enable-auth-basic="DB,fake,getpwnam,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB" --enable-auth-digest="file,LDAP" --enable-auth-negotiate="kerberos,wrapper" --enable-auth-ntlm="fake,SMB_LM" --enable-external-acl-helpers="file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,time_quota,unix_group,wbinfo_group" --enable-security-cert-validators="fake" --enable-storeid-rewrite-helpers="file" --enable-url-rewrite-helpers="fake" --enable-eui  --enable-esi --enable-icmp --enable-zph-qos --enable-ecap --disable-translation --with-swapdir=/var/spool/squid --with-logdir=/var/log/squid --with-pidfile=/var/run/squid.pid --with-filedescriptors=65536 --with-large-files --with-default-user=proxy --with-gnutls --with-openssl

The option --with-openssl is added because the output of ./configure ...  says to add it for ssl support.

The Makefile is modified so each line with gcc is replaced with clang and each line of g++ replaced with clang++. But gcc is still used.

Some of these:

CC = clang

CCDEPMODE = depmode=gcc3

CFLAGS = -m64 -Wall -g -O2

CGIEXT = .cgi

CHMOD = /bin/chmod

CPP = clang -E

CPPFLAGS = -I/usr/include/libxml2

CRYPTLIB = -lcrypt

CXX = clang++

CXXCPP = clang++ -E

CXXDEPMODE = depmode=gcc3

CXXFLAGS = -m64 -I/usr/include/p11-kit-1 -g -O2



I'm doing something wrong, but don't see where.

Thanks in advance for any help.

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux