PurpleI2P / i2pd-tools

Some useful tools for I2P
BSD 3-Clause "New" or "Revised" License
119 stars 38 forks source link

Doesn't build on Debian 9 #38

Closed l-n-s closed 6 years ago

l-n-s commented 6 years ago
famtool.cpp:59:39: error: invalid use of incomplete type ‘struct evp_pkey_st’
       int keyType = EVP_PKEY_type(pkey->type);
                                       ^~
In file included from /usr/include/openssl/bn.h:32:0,
                 from i2pd/libi2pd/Crypto.h:6,
                 from famtool.cpp:8:

Also throws a lot of "pedantic" warnings about semicolon

:In file included from libi2pd/Crypto.cpp:9:0:
libi2pd/TunnelBase.h:69:4: warning: extra ‘;’ [-Wpedantic]
   };                                               
    ^  
orignal commented 6 years ago

openssl 1.1

l-n-s commented 6 years ago

Another error here:

g++ -o vanitygen.o -c -Wall -std=c++11 -Wno-misleading-indentation -g -Ii2pd/libi2pd -Ii2pd/libi2pd_client -Ii2pd vanitygen.cpp
vanitygen.cpp: In function ‘int main(int, char**)’:
vanitygen.cpp:237:8: error: ‘SIGNING_KEY_TYPE_GOSTR3410_TC26_A_512_GOSTR3411_512_TEST’ is not a member of ‘i2p::data’
   case i2p::data::SIGNING_KEY_TYPE_GOSTR3410_TC26_A_512_GOSTR3411_512_TEST:
        ^~~
vanitygen.cpp:262:8: error: ‘SIGNING_KEY_TYPE_GOSTR3410_CRYPTO_PRO_A_GOSTR3411_256_TEST’ is not a member of ‘i2p::data’
   case i2p::data::SIGNING_KEY_TYPE_GOSTR3410_CRYPTO_PRO_A_GOSTR3411_256_TEST:
        ^~~
Makefile:64: recipe for target 'vanitygen.o' failed
make: *** [vanitygen.o] Error 1
majestrate commented 6 years ago

i have a fix for that too let me PR that i forgot to

l-n-s commented 6 years ago

k, now it's building!