Trailing comma in enum for 3.2.3p1

Albert Chin openssh-unix-dev at thewrittenword.com
Wed Jun 5 10:00:48 EST 2002


A trailing comma in an enum generates an error with the IBM C
compiler, xlc, on AIX 4.3.2:

$ gmake
...
xlc -O2 -qmaxmem=-1 -qarch=com -I/opt/TWWfsw/tcpwrap/include -I. -I.
-I/opt/TWWfsw/libopenssl09s/include -I/opt/TWWfsw/zlib11s/include
-DSSHDIR=\"/etc/opt/TWWfsw/openssh323\"
-D_PATH_SSH_PROGRAM=\"/opt/TWWfsw/openssh323/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/opt/TWWfsw/openssh323/libexec/ssh-askpass\"
-D_PATH_SFTP_SERVER=\"/opt/TWWfsw/openssh323/libexec/sftp-server\"
-D_PATH_SSH_PIDDIR=\"/etc\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\"
-DSSH_RAND_HELPER=\"/opt/TWWfsw/openssh323/libexec/ssh-rand-helper\"
-DHAVE_CONFIG_H -c kex.c
"monitor.h", line 53.25: 1506-275 (S) Unexpected text ',' encountered.
gmake: *** [kex.o] Error 1

The patch below fixes this.

-- 
albert chin (china at thewrittenword.com)

-- snip snip
--- monitor.h.orig	Tue Jun  4 18:49:51 2002
+++ monitor.h	Tue Jun  4 18:49:58 2002
@@ -50,7 +50,7 @@
 	MONITOR_REQ_RSACHALLENGE, MONITOR_ANS_RSACHALLENGE,
 	MONITOR_REQ_RSARESPONSE, MONITOR_ANS_RSARESPONSE,
 	MONITOR_REQ_PAM_START,
-	MONITOR_REQ_TERM,
+	MONITOR_REQ_TERM
 };
 
 struct mm_master;
--- log.h.orig	Tue Jun  4 17:51:55 2002
+++ log.h	Tue Jun  4 17:52:03 2002
@@ -33,7 +33,7 @@
 	SYSLOG_FACILITY_LOCAL5,
 	SYSLOG_FACILITY_LOCAL6,
 	SYSLOG_FACILITY_LOCAL7,
-	SYSLOG_FACILITY_NOT_SET = -1,
+	SYSLOG_FACILITY_NOT_SET = -1
 }       SyslogFacility;
 
 typedef enum {
@@ -45,7 +45,7 @@
 	SYSLOG_LEVEL_DEBUG1,
 	SYSLOG_LEVEL_DEBUG2,
 	SYSLOG_LEVEL_DEBUG3,
-	SYSLOG_LEVEL_NOT_SET = -1,
+	SYSLOG_LEVEL_NOT_SET = -1
 }       LogLevel;
 
 void     log_init(char *, LogLevel, SyslogFacility, int);



More information about the openssh-unix-dev mailing list