This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
- From: "allan at archlinux dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Mon, 25 Oct 2010 16:10:26 +0000
- Subject: [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
- Auto-submitted: auto-generated
- References: <bug-11929-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=11929
--- Comment #2 from Allan McRae <allan at archlinux dot org> 2010-10-25 16:10:11 UTC ---
This patch causes some issues when static linking. e.g.:
#include <iconv.h>
#include <stdio.h>
#include <errno.h>
int main () {
iconv_t x;
x = iconv_open ("UTF-8", "UTF-32LE");
printf ("%d\n", errno == EINVAL);
return 0;
}
The iconv_open fails when compiled with -static. Using the workaround in
sysdeps/unix/sysv/linux/getpagesize.c from Fedora git "fixes" the issue:
-#ifdef __ASSUME_AT_PAGESIZE
+#if 0 && defined __ASSUME_AT_PAGESIZE
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.