NetBSD Problem Report #61089
From www@netbsd.org Sun Nov 29 12:59:56 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 87E881A923B
for <gnats-bugs@gnats.NetBSD.org>; Sun, 29 Nov 2026 12:59:56 +0000 (UTC)
Message-Id: <20261129125955.478311A923D@mollari.NetBSD.org>
Date: Sun, 29 Nov 2026 12:59:55 +0000 (UTC)
From: nia@pkgsrc.org
Reply-To: nia@pkgsrc.org
To: gnats-bugs@NetBSD.org
Subject: dosbox, dosbox-x fail to start on netbsd/i386
X-Send-Pr-Version: www-1.0
X-From4GNATS: "nia@pkgsrc.org via gnats" <gnats-admin@NetBSD.org>
>Number: 61089
>Category: pkg
>Synopsis: dosbox, dosbox-x fail to start on netbsd/i386
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 29 13:00:00 +0000 2026
>Last-Modified: Sun Nov 29 13:10:02 +0000 2026
>Originator: nia
>Release: any recent netbsd/i386 combined with any recent pkgsrc
>Organization:
The NetBSD fPICdation
>Environment:
>Description:
originally reported here:
https://old.reddit.com/r/NetBSD/comments/1y83ssr/dosbox_segmentation_fault_on_netbsd_111_i386/
dosbox uses non position independent assembler code on i386,
this makes it fail to start on netbsd/i386 with the infamous
"text relocations" error.
>How-To-Repeat:
- install dosbox in an i386 vm
- attempt to start dosbox
- observe no dosbox appearing
>Fix:
# avoid text relocations
.if ${MACHINE_PLATFORM:MNetBSD-*-i386}
CONFIGURE_ARGS+= --disable-fpu-x86
CONFIGURE_ARGS+= --disable-dynamic-x86
.endif
the full dynarec doesn't seem to need to be disabled, which
is good.
>Audit-Trail:
From: "Nia Alarie" <nia@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/61089 CVS commit: pkgsrc/emulators/dosbox
Date: Sun, 29 Nov 2026 13:07:13 +0000
Module Name: pkgsrc
Committed By: nia
Date: Sun Nov 29 13:07:13 UTC 2026
Modified Files:
pkgsrc/emulators/dosbox: Makefile
Log Message:
dosbox: Avoid runtime text relocations on NetBSD/i386
PR pkg/61089 dosbox, dosbox-x fail to start on netbsd/i386
To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 pkgsrc/emulators/dosbox/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Nia Alarie" <nia@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/61089 CVS commit: pkgsrc/emulators/dosbox-x
Date: Sun, 29 Nov 2026 13:08:06 +0000
Module Name: pkgsrc
Committed By: nia
Date: Sun Nov 29 13:08:06 UTC 2026
Modified Files:
pkgsrc/emulators/dosbox-x: Makefile
Log Message:
dosbox-x: Avoid runtime text relocations on NetBSD/i386
PR pkg/61089 dosbox, dosbox-x fail to start on netbsd/i386
To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 pkgsrc/emulators/dosbox-x/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.