Por favor, me ajudem a resolver esse problema com a compilação do apache2.2 no debian squeeze,

Basicamente eu estou tentando compilar o mod_ssl porque o mod_ssl atual não suporta o suporte do tls1.2. Então eu extraí a fonte do apache atual do repositório debian e agora tentando reconstruí-lo com o novo openssl para que eu possa gerar o mod_ssl de trabalho com o suporte do tls1.2

Estou recebendo o seguinte erro quando tento compilar o apache2.22.16 com o openssl 1.1.0h e com o gcc versão 4.4.5 (Debian 4.4.5-8)

  /root/apache/apache/apache2-2.2.16/srclib/apr/libtool --silent --mode=compile gcc -pthread  -O2  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE    -I/root/apache/apache/apache2-2.2.16/srclib/pcre -I. -I/root/apache/apache/apache2-2.2.16/os/unix -I/root/apache/apache/apache2-2.2.16/server/mpm/prefork -I/root/apache/apache/apache2-2.2.16/modules/http -I/root/apache/apache/apache2-2.2.16/modules/filters -I/root/apache/apache/apache2-2.2.16/modules/proxy -I/root/apache/apache/apache2-2.2.16/include -I/root/apache/apache/apache2-2.2.16/modules/generators -I/root/apache/apache/apache2-2.2.16/modules/mappers -I/root/apache/apache/apache2-2.2.16/modules/database -I/root/apache/apache/apache2-2.2.16/srclib/apr/include -I/root/apache/apache/apache2-2.2.16/srclib/apr-util/include -I/root/apache/apache/apache2-2.2.16/modules/proxy/../generators -I/opt/openssl-1.1.0h/include/include -I/root/apache/apache/apache2-2.2.16/modules/ssl -I/root/apache/apache/apache2-2.2.16/modules/dav/main  -prefer-non-pic -static -c ssl_engine_io.c && touch ssl_engine_io.lo
ssl_engine_io.c: In function 'bio_filter_out_flush':
ssl_engine_io.c:135: error: dereferencing pointer to incomplete type
ssl_engine_io.c: In function 'bio_filter_create':
ssl_engine_io.c:168: error: dereferencing pointer to incomplete type
ssl_engine_io.c:169: error: dereferencing pointer to incomplete type
ssl_engine_io.c:170: error: dereferencing pointer to incomplete type
ssl_engine_io.c:171: error: dereferencing pointer to incomplete type
ssl_engine_io.c: In function 'bio_filter_out_write':
ssl_engine_io.c:196: error: dereferencing pointer to incomplete type
ssl_engine_io.c: In function 'bio_filter_out_ctrl':
ssl_engine_io.c:246: error: dereferencing pointer to incomplete type
ssl_engine_io.c:266: error: dereferencing pointer to incomplete type
ssl_engine_io.c:269: error: dereferencing pointer to incomplete type
ssl_engine_io.c: At top level:
Ashish Rocker
fonte