weird sparc64/-current issue!? (p7zip)

From: Juergen Lock <nox_at_jelal.kn-bremen.de>
Date: Sat, 1 Sep 2007 18:56:53 +0200
Hi!

 alepulver made me aware of this,
	http://pointyhat.freebsd.org/errorlogs/sparc64-7-latest-logs/mame-extras-0.114.log
-8624 CPU(s)? :)  It works on 6,
	http://pointyhat.freebsd.org/errorlogs/sparc64-6-latest-logs/mame-extras-0.114.log
altho that was using an earlier p7zip version...  The code that gets
the number of cpus seems to be in work/p7zip*/CPP/Windows/System.cpp
in the /usr/ports/archivers/p7zip dir (after make patch):

[...]
		UInt32 GetNumberOfProcessors() {
		  		int nbcpu = 1;
			size_t value;
			size_t len = sizeof(value);
			if (sysctlbyname("hw.ncpu", &value, &len, NULL, 0) == 0)
				nbcpu = value;
			return nbcpu;
		}
[...]

 I don't have a sparc64 box, could this have something to do with 7z's
use of shared libs, like sparc64 now needs -fPIC like amd64 and ia64 too?
(just run 7z l and 7za l on some tarball, that should be enough to find out,
7za has its 7z libs linked statically.)

 If anyone has other insights/can debug this I'd be grateful too...

 Thanx,
	Juergen

PS: I'm not subscribed on -sparc64 so please Cc me if you remove
-current from the Cc.
Received on Sat Sep 01 2007 - 15:18:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:17 UTC