🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.rc
Article #418

Bug#1114069: blimps: FTBFS: blksort.c:228:19: error: too many arguments to function 'read_config'; expected 0, have 3

#418
From: 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==--
Technical Details
Message-ID: <NNkml-52ZD-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod
References: <LrJcv-d3DX-37@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From: Sebastien Bacher <seb128@ubuntu.com>
Newsgroups: linux.debian.bugs.rc
Subject: Bug#1114069: blimps: FTBFS: blksort.c:228:19: error: too many arguments to function 'read_config'; expected 0, have 3
Date: Mon, 12 Oct 2026 11:20:01 +0200
Message-ID: <NNkml-52ZD-3@gated-at.bofh.it>
References: <LrJcv-d3DX-37@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org  Mon Oct 12 09:15:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: Sebastien Bacher <seb128@ubuntu.com>, 1114069@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: seb128@ubuntu.com, debian-med-packaging@lists.alioth.debian.org
X-Debian-Pr-Message: followup 1114069
X-Debian-Pr-Package: src:blimps
X-Debian-Pr-Keywords: forky ftbfs sid
X-Debian-Pr-Source: blimps
Content-Type: multipart/mixed; boundary="===============7177970193237233593=="
MIME-Version: 1.0
X-Mailer: reportbug 13.2.0+ubuntu1
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/834296
List-ID: <debian-bugs-rc.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-rc/>
Approved: robomod@news.nic.it
Lines: 95
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 12 Oct 2026 11:12:53 +0200
X-Original-Message-ID: <179179637323.51262.3430741391538809332.reportbug@seb128-ThinkPad-T16>
X-Original-References: <E1uuayT-0041bI-1K@paradis.debian.org>