Groups | Search | Server Info | Login | Register


Groups > comp.protocols.kermit.misc > #64

illumos

From jayjwa <jayjwa@atr2.ath.cx.invalid>
Newsgroups comp.protocols.kermit.misc
Subject illumos
Date 2025-11-29 15:11 -0500
Organization Atr2 RG 2025
Message-ID <87bjkk38g2.fsf@atr2.ath.cx> (permalink)

Show all headers | View raw


I can't find/don't know how to send this to the right people, so I'm
posting it here. It builds on Open Indiana, Omni OS and maybe others
while still building on my Linux host. I used gmake and the other Gnu
tools w/ GCC (these are installed along with the Solaris-y ones). The
makefile chains off the SOLARIS11 target with a few minor adustments.

gcc version 14.3.0 (OpenIndiana 14.3.0-oi-0)
[14:55] jayjwa@ibushi:~/cku416-beta12$ uname -a
SunOS ibushi 5.11 illumos-478476fe3b i86pc i386 i86pc
[14:55] jayjwa@ibushi:~/cku416-beta12$ patch -u --strip=1 < ../cku416-beta12.patch
patching file ckufio.c
patching file ckupty.c
patching file ckuusx.c
patching file makefile
[14:55] jayjwa@ibushi:~/cku416-beta12$ gmake illumos
...
[14:57] jayjwa@ibushi:~/cku416-beta12$ ./wermit 
C-Kermit 10.0.416 Beta.12, 2025/03/22, for Solaris 11 (64-bit)
 Copyright (C) 1985, 2025,
  Trustees of Columbia University in the City of New York.
  Open Source 3-clause BSD license since 2011.
Type ? or HELP for help.
(~/cku416-beta12/) C-Kermit>set host amatsu.lan
 DNS Lookup...  Trying 192.168.20.8...  Reverse DNS Lookup... (OK)
 amatsu connected on port telnet
(~/cku416-beta12/) C-Kermit>connect
Connecting to host amatsu:23
 Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------

 AMATSU KLH, PANDA TOPS-20 Monitor 7.1(21733)-4

This system is for the use of authorized users only.  Usage of
this system may be monitored and recorded by system personnel.

Anyone using this system expressly consents to such monitoring
and is advised that if such monitoring reveals possible
evidence of criminal activity, system personnel may provide the
evidence from such monitoring to law enforcement officials.

@login (USER) jayjwa (PASSWORD) 
 Job 12 on TTY44 atr2.lan(TCP) 29-Nov-2025 14:58:04
  Last interactive login 29-Nov-2025 14:18:50
  Last non-interactive login 15-Sep-2025 18:14:08
 End of LOGIN.CMD.10
@new:kermit
TOPS-20 Kermit version 5.3(277)-5

Kermit-20>send login.cmd
----------------------------------------------------
----------------------------------------------------
Kermit-20>exit
Good afternoon, JAYJWA ... 
A professor is one who talks in someone else's sleep.

 End of <SYSTEM>LOGOUT.CMD.1
Killed Job 12, User JAYJWA, TTY44 atr2.lan, at 29-Nov-2025 15:00:26
 Used 0:00:00 in 0:00:21

Communications disconnect (Back at ibushi)
----------------------------------------------------
(~/cku416-beta12/) C-Kermit>exit
[15:00] jayjwa@ibushi:~/cku416-beta12$ cat login.cmd
TERMINAL VT200-SERIES
TERMINAL NO PAUSE END-OF-PAGE
TERMINAL RECEIVE LINKS
TERMINAL RECEIVE ADVICE
DEFINE CD: CONNECT
DEFINE CLS: BLANK
DEFINE SCRATCH: <JAYJWA>
SET HISTORY 20
BBOARD
[15:00] jayjwa@ibushi:~/cku416-beta12$

Here's the Omni OS one:
jayjwa@fatalis:cku416-beta12 $./wermit
C-Kermit 10.0.416 Beta.12, 2025/03/22, for Solaris 11 (64-bit)
 Copyright (C) 1985, 2025,
  Trustees of Columbia University in the City of New York.
  Open Source 3-clause BSD license since 2011.
Type ? or HELP for help.
(~/cku416-beta12/) C-Kermit>show version

Versions:
 C-Kermit 10.0.416 Beta.12, 2025/03/22
 Numeric: 1000415
 Built for:  Solaris 11
 Running on: SunOS omnios-r151056-9fd2b931e3 5.11 i86pc
 Patches: (none)
 UNIX Communications support, 10.0.340, 16 May 2023 for Solaris 11
 UNIX File support, 9.0.234, 05 May 2023 for Solaris 11
 C-Kermit library, 10.0.063, 02 May 2023
 C-Kermit Protocol Module 10.0.170, 21 Mar 2024
 C-Kermit functions, 10.0.247, 6 Feb 2024
 Command package 10.0.184, 19 Sept 2023
 User Interface 10.0.332, 02 May 2023
 Character Set Translation 10.0.045, 15 Apr 2023
 CONNECT Command for UNIX:select(), 10.0.143, 15 Apr 2023
 Dial Command, 10.0.165, 15 Apr 2023
 Script Command, 10.0.033, 15 Apr 2023
 Network support, 10.0.304, 18 Sep 2023
 Telnet support, 10.0.283, 16 Apr 2023
 FTP Client, 10.0.281, 18 Sep 2023

(~/cku416-beta12/) C-Kermit>


diff -Nur cku416-beta12/ckufio.c cku416-beta12p/ckufio.c
--- cku416-beta12/ckufio.c	2025-03-21 20:38:06.000000000 -0400
+++ cku416-beta12p/ckufio.c	2025-11-29 14:15:22.469378711 -0500
@@ -595,10 +595,14 @@
 #endif /* __APPLE__ */
 
 #ifdef SOLARIS
