-DSTARTTLS -DDANE -DSASL=2 -DTCPWRAPPERS -DNIS -DMAP_REGEX -DSOCKETMAP
conf.c:4078:20: error: conflicting types for `hosts_ctl'; have
`int(void)'
/usr/include/tcpd.h:128:12: note: previous declaration of
`hosts_ctl' with type `int(char *, char *, char *, char *)'
Another patch for testing (anyone using gcc 15? please give
it a try and provide feedback)
diff --git a/sendmail/conf.c b/sendmail/conf.c
@@ -4114,7 +4114,7 @@ validate_connection(sap, hostname, e)
#if TCPWRAPPERS
char *host;
char *addr;
- extern int hosts_ctl();
+ extern int hosts_ctl __P((char *, char *, char *, char *));
#endif /* TCPWRAPPERS */
if (tTd(48, 3))
diff --git a/sendmail/conf.c b/sendmail/conf.c
- extern int hosts_ctl();
+ extern int hosts_ctl __P((char *, char *, char *, char *));
I do use gcc 15.2. The patch above seems to make the compiler going and produces an initially good binary:
The patch, however, was applied on a different line (4078 instead of
4117) of the conf.c file. Maybe yours is already a newer snapshot?
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 17:46:00 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
4 files (8,203K bytes) |
| Messages: | 184,414 |
| Posted today: | 1 |