vi and glibc 2.12: Assertion `_rtld_global_ro._dl_pagesize != 0
Arkadiusz Miskiewicz
arekm@maven.pl
Sat May 22 18:56:00 GMT 2010
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/
More information about the Libc-alpha
mailing list