+#ifdef __illumos__
+#define PAM_CONST CONST
+#else /* __illumos __ */
 #define PAM_CONST 
+#endif /* __illumos__ */
 #else /* SOLARIS */
 #define PAM_CONST CONST
-#endif 
+#endif /* SOLARIS */
 
 static char * pam_pw = NULL;
 
diff -Nur cku416-beta12/ckupty.c cku416-beta12p/ckupty.c
--- cku416-beta12/ckupty.c	2025-03-21 20:28:49.000000000 -0400
+++ cku416-beta12p/ckupty.c	2025-11-29 13:10:09.866892914 -0500
@@ -89,6 +89,11 @@
 #define BSD44ORPOSIX
 #endif	/* SUNOS41 */
 
+#ifdef __illumos__
+#include <stropts.h>
+#include <unistd.h>
+#endif /* __illumos */
+
 #ifndef USE_TERMIO
 #ifdef LINUX
 #define USE_TERMIO
diff -Nur cku416-beta12/ckuusx.c cku416-beta12p/ckuusx.c
--- cku416-beta12/ckuusx.c	2025-03-21 21:27:20.000000000 -0400
+++ cku416-beta12p/ckuusx.c	2025-11-29 13:13:15.759092328 -0500
@@ -87,6 +87,10 @@
 char * tgoto (const char *, int, int);
 #endif /* __linux__ */
 
+#ifdef __illumos__
+#include <ncurses/termcap.h>
+#endif /* __illumos__ */
+
 #ifdef OS2
 #include <string.h>
 #include <process.h>  /* for getpid() */
diff -Nur cku416-beta12/makefile cku416-beta12p/makefile
--- cku416-beta12/makefile	2025-03-21 21:54:23.000000000 -0400
+++ cku416-beta12p/makefile	2025-11-29 13:46:09.889358326 -0500
@@ -184,6 +184,7 @@
 # + "make solaris9g", "make solaris10g" for Solaris 9 or 10 with gcc.
 # + "make solaris11" for Solaris 11 with Sun CC
 # + "make solaris11g" for Solaris 11 with gcc
+# + "make illumos" for illumos (OpenIndiana, OmniOS, etc) with gcc
 # + "make sco_osr600" for SCO OpenServer 6.0.0.
 #
 # For other current OSs such as Solaris, HP-UX, and SCO there are separate
@@ -496,6 +497,7 @@
 # ? for ICL DRS6000 (SPARC) with DRS/NX, "make iclsys5r4"
 # ? for ICL DRS6000 (SPARC) with DRS/NX 4.2MP 7MPlus, "make iclsys5r4m+"
 # ?     Ditto but with IKSD support included, "make iclsys5r4m+iksd"
+# ? for illumos (OpenIndiana, OmniOS, etc) with gcc, "make illumos"
 # ? for Integrated Solutions Inc V8S VME 68020, "make isi"
 # ? for Intel 302 with Bell Tech Sys V/386 R3.2, "make sys5r3"
 # ? for Intel Xenix/286, "make sco286"
@@ -4236,6 +4238,28 @@
 	-lkrb4 -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto \
 	-ldes $(LIBS)"
 
+# illumos distros such as Open Indiana, SunOS 5.11
+# illumos-478476fe3b i86pc i386 i86pc and Omni OS with gcc (tested
+# gcc version 14.3.0 (OpenIndiana 14.3.0-oi-0) ) 64 bit using "gmake".
+#This target is chained to be the secure solaris9g+xxx targets below.
+illumos:
+	@echo 'Making C-Kermit $(CKVER) for illumos with gcc'
+	@case `uname -r` in \
+	  5.9) SOLARISVERSION="-DSOLARIS9" ;; \
+	  5.10) SOLARISVERSION="-DSOLARIS10" ;; \
+	  5.11) SOLARISVERSION="-DSOLARIS11" ;; \
+	  *) SOLARISVERSION="-DSOLARIS" ;; \
+	esac ; \
+	$(MAKE) "MAKE=gmake" CC="gcc -m64" CC2="gcc -m64" xermit \
+	KTARGET=$${KTARGET:-$(@)} \
+	"CFLAGS = -g -O -Usun -DSVR4 $$SOLARISVERSION -DUSE_STRERROR \
+	-DSTERMIOX -DSELECT -DFNFLOAT -DCK_PAM -DCK_SHADOW -funsigned-char \
+	-DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
+	-DPUSH_LDTERM -DPUSH_TTCOMPAT -D__illumos__ \
+	-DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
+	-D_FILE_OFFSET_BITS=64 $(KFLAGS)" \
+	"LIBS= -ltermlib -lsocket -lnsl -lm -lresolv -lpam $(LIBS)"
+
 #Solaris 9, 10, or 11 with gcc...  
 #Uses streams PTYs rather than BSD ptys as in C-Kermit 8.0 and earlier.
 #This target is chained to be the secure solaris9g+xxx targets below.

-- 
PGP Key ID: 781C A3E2 C6ED 70A6 B356  7AF5 B510 542E D460 5CAE
       "The Internet should always be the Wild West!"

Back to comp.protocols.kermit.misc | Previous | NextNext in thread | Find similar


Thread

illumos jayjwa <jayjwa@atr2.ath.cx.invalid> - 2025-11-29 15:11 -0500
  Re: illumos "Jeffrey H. Johnson" <johnsonjh.dev@gmail.com> - 2025-12-02 19:21 +0000
    Re: illumos jayjwa <jayjwa@atr2.ath.cx.invalid> - 2025-12-03 14:25 -0500

csiph-web