This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]