Compilation error with openssl #4

Closed
opened 2018-08-01 08:08:22 +00:00 by dellarte · 2 comments
dellarte commented 2018-08-01 08:08:22 +00:00 (Migrated from github.com)

Hello,

I've obviously installed all dependancies and also set CFLAGS=-I/usr/includes

but i get 2 error while compilation :

cc -L/usr/local/lib/ -L/opt/local/lib src/skipfish.c -o skipfish \
        -O3 -Wno-format -Wall -funsigned-char -g -ggdb -I/usr/local/include/ -I/opt/local/include/ -I/usr/include/ -DVERSION=\"2.10b\" src/http_client.c src/database.c src/crawler.c src/analysis.c src/report.c src/checks.c src/signatures.c src/auth.c src/options.c -lcrypto -lssl -lidn -lz -lpcre
src/http_client.c: In function ‘check_ssl’:
src/http_client.c:1965:10: error: dereferencing pointer to incomplete type ‘SSL_CIPHER’ {aka ‘const struct ssl_cipher_st’}
   if(!(cp->algo_strength & SSL_MEDIUM) && !(cp->algo_strength & SSL_HIGH))
          ^~
src/http_client.c:1982:34: error: dereferencing pointer to incomplete type ‘X509’ {aka ‘struct x509_st’}
     if (ASN1_UTCTIME_cmp_time_t(p->cert_info->validity->notBefore, cur_time)
Hello, I've obviously installed all dependancies and also set CFLAGS=-I/usr/includes but i get 2 error while compilation : ``` cc -L/usr/local/lib/ -L/opt/local/lib src/skipfish.c -o skipfish \ -O3 -Wno-format -Wall -funsigned-char -g -ggdb -I/usr/local/include/ -I/opt/local/include/ -I/usr/include/ -DVERSION=\"2.10b\" src/http_client.c src/database.c src/crawler.c src/analysis.c src/report.c src/checks.c src/signatures.c src/auth.c src/options.c -lcrypto -lssl -lidn -lz -lpcre src/http_client.c: In function ‘check_ssl’: src/http_client.c:1965:10: error: dereferencing pointer to incomplete type ‘SSL_CIPHER’ {aka ‘const struct ssl_cipher_st’} if(!(cp->algo_strength & SSL_MEDIUM) && !(cp->algo_strength & SSL_HIGH)) ^~ src/http_client.c:1982:34: error: dereferencing pointer to incomplete type ‘X509’ {aka ‘struct x509_st’} if (ASN1_UTCTIME_cmp_time_t(p->cert_info->validity->notBefore, cur_time) ```
dorpvom commented 2018-08-03 13:10:17 +00:00 (Migrated from github.com)

Hi, had the same problem today.
For me - running ubuntu-mate 18.04 - installing libssl1.0-dev via aptitude did the trick. On 18.04 libssl-dev defaults to 1.1. Since skipfish works on Kali, which also uses 1.0, I came to trying this.
Maybe this can help you as well.

EDIT: Note that I cloned the kali repo [1]. Don't know if that's newer, older or both are in sync.
[1] git://git.kali.org/packages/skipfish.git

Hi, had the same problem today. For me - running ubuntu-mate 18.04 - installing `libssl1.0-dev` via aptitude did the trick. On 18.04 `libssl-dev` defaults to 1.1. Since skipfish works on Kali, which also uses 1.0, I came to trying this. Maybe this can help you as well. EDIT: Note that I cloned the kali repo [1]. Don't know if that's newer, older or both are in sync. [1] git://git.kali.org/packages/skipfish.git
dellarte commented 2018-08-08 08:58:39 +00:00 (Migrated from github.com)

Yes ! The compilation passed. It seems it worked.
And Indeed, this problem should be related to Debian.

Thank you !!

Yes ! The compilation passed. It seems it worked. And Indeed, this problem should be related to Debian. Thank you !!
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: crt0mega/skipfish#4
No description provided.