GNU bug report logs - #9396
make fails with undefined reference to '__sched_cpucount'

Previous Next

Package: coreutils;

Reported by: "Feuerbacher, Alan" <AFeuerbacher <at> ALLEGROMICRO.com>

Date: Sun, 28 Aug 2011 23:17:01 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 9396-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: "Feuerbacher\, Alan" <AFeuerbacher <at> ALLEGROMICRO.com>,
	9396-done <at> debbugs.gnu.org
Subject: Re: bug#9396: make fails with undefined reference to
	'__sched_cpucount'
Date: Tue, 13 Sep 2011 11:43:52 +0200
tags 9396 notabug
thanks

Paul Eggert wrote:
> On 08/28/11 14:59, Feuerbacher, Alan wrote:
>> I tracked the problem down to the fact that the RHEL5 system uses
>> /lib64/libc.so.6
>> which apparently is version 2.5 of the GNU C Library,
>> but this version does not contain "__sched_cpucount" - whatever that is.
>> Apparently only version 2.6 and later contain this stuff.
>
> It sounds like you're compiling with glibc 2.6 headers but linking
> to glibc 2.5.  If so, that'd be a definite no-no; you need to configure
> and build with <= 2.5 headers if you're going to link with 2.5.
>
> I expect that it's the 2.6 headers that #define CPU_COUNT and bring
> in a reference to __sched_cpucount.

Thanks for the report.
Since we haven't heard back from you, I presume that
Paul's diagnosis was correct and have thus closed this bug.
If not, please let us know.




This bug report was last modified 13 years and 335 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.