Source: dcl
Version: 7.5.2-3
Severity: serious
Tags: ftbfs patch

https://buildd.debian.org/status/logs.php?pkg=dcl&ver=7.5.2-3

...
dateq3.c: In function ‘dateq3_’:
dateq3.c:20:10: error: passing argument 1 of ‘time’ from incompatible pointer 
type [-Wincompatible-pointer-types]
   20 |     time(&tp);
      |          ^~~
      |          |
      |          long int *
In file included from /usr/include/features.h:523,
                 from /usr/include/time.h:25,
                 from dateq3.c:8:
/usr/include/time.h:85:15: note: expected ‘time_t *’ {aka ‘long long int *’} 
but argument is of type ‘long int *’
   85 | extern time_t __REDIRECT_NTH (time, (time_t *__timer), __time64);
      |               ^~~~~~~~~~~~~~
dateq3.c:21:21: error: passing argument 1 of ‘localtime’ from incompatible 
pointer type [-Wincompatible-pointer-types]
   21 |     lt = *localtime(&tp);
      |                     ^~~
      |                     |
      |                     long int *
/usr/include/time.h:141:19: note: expected ‘const time_t *’ {aka ‘const long 
long int *’} but argument is of type ‘long int *’
  141 | extern struct tm *__REDIRECT_NTH (localtime, (const time_t *__timer),
      |                   ^~~~~~~~~~~~~~
make[4]: *** [../../../Mkinclude:20: dateq3.o] Error 1
...
timeq3.c: In function ‘timeq3_’:
timeq3.c:20:10: error: passing argument 1 of ‘time’ from incompatible pointer 
type [-Wincompatible-pointer-types]
   20 |     time(&tp);
      |          ^~~
      |          |
      |          long int *
In file included from /usr/include/features.h:523,
                 from /usr/include/time.h:25,
                 from timeq3.c:8:
/usr/include/time.h:85:15: note: expected ‘time_t *’ {aka ‘long long int *’} 
but argument is of type ‘long int *’
   85 | extern time_t __REDIRECT_NTH (time, (time_t *__timer), __time64);
      |               ^~~~~~~~~~~~~~
timeq3.c:21:21: error: passing argument 1 of ‘localtime’ from incompatible 
pointer type [-Wincompatible-pointer-types]
   21 |     lt = *localtime(&tp);
      |                     ^~~
      |                     |
      |                     long int *
/usr/include/time.h:141:19: note: expected ‘const time_t *’ {aka ‘const long 
long int *’} but argument is of type ‘long int *’
  141 | extern struct tm *__REDIRECT_NTH (localtime, (const time_t *__timer),
      |                   ^~~~~~~~~~~~~~
make[4]: *** [../../../Mkinclude:20: timeq3.o] Error 1
...



A fix is attached.
From: Adrian Bunk <[email protected]>
Date: Jan, 24 2026 15:08:42 +0000
Subject: Fix FTBFS with GCC 15 on 32-bit with 64-bit time_t

--- dcl-7.5.2.orig/src/misc1/datelib/dateq3.c
+++ dcl-7.5.2/src/misc1/datelib/dateq3.c
@@ -14,7 +14,7 @@ void dateq3_(DCL_INT *iy, DCL_INT *im, D
 void DATEQ3(DCL_INT *iy, DCL_INT *im, DCL_INT *id)
 #endif
 {
-    long tp;
+    time_t tp;
     struct tm lt;
 
     time(&tp);
--- dcl-7.5.2.orig/src/misc1/timelib/timeq3.c
+++ dcl-7.5.2/src/misc1/timelib/timeq3.c
@@ -14,7 +14,7 @@ void timeq3_(DCL_INT *ih, DCL_INT *im, D
 void TIMEQ3(DCL_INT *ih, DCL_INT *im, DCL_INT *is)
 #endif
 {
-    long tp;
+    time_t tp;
     struct tm lt;
 
     time(&tp);

Reply via email to