This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: vi and glibc 2.12: Assertion `_rtld_global_ro._dl_pagesize != 0
- From: Arkadiusz Miskiewicz <arekm at maven dot pl>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: libc-alpha at sourceware dot org,"H.J. Lu" <hjl dot tools at gmail dot com>,libc-help at sourceware dot org
- Date: Sat, 22 May 2010 19:09:11 +0200
- Subject: Re: vi and glibc 2.12: Assertion `_rtld_global_ro._dl_pagesize != 0
- References: <201005132108.47735.arekm@maven.pl> <201005220851.29312.arekm__48573.0371474803$1274544373$gmane$org@maven.pl> <m2fx1jq5la.fsf@igel.home>
On Saturday 22 of May 2010, Andreas Schwab wrote:
> Arkadiusz Miskiewicz <arekm@maven.pl> writes:
> >> > [arekm@carme-pld ~]$ gcc a.c -static
> >> > /home/users/arekm/tmp/ccedPM2o.o: In function `main':
> >> > a.c:(.text+0xa): warning: Using 'getpwnam' in statically linked
> >> > applications requires at runtime the shared libraries from the glibc
> >> > version used for linking
> >
> > a.out built in 1) and 2) environments works in these but fails on my
> > glibc 2.12 env.
>
> See above, you must run the statically linked binary in the same
> environment that you used for linking.
Right. gcc 4.4.4 test:
[arekm@carme-pld ~]$ ~/test/gcc-test/bin/gcc --version
gcc (GCC) 4.4.4
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[arekm@carme-pld ~]$ ~/test/gcc-test/bin/gcc a.c -static
/home/users/arekm/tmp/cczel8cJ.o: In function `main':
a.c:(.text+0xa): warning: Using 'getpwnam' in statically linked applications
requires at runtime the shared libraries from the glibc version used for
linking
[arekm@carme-pld ~]$ ./a.out
a.out: ../sysdeps/unix/sysv/linux/getpagesize.c:32: __getpagesize: Assertion
`_rtld_global_ro._dl_pagesize != 0' failed.
zsh: abort ./a.out
--
Arkadiusz MiÅkiewicz PLD/Linux Team
arekm / maven.pl http://ftp.pld-linux.org/