prbinu / tls-scan

An Internet scale, blazing fast SSL/TLS scanner ( non-blocking, event-driven )
https://prbinu.github.io/tls-scan
Other
290 stars 54 forks source link

Docker build fails: #19

Closed jetersen closed 6 years ago

jetersen commented 6 years ago
gcc -I./include -I /usr/local/include -Wall -Wundef -Wshadow -Wunreachable-code -Wswitch-default -Wcast-align -pedantic -g -std=c99 -Wl,-rpath,/usr/local/lib -D_GNU_SOURCE   -c -o main.o main.c
main.c: In function 'main':
main.c:1130:5: error: 'options_t {aka struct options}' has no member named 'ssl3'
   op.ssl3 = false;
     ^
main.c:1131:5: error: 'options_t {aka struct options}' has no member named 'tls1'
   op.tls1 = false;
     ^
main.c:1132:5: error: 'options_t {aka struct options}' has no member named 'tls1_1'
   op.tls1_1 = false;
     ^
main.c:1133:5: error: 'options_t {aka struct options}' has no member named 'tls1_2'
   op.tls1_2 = false;
     ^
main.c:1243:9: error: 'options_t {aka struct options}' has no member named 'ssl3'
       op.ssl3 = true;
         ^
main.c:1247:9: error: 'options_t {aka struct options}' has no member named 'tls1'
       op.tls1 = true;
         ^
main.c:1251:9: error: 'options_t {aka struct options}' has no member named 'tls1_1'
       op.tls1_1 = true;
         ^
main.c:1255:9: error: 'options_t {aka struct options}' has no member named 'tls1_2'
       op.tls1_2 = false;
         ^
main.c:1435:21: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
     fprintf(stderr, " [%d] elapsed-time        : %llu.%llu secs\n",
                     ^
main.c:1435:21: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
main.c:1461:21: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
     fprintf(stderr, "elapsed-time: %llu.%llu secs\n", et/1000000, et%1000000);
                     ^
main.c:1461:21: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
<builtin>: recipe for target 'main.o' failed
make: *** [main.o] Error 1
The command '/bin/sh -c ./build-x86-64.sh' returned a non-zero code: 2
prbinu commented 6 years ago

Thanks for reporting the issue. It is fixed now. https://github.com/prbinu/tls-scan/commit/810fc44b75d8a458b4045efb2481e01a522ae6a5

jetersen commented 6 years ago

Thanks! my coworker who had C experience started debugging it for me before he had to leave work 😅 We found out it was those missing but we both got sided tracked. Thanks again for the quick fix!