|
Archives of the TeradataForumMessage Posted: Wed, 12 Jun 2002 @ 10:25:22 GMT
Hi, I have posted this a couple of months ago on 'comp.sys.ncr'. I attach it here. That was for 'f-secure' ssh 3.0 ( www.f-secure.com ). (Which should be quite the same as the 'ssh' version ( www.ssh.com ) For Open SSH we did not make much effort. sh ******************************************************** Here are 'what-did-de-do' instructions 'as-far-as-I-remeber' to get the F-Secure ssh2 v3.0 compiled for MP/RAS. The most common communication we have tested and it seems to work OK. 1) The source kit must be acquired - see www.f-secure.com 2) There were suggested patches for NCR platform in file ssh-3.0.1/lib/sshsession/wtmp.c - note that the NCR MP/RAS is not included in F-Secure standard support set. Include these with 'patch' command (GNU version or standard - I do not know) or edit by hand. # patch -p 1 < /path/to/patch-3.0.1-NCR 3) The target MP/RAS system contained the NCR 'cc' compiler and make command, which were OK for compilation. (NCR High Performance C Compiler R3.0c') 4) The configure command for 'ssh' should be entered in the 'ssh' source directory. configure i86pc (... well the NCR is a bunch of Pentium nodes - If you do not specify any host arguments, the configure terminates quite soon with message like 'unkonw host') 5) Before you make you must edit by hand the file: "lib/sshutil/sshincludes_unix.h" otherwise you brake your 'make' execution and get error messages when compiling: E "../../../lib/sshutil/sshincludes_unix.h",L243/C1(#704): Output >from #er" The repair is made by deleting lines 239 - 244 from the file lib/sshutil/sshincludes_unix.h The deleted stuff is like: #ifdef STAT_MACROS_BROKEN ... #endif /* STAT_MACROS_BROKEN */ 6) Now the command 'make' should complete succesfully and you can install the binaries as suggested in the 'ssh' installation instructions. = -------------------------------------- file: /path/to/patch-3.0.1-NCR = -------------------------------------- *** f-secure-ssh-3.0.1/lib/sshsession/wtmp.c Tue Jul 3 16:17:31 2001 --- /tmp/wtmp.c Mon Oct 1 13:42:40 2001 *************** *** 351,359 **** struct utmpx ux, *uxp; memset(&ux, 0, sizeof(ux)); strncpy(ux.ut_line, ttyname + 5, sizeof(ux.ut_line)); if (user == NULL) { - setutxent(); /* open the database and reset to first position */ /* logout; find previous entry for pid and zonk it */ while ((uxp = getutxent())) { --- 351,359 ---- struct utmpx ux, *uxp; memset(&ux, 0, sizeof(ux)); strncpy(ux.ut_line, ttyname + 5, sizeof(ux.ut_line)); + setutxent(); /* open the database and reset to first position */ if (user == NULL) { /* logout; find previous entry for pid and zonk it */ while ((uxp = getutxent())) { *************** *** 362,368 **** ux = *uxp; break; } - endutxent(); } else { --- 362,367 ---- *************** *** 373,378 **** --- 372,378 ---- strncpy(ux.ut_user, ssh_user_name(user), sizeof(ux.ut_user)); ux.ut_type = USER_PROCESS; } + endutxent(); # ifdef DEAD_PROCESS if (user == NULL) ux.ut_type = DEAD_PROCESS; /* logout */ *************** *** 435,440 **** --- 435,441 ---- # ifdef HAVE_SYSLEN_IN_UTMPX ux.ut_syslen = strlen(ux.ut_host); # endif /* HAVE_SYSLEN_IN_UTMPX */ + setutxent(); # ifdef HAVE_MAKEUTX /* * modutx/makeutx notify init(1) to clean up utmpx for this pid ********************************************************
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||