h1

error compilando Squid3 con soporte SSL: variable or field ‘X509_free_cpp’ declared void

28/07/2013

Si al compilar Squid3 ocurre el siguiente error:

Making all in base
make[4]: se ingresa al directorio «/root/squid/squid3-3.1.19/src/base»
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../src -I../../include -I/usr/include -I/usr/include/libxml2 -D_FORTIFY_SOURCE=2 -I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -fhuge-objects -D_REENTRANT -m64 -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -c -o AsyncCall.lo AsyncCall.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../src -I../../include -I/usr/include -I/usr/include/libxml2 -D_FORTIFY_SOURCE=2 -I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -fhuge-objects -D_REENTRANT -m64 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -c AsyncCall.cc -fPIC -DPIC -o .libs/AsyncCall.o
g++: warning: switch '-fhuge-objects' is no longer supported
In file included from ../../src/ssl_support.h:39:0,
from ../../src/squid.h:272,
from AsyncCall.cc:5:
../../src/ssl/gadgets.h:39:1: error: variable or field 'X509_free_cpp' declared void
../../src/ssl/gadgets.h:39:1: error: 'X509' was not declared in this scope
../../src/ssl/gadgets.h:39:1: error: 'a' was not declared in this scope
../../src/ssl/gadgets.h:40:21: error: 'X509' was not declared in this scope
../../src/ssl/gadgets.h:40:27: error: 'X509_free_cpp' was not declared in this scope
../../src/ssl/gadgets.h:40:40: error: template argument 1 is invalid
../../src/ssl/gadgets.h:40:40: error: template argument 2 is invalid
../../src/ssl/gadgets.h:40:54: error: invalid type in declaration before ';' token

Se soluciona instalando las librerías de desarrollo de SSL:

carlos@test:~$ sudo apt-get install libssl-dev

Anuncios

2 comentarios

  1. Thank you for this post. It helped me compile squid3 3.1.19 on Ubuntu 12.04 Precise.


  2. Muito obrigado, me ajudou muito!!!



Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

A %d blogueros les gusta esto: