linux-mips
[Top] [All Lists]

Re: ABI incompatibility when building util-linux

To: linux-mips@linux-mips.org
Subject: Re: ABI incompatibility when building util-linux
From: Kumba <kumba@gentoo.org>
Date: Thu, 24 Mar 2005 08:48:59 -0500
Cc: Alex Gonzalez <alex.gonzalez@packetvision.com>, debian-mips@lists.debian.org
In-reply-to: <20050324120109.GI8876@hattusa.textio>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1111663536.27220.32.camel@euskadi.packetvision> <20050324120109.GI8876@hattusa.textio>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)
Thiemo Seufer wrote:

n32 means 64bit wide registers and 32bit address space. It runs only on
a 64bit kernel.


A bit off topic, but it reminded me nonetheless. Anyone trying to build a new version of procpcs (>3.4.2) under mips64 will likely need this patch.

Unsure what the reasoning behind this bit was in procps, but it assumes that n32 is usable on a mips64 system (atleast, my understanding of the conditional is that), and thus defines KLONG to long long on mips64, which breaks 'ps' on these systems (you get a nice sigsev).

Thought it'd be useful to pass along.


--Kumba

--
"Such is oft the course of deeds that move the wheels of the world: small hands do them because they must, while the eyes of the great are elsewhere." --Elrond
diff -Naurp procps-3.2.4.orig/proc/procps.h procps-3.2.4/proc/procps.h
--- procps-3.2.4.orig/proc/procps.h     2004-08-20 18:40:13 -0400
+++ procps-3.2.4/proc/procps.h  2005-02-28 10:38:05 -0500
@@ -31,7 +31,7 @@
 //
 // Unknown: PA-RISC and zSeries
 //
-#if defined(k64test) || defined(_ABIN32)
+#if defined(k64test)
 #define KLONG long long    // not typedef; want "unsigned KLONG" to work
 #define KLF "L"
 #define STRTOUKL strtoull
<Prev in Thread] Current Thread [Next in Thread>