Shallot icon indicating copy to clipboard operation
Shallot copied to clipboard

Build is broken on gcc 6.2.1 / openssl 1.1.0c / Debian stretch

Open ageis opened this issue 9 years ago • 9 comments

$ ./configure && make
Liunx detected.  Have you considered switching to BSD?
Configuration successful.  This does not mean it will build.
If you are missing gcc, or required libraries/headers, you
will need to install them first.
cc  -O3 -I/usr/include -I/usr/local/include -L/usr/lib -L/usr/local/lib  -Wall -o src/math.o -c src/math.c
src/math.c: In function ‘easygen’:
src/math.c:30:5: warning: ‘RSA_generate_key’ is deprecated [-Wdeprecated-declarations]
     rsa = RSA_generate_key(num, 3, NULL, NULL);
     ^~~
In file included from /usr/include/openssl/asn1.h:15:0,
                 from /usr/include/openssl/rsa.h:16,
                 from src/math.h:24,
                 from src/math.c:3:
/usr/include/openssl/rsa.h:193:1: note: declared here
 DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
 ^
src/math.c: In function ‘sane_key’:
src/math.c:67:17: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’
   BN_sub(p1, rsa->p, BN_value_one()); // p - 1
                 ^~
src/math.c:78:10: error: dereferencing pointer to incomplete type ‘BIGNUM {aka struct bignum_st}’
   if(!chk->neg)
          ^~
Makefile:44: recipe for target 'src/math.o' failed
make: *** [src/math.o] Error 1

ageis avatar Jan 23 '17 07:01 ageis

Confirmed

JanSchuerlein avatar Feb 05 '17 22:02 JanSchuerlein

Confirmed again

JeSTeRFLA avatar May 07 '17 18:05 JeSTeRFLA

I have the same problem (gcc 6.3.0).... shallot code is sabotaged by spies.

alanford2015 avatar Jun 14 '17 09:06 alanford2015

Let's not fearmonger...

Anyway, I had hoped with katmagic taking over that (s)he or someone would have converted it to a proper build system (e.g. Autoconf), but it looks like nothing has happened. I'll take a look at it and try at the very least to get it building and producing the correct key/hash pairs, but it might be a few months before I get to this as I have a few other projects at higher priority in my queue, and very little time to work on any of them.

Orum avatar Jun 23 '17 19:06 Orum

The libssl API changed with version 1.1.x.

erikd avatar Jul 22 '17 09:07 erikd

https://github.com/ReclaimYourPrivacy/eschalot builds and is probably a better bet.

erikd avatar Jul 23 '17 00:07 erikd

@erikd if the API changed, shouldn't you just install libssl1.0-dev?

Worked for me…

jrmann100 avatar Jun 05 '18 04:06 jrmann100

I forked the project and updated it to OpenSSL 1.1.0, hope it helps you :) https://github.com/katmagic/Shallot/pull/37

jroeger23 avatar Jun 15 '18 17:06 jroeger23

Liunx?

Atomic-Germ avatar Feb 08 '22 21:02 Atomic-Germ