[ssh_x509] Compile failure with libressl

ssh_x509 at roumenpetrov.info ssh_x509 at roumenpetrov.info
Fri Mar 31 21:06:50 EEST 2017


Hi,

Issues reported below are addressed in 10.1.1.

ssh_x509 at roumenpetrov.info wrote:
> There were also some warnings about arc4random_buf
>
> monitor.c: In function 'mm_answer_sign':
> monitor.c:688:12: warning: 'keyid' may be used uninitialized in this
> function [-Wmaybe-uninitialized]
>    if (keyid > INT_MAX)
>              ^
> x86_64-pc-linux-gnu-ranlib libssh.a
> ssh-keysign.c: In function 'main':
> ssh-keysign.c:301:2: warning: implicit declaration of function
> 'arc4random_buf' [-Wimplicit-function-declaration]
>    arc4random_buf(rnd, sizeof(rnd));
>    ^~~~~~~~~~~~~~
> ssh-agent.c: In function 'process_lock_agent':
> ssh-agent.c:789:3: warning: implicit declaration of function
> 'arc4random_buf' [-Wimplicit-function-declaration]
>     arc4random_buf(lock_salt, sizeof(lock_salt));
>     ^~~~~~~~~~~~~~
> x86_64-pc-linux-gnu-gcc -o ssh-pkcs11-helper ssh-pkcs11-helper.o
> ssh-pkcs11.o -L. -Lopenbsd-compat/ -Wl,-O1 -Wl,--as-needed -Wl,-z,relro
> -Wl,-z,now -Wl,-z,noexecstack -fstack-protector-strong -Wl,-O1
> -Wl,--as-needed -pie -lssh -lopenbsd-compat -lssh -lopenbsd-compat -lssl
> -lcrypto  -ldl -lutil -lz  -lcrypt -lresolv -lpthread
> x86_64-pc-linux-gnu-gcc -o ssh-add ssh-add.o -L. -Lopenbsd-compat/ -Wl,-O1
> -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack
> -fstack-protector-strong -Wl,-O1 -Wl,--as-needed -pie -lssh
> -lopenbsd-compat -lssl -lcrypto  -ldl -lutil -lz  -lcrypt -lresolv -lpthread
> ./libssh.a(ssh-x509.o): In function `ssh_X509_NAME_add_entry_by_NID':
> /var/tmp/portage/net-misc/openssh-7.5_p1-r1/work/openssh-7.5p1/ssh-x509.c:438:
> undefined reference to `UTF8_getc'
> /var/tmp/portage/net-misc/openssh-7.5_p1-r1/work/openssh-7.5p1/ssh-x509.c:451:
> undefined reference to `UTF8_putc'
> collect2: error: ld returned 1 exit status
> make: *** [Makefile:211: ssh-pkcs11-helper] Error 1
> make: *** Waiting for unfinished jobs....
> ./libssh.a(ssh-x509.o): In function `ssh_X509_NAME_add_entry_by_NID':
> /var/tmp/portage/net-misc/openssh-7.5_p1-r1/work/openssh-7.5p1/ssh-x509.c:438:
> undefined reference to `UTF8_getc'
> /var/tmp/portage/net-misc/openssh-7.5_p1-r1/work/openssh-7.5p1/ssh-x509.c:451:
> undefined reference to `UTF8_putc'
> collect2: error: ld returned 1 exit status
> make: *** [Makefile:197: ssh-add] Error 1

Roumen


-- 
Secure shell with X.509 certificate support
http://roumenpetrov.info/secsh/




More information about the ssh_x509 mailing list