[squid-users] squid5 build error
joseph
chip_pop at hotmail.com
Wed Oct 4 09:45:32 UTC 2017
amos i do use your patch and i get that error
here is my configure and i use debian 9.x with gcc 7 now
libtool: compile: x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I../..
-I../../include -I../../lib -I../../src -I../../include
-I/usr/include/openssl -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-Wshadow -Woverloaded-virtual -Werror -Wno-deprecated-register -pipe
-D_REENTRANT -std=c++11 -m64 -O3 -march=native -MT gadgets.lo -MD -MP -MF
.deps/gadgets.Tpo -c gadgets.cc -fPIC -DPIC -o .libs/gadgets.o
gadgets.cc: In function ‘const ASN1_BIT_STRING*
Ssl::X509_get_signature(const CertPointer&)’:
gadgets.cc:960:25: error: invalid conversion from ‘ASN1_BIT_STRING** {aka
asn1_string_st**}’ to ‘const ASN1_BIT_STRING** {aka const
asn1_string_st**}’ [-fpermissive]
X509_get0_signature(&sig, &sig_alg, cert.get());
^~~~
In file included from /usr/include/openssl/ssl.h:50:0,
from ../../src/security/Context.h:16,
from ../../src/security/forward.h:13,
from ../../src/ssl/gadgets.h:13,
from gadgets.cc:10:
/usr/include/openssl/x509.h:552:6: note: initializing argument 1 of
‘void X509_get0_signature(const ASN1_BIT_STRING**, const X509_ALGOR**,
const X509*)’
void X509_get0_signature(const ASN1_BIT_STRING **psig,
^~~~~~~~~~~~~~~~~~~
gadgets.cc:960:31: error: invalid conversion from ‘X509_ALGOR** {aka
X509_algor_st**}’ to ‘const X509_ALGOR** {aka const X509_algor_st**}’
[-fpermissive]
X509_get0_signature(&sig, &sig_alg, cert.get());
^~~~~~~~
In file included from /usr/include/openssl/ssl.h:50:0,
from ../../src/security/Context.h:16,
from ../../src/security/forward.h:13,
from ../../src/ssl/gadgets.h:13,
from gadgets.cc:10:
/usr/include/openssl/x509.h:552:6: note: initializing argument 2 of
‘void X509_get0_signature(const ASN1_BIT_STRING**, const X509_ALGOR**,
const X509*)’
void X509_get0_signature(const ASN1_BIT_STRING **psig,
^~~~~~~~~~~~~~~~~~~
At global scope:
cc1plus: error: unrecognized command line option
‘-Wno-deprecated-register’ [-Werror]
cc1plus: all warnings being treated as errors
Makefile:846: recipe for target 'gadgets.lo' failed
make[3]: *** [gadgets.lo] Error 1
===============================
NAME=squid
PREFIX=/usr
FLAGSC11="-std=c++11 -m64 -O3"
FLAGSC="-m64 -O3"
CHOST="x86_64-linux-gnu"
./configure \
--prefix=${PREFIX} \
--bindir=${PREFIX}/bin \
--sbindir=${PREFIX}/sbin \
--libexecdir=${PREFIX}/lib/${NAME} \
--sysconfdir=/etc/${NAME} \
--localstatedir=/var \
--libdir=${PREFIX}/lib \
--includedir=${PREFIX}/include \
--datadir=${PREFIX}/share/${NAME} \
--infodir=${PREFIX}/share/info \
--mandir=${PREFIX}/share/man \
--enable-storeio=ufs,aufs,diskd,rock \
--enable-removal-policies=lru,heap \
--enable-linux-netfilter \
--enable-wccpv2 \
--enable-http-violations \
--enable-eui \
--enable-esi \
--enable-follow-x-forwarded-for \
--enable-arp-acl \
--enable-htcp \
--enable-cache-digests \
--enable-auth-negotiate=none \
--enable-storeid-rewrite-helpers \
--enable-ssl-crtd \
--enable-inline \
--enable-external-acl-helpers=none \
--enable-zph-qos \
--with-pthreads \
--enable-kill-parent-hack \
--with-openssl \
--with-default-user=proxy \
--with-logdir=/var/log/${NAME} \
--with-pidfile=/var/run/${NAME}.pid \
--with-filedescriptors=200000 \
--enable-snmp \
--enable-x-accelerator-vary \
--enable-delay-pools \
--enable-epoll \
--enable-translation \
--enable-icap-client \
--enable-ecap \
--enable-useragent-log \
--host="${CHOST}" \
CFLAGS="${FLAGSC}" \
CXXFLAGS="${FLAGSC11}" \
CPPFLAGS=-I/usr/include/openssl \
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
--
Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html
More information about the squid-users
mailing list