because uclibc missing error_print_progname function and have one buggy(?) header Reproducible: Always Steps to Reproduce: 1.setup uclibc chroot envrinment 2.emerge gettext
Created attachment 147351 [details] first half of solution snatched from buildroot.
Created attachment 147353 [details] second half of solution a patch by me i'm not familar with gettext sources, but this dirty hack seems to solves gettext-against-uclibc compilation problem
discobook ~ # gcc -v Using built-in specs. Target: i586-gentoo-linux-uclibc Configured with: /var/tmp/portage/sys-devel/gcc-4.2.3/work/gcc-4.2.3/configure --prefix=/usr --bindir=/usr/i586-gentoo-linux-uclibc/gcc-bin/4.2.3 --includedir=/usr/lib/gcc/i586-gentoo-linux-uclibc/4.2.3/include --datadir=/usr/share/gcc-data/i586-gentoo-linux-uclibc/4.2.3 --mandir=/usr/share/gcc-data/i586-gentoo-linux-uclibc/4.2.3/man --infodir=/usr/share/gcc-data/i586-gentoo-linux-uclibc/4.2.3/info --with-gxx-include-dir=/usr/lib/gcc/i586-gentoo-linux-uclibc/4.2.3/include/g++-v4 --host=i586-gentoo-linux-uclibc --build=i586-gentoo-linux-uclibc --disable-altivec --disable-nls --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --with-arch=i586 --enable-languages=c,c++,treelang --enable-shared --enable-threads=posix --disable-__cxa_atexit --enable-target-optspace --enable-clocale=uclibc --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion=Gentoo 4.2.3 p1.0 Thread model: posix gcc version 4.2.3 (Gentoo 4.2.3 p1.0)
discobook ~ # emerge --info Portage 2.1.4.4 (uclibc/x86, gcc-4.2.3, uclibc-0.9.29-r0, 2.6.24-gentoo-r3 i686) ================================================================= System uname: 2.6.24-gentoo-r3 i686 unknown Timestamp of tree: Tue, 25 Mar 2008 20:47:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-lang/python: 2.5.1-r5 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r1 sys-devel/automake: 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.24 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i586-gentoo-linux-uclibc" CFLAGS="-march=i586 -O2 -pipe" CHOST="i586-gentoo-linux-uclibc" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=i586 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo ftp://pandemonium.tiscali.de/pub/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror" LANG="ru_RU.UTF-8" LINGUAS="en ru" MAKEOPTS="-j3" PKGDIR="/root/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" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi cli dbus dri hal iconv midi mudflap nls openmp reflection session spl truetype uclibc unicode x86 xorg" ALSA_CARDS="cs5535audio" 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="uclibc" INPUT_DEVICES="evdev keyboardmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" USERLAND="GNU" VIDEO_CARDS="fbdev" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Being that nls is use.masked having gettext is pretty moot under uclibc.
cat /etc/portage/profile/use.mask -iconv -nls cat /etc/portage/profile/packages -<dev-libs/glib-2.5 I need it to emerge xorg-x11 :E
*** Bug 250814 has been marked as a duplicate of this bug. ***
(In reply to comment #7) > *** Bug 250814 has been marked as a duplicate of this bug. *** > I added the two patch files and tried to emerge gettext again. But I still get the same errors! see bug 250814
I dont think #250814 is duplicating this. Both bugs uClibc + gettext related, but compilation errors (and hence reasons of that errors) differs. P.S. Why you dont adding my patches to portage? At least one of them have 'noble origin' :)
*** Bug 328235 has been marked as a duplicate of this bug. ***
Created attachment 238707 [details] saved custom config uclibc w/ iconv support USE=savedconfig emerge uclibc make -j2 headers MKDIR include/bits You do not have a codesets.txt file. Please create this file in the ./extra/locale directory by running something like: cd ./extra/locale/ && find charmaps -name "*.pairs" > \ extra/locale/codesets.txt and then edit that file to disable/enable the codesets you wish to support. make: *** [extra/locale/codesets.txt] Error 1 make: *** Waiting for unfinished jobs....
When I create codesets.txt and locales.txt it's failed with next error: GEN extra/locale/c8tables.h setlocale(LC_CTYPE,"en_US.UTF-8") failed! make: *** [extra/locale/c8tables.h] Error 1 make: *** Waiting for unfinished jobs....
*** Bug 328287 has been marked as a duplicate of this bug. ***
uclibc support in Gentoo has been removed.