* [Linux-ia64] That getpagesize() problem again!
@ 2001-01-25 10:26 Francis Galiegue
2001-01-25 11:20 ` Andreas Schwab
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Francis Galiegue @ 2001-01-25 10:26 UTC (permalink / raw)
To: linux-ia64
When trying to install only two packages via RPM in a chroot, this is what I
get:
rpm: ../sysdeps/unix/sysv/linux/ia64/getpagesize.c:36: __getpagesize: Assertion
`_dl_pagesize != 0'
failed.
Then, abort and core dump.
What I'd like to know is why, in the glibc file mentioned in the error,
__getpagesize is defined as such:
int
__getpagesize ()
{
assert (_dl_pagesize != 0);
return _dl_pagesize;
}
(that's glibc 2.2.1, but 2.2 exhibits the same behaviour)
This looks all the more strange that you can define the page size during kernel
compile! A sample test program which I made using the getpagesize() syscall
yields the correct value, though...
What should I do?
--
Francis Galiegue, fg@mandrakesoft.com
"Programming is a race between programmers, who try and make more and more
idiot-proof software, and universe, which produces more and more remarkable
idiots. Until now, universe leads the race" -- R. Cook
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Linux-ia64] That getpagesize() problem again!
2001-01-25 10:26 [Linux-ia64] That getpagesize() problem again! Francis Galiegue
@ 2001-01-25 11:20 ` Andreas Schwab
2001-01-25 14:25 ` Jes Sorensen
2001-01-25 15:34 ` Francis Galiegue
2 siblings, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2001-01-25 11:20 UTC (permalink / raw)
To: linux-ia64
Francis Galiegue <fg@mandrakesoft.com> writes:
|> When trying to install only two packages via RPM in a chroot, this is what I
|> get:
|>
|> rpm: ../sysdeps/unix/sysv/linux/ia64/getpagesize.c:36: __getpagesize: Assertion
|> `_dl_pagesize != 0'
|> failed.
|>
|> Then, abort and core dump.
|>
|> What I'd like to know is why, in the glibc file mentioned in the error,
|> __getpagesize is defined as such:
|>
|> int
|> __getpagesize ()
|> {
|> assert (_dl_pagesize != 0);
|> return _dl_pagesize;
|> }
|>
|> (that's glibc 2.2.1, but 2.2 exhibits the same behaviour)
|>
|> This looks all the more strange that you can define the page size during kernel
|> compile! A sample test program which I made using the getpagesize() syscall
|> yields the correct value, though...
If the getpagesize syscall works, then your kernel is too old.
|> What should I do?
You need to run kernel 2.4.0-test9 with the 001030 patch or later.
Earlier versions didn't pass AT_PAGESZ in all cases.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Linux-ia64] That getpagesize() problem again!
2001-01-25 10:26 [Linux-ia64] That getpagesize() problem again! Francis Galiegue
2001-01-25 11:20 ` Andreas Schwab
@ 2001-01-25 14:25 ` Jes Sorensen
2001-01-25 15:34 ` Francis Galiegue
2 siblings, 0 replies; 4+ messages in thread
From: Jes Sorensen @ 2001-01-25 14:25 UTC (permalink / raw)
To: linux-ia64
>>>>> "Andreas" = Andreas Schwab <schwab@suse.de> writes:
|> What should I do?
Andreas> You need to run kernel 2.4.0-test9 with the 001030 patch or
Andreas> later. Earlier versions didn't pass AT_PAGESZ in all cases.
Actually the problem is that Francis' rpm binaries have been compiled
and linked statically against an old version of glibc that didn't get
the pagesize from AT_PAGESZ.
Francis you need to get a proper set of RPM binaries for your machines
linked against the new library.
Jes
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Linux-ia64] That getpagesize() problem again!
2001-01-25 10:26 [Linux-ia64] That getpagesize() problem again! Francis Galiegue
2001-01-25 11:20 ` Andreas Schwab
2001-01-25 14:25 ` Jes Sorensen
@ 2001-01-25 15:34 ` Francis Galiegue
2 siblings, 0 replies; 4+ messages in thread
From: Francis Galiegue @ 2001-01-25 15:34 UTC (permalink / raw)
To: linux-ia64
On 25 Jan 2001, Jes Sorensen wrote:
>
> |> What should I do?
>
> Andreas> You need to run kernel 2.4.0-test9 with the 001030 patch or
> Andreas> later. Earlier versions didn't pass AT_PAGESZ in all cases.
>
> Actually the problem is that Francis' rpm binaries have been compiled
> and linked statically against an old version of glibc that didn't get
> the pagesize from AT_PAGESZ.
>
> Francis you need to get a proper set of RPM binaries for your machines
> linked against the new library.
>
Uhwell, I compiled against glibc 2.2.1...
Anyway, I'm going to reboot under 2.4.0 + patch and see if this cures the
problem... More info later...
--
Francis Galiegue, fg@mandrakesoft.com
"Programming is a race between programmers, who try and make more and more
idiot-proof software, and universe, which produces more and more remarkable
idiots. Until now, universe leads the race" -- R. Cook
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-01-25 15:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-25 10:26 [Linux-ia64] That getpagesize() problem again! Francis Galiegue
2001-01-25 11:20 ` Andreas Schwab
2001-01-25 14:25 ` Jes Sorensen
2001-01-25 15:34 ` Francis Galiegue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox