I cannot emerge gettext. My Emerge-Wrapper is emergewiz.sh #!/bin/bash export ac_cv_func_calloc_0_nonnull=yes export ac_cv_func_malloc_0_nonnull=yes export gl_cv_func_malloc_0_nonnull=yes export ac_cv_func_realloc_0_nonnull=yes export ac_cv_func_memcmp_working=yes export ac_cv_func_strnlen_working=yes export PKG_CONFIG=/var/cpuburner/linwizard/utils/armv5te-linwizard-linux-gnueabi-pkg-config export PATH=/var/cpuburner/linwizard/utils/:$PATH export CBUILD=$(portageq envvar CHOST) export PORTAGE_CONFIGROOT=/usr/armv5te-linwizard-linux-gnueabi/ export SYSROOT=/usr/armv5te-linwizard-linux-gnueabi/ emerge $@ emergewiz.sh --info Portage 2.1.4.4 (default-linux/arm/2007.0, gcc-4.2.3, glibc-2.5-r4, 2.6.25-tuxonice-r2 i686) ================================================================= System uname: 2.6.25-tuxonice-r2 i686 AMD Athlon(tm) XP 2600+ Timestamp of tree: Mon, 12 May 2008 08:33:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.4 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="arm" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -pipe" CHOST="armv5te-linwizard-linux-gnueabi" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch prelink sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="de_DE.UTF-8" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="arm berkdb bzip2 cli cracklib crypt cups iconv isdnlog midi mudflap ncurses nls nptl nptlonly openmp pcre perl ppds pppd python readline reflection session spl ssl tcpd unicode xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="chips dummy fbdevglint mach64 mga nv r128 radeon s3 s3virge savage sisusb tdfx trident v4l vga voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 152921 [details] build.log
some of the widestring tests arent detecting properly, or they assume the worse when cross-compiling ... can probably be worked around by exporting some configure cache tests
Which cache tests i can export for testing? How is the environment variable for this?
I also have this problem. I tried adding the following to my xmerge wrapper: export gl_cv_header_wchar_h_standalone=no export gt_cv_c_wchar_t=no export ac_cv_header_wchar_h=no export ac_cv_header_wctype_h=no export ac_cv_type_mbstate_t=no However, this just ended up with a different compilation problem. Not sure what else to try setting on behalf of the configure script. As a work-around I'm now trying a slightly modified crossdev that builds the toolchain without nls so that I won't need to xmerge gettext in my ${SYSROOT}.
I thing this is a bug in uClibc it looks for my like not to define mbstate_t if we need it. Someone involved should check this. --- wchar.h.orig 2009-04-12 00:13:45.000000000 +0200 +++ wchar.h 2009-04-12 00:34:19.000000000 +0200 @@ -23,7 +23,7 @@ #ifndef _WCHAR_H -#ifndef __need_mbstate_t +#ifdef __need_mbstate_t # define _WCHAR_H 1 # include <features.h> #endif
the patch for this bug was appeared on the web long time ago. For example, this link: http://svn.exactcode.de/t2/trunk/package/base/gettext/wchar-fix.patch please update the ebuild and include this patch.
(In reply to comment #6) > the patch for this bug was appeared on the web long time ago. For example, this > link: http://svn.exactcode.de/t2/trunk/package/base/gettext/wchar-fix.patch > > please update the ebuild and include this patch. > Thank you! This patch work! ;)
the original bug was against glibc, not uClibc. ignoring that, uClibc's wchar.h works the same as glibc's (because it's largely copied from it in the first place). the patch you point out largely is against gnulib which means it isnt a bug in gettext. i wonder if anyone has posted this to the gnulib lists ...
assuming fixed with gettext-0.18.1.1 as that has a much updated gnulib base