Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing psiphon on Debian 10 gives make: *** [Makefile:129: authfd.o] Error #28

Open
tapasm2027 opened this issue Sep 8, 2019 · 1 comment

Comments

@tapasm2027
Copy link

I am trying to install psiphon on Debian 10 based on instructions here
https://askubuntu.com/questions/637568/how-do-i-install-psiphon-on-ubuntu-14-04-lts-step-by-step

I did a $ git clone https://github.com/thispc/psiphon.git
then cd psiphon
Open README.md for instructions
did sudo apt-get install python-pip it went without errors .
https://pastebin.com/X8HnAZry
this is how files look like did a simple ls
https://pastebin.com/mFi85PBp

then ./configure came across error
configure: error: *** zlib.h missing - please install first or check
config.log ***
https://pastebin.com/ANGa0c7q
to get rid of above error I did
sudo apt-get install libz-dev
Then I did ./configure and found a new error

configure: error: *** OpenSSL headers missing
full message can be seen here
https://pastebin.com/9XFUYZkk
I then tried doing
debian@debian:~/psiphon/openssh-5.9p1$ sudo apt-get install openssl
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssl is already the newest version (1.1.1c-1).
openssl set to manually installed.
The following packages were automatically installed and are no longer required:
ethtool libdumbnet1 libmspack0 libxmlsec1-openssl zerofree
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 76 not upgraded.

So I did sudo apt autoremove and then
debian@debian:~/psiphon/openssh-5.9p1$ ./configure

checking openssl/opensslv.h usability... no
checking openssl/opensslv.h presence... no
checking for openssl/opensslv.h... no
configure: error: *** OpenSSL headers missing - please install first
or check config.log ***

so it appears openssl is installed to latest version.
while installing psiphon on Debian 10.
I read this page https://wiki.openssl.org/index.php/Compilation_and_Installation
and this page https://stackoverflow.com/questions/29858870/build-openssl-with-rpath
but could not understand what changes should I make on my system for
psiphon (https://github.com/thispc/psiphon.git)
to be installed.

after installing libssl-dev zlib
https://pastebin.com/EYpswMRv

checking whether snprintf correctly terminates long strings... yes
checking whether snprintf can declare const char *fmt... yes
checking whether system supports SO_PEERCRED getsockopt... yes
checking for (overly) strict mkstemp... yes
checking if openpty correctly handles controlling tty... yes
checking whether getpgrp requires zero arguments... yes
checking OpenSSL header version... 1010103f (OpenSSL 1.1.1c 28 May 2019)
checking OpenSSL library version... 1010103f (OpenSSL 1.1.1c 28 May 2019)
checking whether OpenSSL's headers match the library... no
configure: error: Your OpenSSL headers do not match your
library. Check config.log for details.
If you are sure your installation is consistent, you can disable the check
by running "./configure --without-openssl-header-check".
Also see contrib/findssl.sh for help identifying header/library mismatches.
Full message here https://pastebin.com/pyHiyG3j

I executed command ./configure –without-openssl-header-check
OpenSSH has been configured with the following options:
User binaries: /usr/local/bin
System binaries: /usr/local/sbin
Configuration files: /usr/local/etc
Askpass program: /usr/local/libexec/ssh-askpass
Manual pages: /usr/local/share/man/manX
PID file: /var/run
Privilege separation chroot path: /var/empty
sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
Manpage format: doc
PAM support: no
OSF SIA support: no
KerberosV support: no
SELinux support: no
Smartcard support:
S/KEY support: no
TCP Wrappers support: no
MD5 password support: no
libedit support: no
Solaris process contract support: no
Solaris project support: no
IP address in $DISPLAY hack: no
Translate v4 in v6 hack: yes
BSD Auth support: no
Random number source: OpenSSL internal ONLY
Privsep sandbox style: rlimit

          Host: x86_64-unknown-linux-gnu
      Compiler: gcc
Compiler flags: -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -fno-builtin-memset -fstack-protector-all

Preprocessor flags:
Linker flags: -fstack-protector-all
Libraries: -lcrypto -ldl -lutil -lz -lnsl -lcrypt -lresolv

Full messages can be seen here full messages https://pastebin.com/UsEZcgKi

Now I did

debian@debian:/psiphon/openssh-5.9p1$ make
In file included from authfd.c:60:
cipher.h:67:17: error: field ‘evp’ has incomplete type
EVP_CIPHER_CTX evp;
^~~
In file included from authfd.c:61:
kex.h:104:11: error: field ‘evp_ctx’ has incomplete type
HMAC_CTX evp_ctx;
^~~~~~~
authfd.c: In function ‘ssh_get_next_identity’:
authfd.c:334:48: error: dereferencing pointer to incomplete type ‘RSA’ {aka ‘struct rsa_st’}
buffer_get_bignum(&auth->identities, key->rsa->e);
^

authfd.c: In function ‘ssh_encode_identity_ssh2’:
authfd.c:499:33: error: dereferencing pointer to incomplete type ‘DSA’ {aka ‘struct dsa_st’}
buffer_put_bignum2(b, key->dsa->p);
^~
make: *** [Makefile:129: authfd.o] Error 1
full message of make https://pastebin.com/0eSzXLxm

All steps combine with all messages in a sequence
https://pastebin.com/CuMRuExj
what should I do now how to proceed from here.

@alexminator
Copy link

I have the same scenario. i am using debian 10.6 and fix dependencies errors installing libz-dev libssl-dev.
configure: error: Your OpenSSL headers do not match your
photo_2020-12-02_12-44-41
So I ran this command ./configure –without-openssl-header-check
Then make and it gives me the same error as tapasm2027
In file included from authfd.c:60:
cipher.h:67:17: error: field 'evp' has incomplete type
EVP_CIPHER_CTX evp;
^~~
In file included from authfd.c:61:
kex.h:104:11: error: field 'evp_ctx' has incomplete type
HMAC_CTX evp_ctx;
^~~~~~~
authfd.c: In function 'ssh_get_next_identity':
authfd.c:334:48: error: dereferencing pointer to incomplete type 'RSA' {aka 'struct rsa_st'}
buffer_get_bignum(&auth->identities, key->rsa->e);
^~
authfd.c: In function 'ssh_encode_identity_ssh2':
authfd.c:499:33: error: dereferencing pointer to incomplete type 'DSA' {aka 'struct dsa_st'}
buffer_put_bignum2(b, key->dsa->p);
^~
make: *** [Makefile:129: authfd.o] Error 1
Waiting for a possible solution. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants