| Newsgroups |
gmane.linux.lfs.book |
| Message-ID |
<[email protected]> |
#5707: gcc-15.1.0-RC-20250418 (wait for 15.1.0)
-------------------------+-----------------------
Reporter: Xi Ruoyao | Owner: lfs-book
Type: enhancement | Status: new
Priority: normal | Milestone: 12.4
Component: Book | Version: git
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------
Comment (by Xi Ruoyao):
For expect:
{{{#!diff
diff --color -Naur expect5.45.4.orig/exp_clib.c expect5.45.4/exp_clib.c
--- expect5.45.4.orig/exp_clib.c 2025-04-22 11:28:12.307854938
+0800
+++ expect5.45.4/exp_clib.c 2025-04-22 11:22:35.735989675 +0800
@@ -1735,9 +1735,9 @@
int exp_loguser = TRUE; /* if TRUE, user sees interactions
on stdout */
-char *exp_printify();
+char *exp_printify(char *);
int exp_getptymaster();
-int exp_getptyslave();
+int exp_getptyslave(int, int, CONST char *);
#define sysreturn(x) return(errno = x, -1)
diff --color -Naur expect5.45.4.orig/exp_command.h
expect5.45.4/exp_command.h
--- expect5.45.4.orig/exp_command.h 2018-02-03 03:15:52.000000000
+0800
+++ expect5.45.4/exp_command.h 2025-04-22 11:15:02.579293854 +0800
@@ -222,8 +222,8 @@
EXTERN void exp_strftime(char *format, const struct tm
*timeptr,Tcl_DString *dstring);
-#define exp_deleteProc (void (*)())0
-#define exp_deleteObjProc (void (*)())0
+#define exp_deleteProc NULL
+#define exp_deleteObjProc NULL
EXTERN int expect_key;
EXTERN int exp_configure_count; /* # of times descriptors have
been closed */
@@ -321,7 +321,7 @@
EXTERN void exp_init_most_cmds _ANSI_ARGS_((Tcl_Interp *));
EXTERN void exp_init_trap_cmds _ANSI_ARGS_((Tcl_Interp *));
EXTERN void exp_init_interact_cmds _ANSI_ARGS_((Tcl_Interp
*));
-EXTERN void exp_init_tty_cmds();
+EXTERN void exp_init_tty_cmds _ANSI_ARGS_((Tcl_Interp *));
EXTERN ExpState * expStateCheck _ANSI_ARGS_((Tcl_Interp *,ExpState
*,int,int,char *));
EXTERN ExpState * expStateCurrent _ANSI_ARGS_((Tcl_Interp
*,int,int,int));
diff --color -Naur expect5.45.4.orig/exp_main_sub.c
expect5.45.4/exp_main_sub.c
--- expect5.45.4.orig/exp_main_sub.c 2025-04-22 11:28:12.308201129
+0800
+++ expect5.45.4/exp_main_sub.c 2025-04-22 11:17:05.635391610 +0800
@@ -49,8 +49,8 @@
#define NEED_TCL_MINOR 5
char *exp_argv0 = "this program"; /* default program name */
-void (*exp_app_exit)() = 0;
-void (*exp_event_exit)() = 0;
+void (*exp_app_exit) _ANSI_ARGS_((Tcl_Interp *)) = 0;
+void (*exp_event_exit) _ANSI_ARGS_((Tcl_Interp *)) = 0;
FILE *exp_cmdfile = 0;
char *exp_cmdfilename = 0;
int exp_cmdlinecmds = FALSE;
@@ -921,7 +921,6 @@
char file[200];
char *home;
int fd;
- char *getenv();
if ((NULL != (home = getenv("DOTDIR"))) ||
(NULL != (home = getenv("HOME")))) {
diff --color -Naur expect5.45.4.orig/exp_pty.c expect5.45.4/exp_pty.c
--- expect5.45.4.orig/exp_pty.c 2018-02-03 03:15:52.000000000 +0800
+++ expect5.45.4/exp_pty.c 2025-04-22 11:17:41.627176185 +0800
@@ -134,8 +134,8 @@
return(cc);
}
-static RETSIGTYPE (*oldAlarmHandler)();
-static RETSIGTYPE (*oldHupHandler)();
+static RETSIGTYPE (*oldAlarmHandler)(int);
+static RETSIGTYPE (*oldHupHandler)(int);
static time_t current_time; /* time when testing began */
/* if TRUE, begin testing, else end testing */
diff --color -Naur expect5.45.4.orig/exp_trap.c expect5.45.4/exp_trap.c
--- expect5.45.4.orig/exp_trap.c 2018-02-03 03:15:52.000000000
+0800
+++ expect5.45.4/exp_trap.c 2025-04-22 11:19:10.154722359 +0800
@@ -53,7 +53,8 @@
int sigchld_count = 0; /* # of sigchlds caught but not yet processed */
-static int eval_trap_action();
+static int
+eval_trap_action(Tcl_Interp *, int, struct trap *, int);
static int got_sig; /* this records the last signal received
*/
/* it is only a hint and can be wiped out
*/
diff --color -Naur expect5.45.4.orig/exp_tty.c expect5.45.4/exp_tty.c
--- expect5.45.4.orig/exp_tty.c 2018-02-03 03:15:52.000000000 +0800
+++ expect5.45.4/exp_tty.c 2025-04-22 11:12:33.066206967 +0800
@@ -572,7 +572,7 @@
char **argv)
{
int result = TCL_OK;
- RETSIGTYPE (*old)(); /* save old sigalarm handler */
+ RETSIGTYPE (*old)(int); /* save old sigalarm handler */
#define MAX_ARGLIST 10240
int i;
diff --color -Naur expect5.45.4.orig/exp_win.h expect5.45.4/exp_win.h
--- expect5.45.4.orig/exp_win.h 2018-02-03 03:15:52.000000000 +0800
+++ expect5.45.4/exp_win.h 2025-04-22 11:21:03.990362077 +0800
@@ -8,8 +8,8 @@
#include <tcl.h> /* For _ANSI_ARGS_ */
-int exp_window_size_set();
-int exp_window_size_get();
+int exp_window_size_set _ANSI_ARGS_ ((int));
+int exp_window_size_get _ANSI_ARGS_ ((int));
void exp_win_rows_set _ANSI_ARGS_ ((char* rows));
char* exp_win_rows_get _ANSI_ARGS_ ((void));
diff --color -Naur expect5.45.4.orig/pty_termios.c
expect5.45.4/pty_termios.c
--- expect5.45.4.orig/pty_termios.c 2025-04-22 11:28:12.308329068
+0800
+++ expect5.45.4/pty_termios.c 2025-04-22 11:23:56.897369591 +0800
@@ -206,7 +206,7 @@
{
#define MAX_ARGLIST 10240
char buf[MAX_ARGLIST]; /* overkill is easier */
- RETSIGTYPE (*old)(); /* save old sigalarm handler */
+ RETSIGTYPE (*old)(int); /* save old sigalarm handler */
int pid;
old = signal(SIGCHLD, SIG_DFL);
@@ -266,7 +266,7 @@
{
#define MAX_ARGLIST 10240
char buf[MAX_ARGLIST]; /* overkill is easier */
- RETSIGTYPE (*old)(); /* save old sigalarm handler */
+ RETSIGTYPE (*old)(int); /* save old sigalarm handler */
#ifdef STTY_READS_STDOUT
sprintf(buf,"%s %s > %s",STTY_BIN,s,name);
}}}
https://www.linuxfromscratch.org/patches/downloads/expect/expect-5.45.4-gcc15-1.patch
(including the changes from -gcc14-1.patch).
--
Ticket URL: <https://wiki.linuxfromscratch.org/lfs/ticket/5707#comment:11>
LFS Trac <https://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page