[ssh_x509] Compile error for 12.5.1 on MacOS

ssh_x509 at roumenpetrov.info ssh_x509 at roumenpetrov.info
Mon Jun 22 01:57:01 EEST 2020


Hello,

I downloaded version 12.5.1 of PKIXSSH and tried to compile it on MacOS, and I got the following error:

session.c:2209:2: error: use of undeclared identifier 'SIGSIGINFO'
        SSH_SIG(SIGINFO);
        ^
session.c:2200:32: note: expanded from macro 'SSH_SIG'
#define SSH_SIG(x) if (code == SIG ## x) return 1;
                               ^
<scratch space>:48:1: note: expanded from here
SIGSIGINFO
^
1 error generated.
make: *** [session.o] Error 1

Looking at the lines directly above this, I think the problem is that this should say SSH_SIG(INFO), not SSH_SIG(SIGINFO). I made the following change and the code compiled for me:

--- session.c.orig	2020-06-21 15:51:31.000000000 -0700
+++ session.c	2020-06-21 15:51:43.000000000 -0700
@@ -2206,7 +2206,7 @@
 	SSH_SIG(USR1);
 	SSH_SIG(USR2);
 #ifdef SIGINFO
-	SSH_SIG(SIGINFO);
+	SSH_SIG(INFO);
 #endif
 #undef	SSH_SIG
 	return 0;
-- 
Ron Frederick
ronf at timeheart.net





More information about the ssh_x509 mailing list