🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.rc
2 messages
2 total messages Started by Sebastien Bacher Mon, 12 Oct 2026 09:20
Bug#1114069: blimps: FTBFS: blksort.c:228:19: error: too many arguments to function 'read_config'; expected 0, have 3
#418
Author: Sebastien Bacher
Date: Mon, 12 Oct 2026 09:20
95 lines
4933 bytes
This is a multi-part MIME message sent by reportbug.


--===============7177970193237233593==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Source: blimps
Followup-For: Bug #1114069
X-Debbugs-Cc: seb128@ubuntu.com
Control: tags -1 ftbfs

Hi,

One more change is needed on 32-bit architectures with 64-bit time_t
(armhf): blimps/p2clib.c passes a "long" to time(), localtime() and ctime()
in TimeStamp(), VAXdate() and VAXtime(). With 64-bit time_t that's the wrong
type (time() writes 8 bytes into a 4-byte variable), and gcc-15 rejects it:

  p2clib.c:817:10: error: passing argument 1 of 'time' from incompatible pointer type [-Wincompatible-pointer-types]

The attached p2clib-time_t.patch switches those variables to time_t. With it
and the three changes from my previous message, the whole tree compiles for
armhf. (Debian doesn't currently build blimps on armhf since it's non-free,
but the bug is real on any 32-bit architecture with 64-bit time_t.)

Ubuntu upload: blimps 3.9+ds-4ubuntu2.

Thanks,
Sebastien Bacher


-- System Information:
Debian Release: forky/sid
  APT prefers resolute-updates
  APT policy: (500, 'resolute-updates'), (500, 'resolute-security'), (500, 'resolute'), (100, 'resolute-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 7.0.0-38-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

--===============7177970193237233593==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="p2clib-time_t.patch"

Description: Use time_t for the time() result in p2clib
 TimeStamp(), VAXdate() and VAXtime() pass a "long" to time(), localtime()
 and ctime(). On 32-bit architectures with 64-bit time_t (e.g. armhf) this
 is the wrong type: time() writes 8 bytes into a 4-byte variable, and gcc-15
 rejects it with -Wincompatible-pointer-types. Use time_t.
Author: Sebastien Bacher <seb128@ubuntu.com>
Forwarded: https://bugs.debian.org/1114069
Last-Update: 2026-10-12

Index: blimps-3.9+ds/blimps/p2clib.c
===================================================================
--- blimps-3.9+ds.orig/blimps/p2clib.c
+++ blimps-3.9+ds/blimps/p2clib.c
@@ -812,7 +812,7 @@ int *Day, *Month, *Year, *Hour, *Min, *S
 {
 #ifndef NO_TIME
     struct tm *tm;
-    long clock;
+    time_t clock;
 
     time(&clock);
     tm = localtime(&clock);
@@ -830,7 +830,7 @@ int *Day, *Month, *Year, *Hour, *Min, *S
 Void VAXdate(s)
 char *s;
 {
-    long clock;
+    time_t clock;
     char *c;
     int i;
     static int where[] = {8, 9, 0, 4, 5, 6, 0, 20, 21, 22, 23};
@@ -846,7 +846,7 @@ char *s;
 Void VAXtime(s)
 char *s;
 {
-    long clock;
+    time_t clock;
     char *c;
     int i;
 

--===============7177970193237233593==--
Processed: Re: blimps: FTBFS: blksort.c:228:19: error: too many arguments to function 'read_config'; expected 0, have 3
#419
Author: Debian Bug Tracking System
Date: Mon, 12 Oct 2026 09:20
12 lines
2199 bytes
Processing control commands:

> tags -1 ftbfs
Bug #1114069 [src:blimps] blimps: FTBFS: blksort.c:228:19: error: too many arguments to function 'read_config'; expected 0, have 3
Ignoring request to alter tags of bug #1114069 to the same tags previously set

-- 
1114069: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1114069
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads