Hi David

we have report a bug at openwrt.org:
 https://dev.openwrt.org/ticket/8413


so far we manual copy the patch to gettext/patches/:
  cp /200-fix-localename.c:2619-error.patch 
./feeds/packages/libs/gettext/patches/

attach is the patch.


we use one package name "triggersad" for handle the poweroff button. 
the miniam configure doesn't include the "triggersad" package. :(

On 12/13/2010 04:10 PM, David Kuehling wrote:
> Hi,
> 
> compilation with config.full_system currently fails at gettext:
> 
> ../libtool: line 46: -c: command not found
> libtool: compile:  mipsel-openwrt-linux-uclibc-gcc -c 
> -DLOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/share/locale\" 
> -DLIBDIR=\"/usr/lib\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL 
> -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/lib\" -DNO_XMALLOC 
> -Dset_relocation_prefix=libintl_set_relocation_prefix 
> -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. 
> -I.. 
> -I/home/pub/spock/src/qi/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include
>  
> -I/home/pub/spock/src/qi/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.30.1/include
>  
> -I/home/pub/spock/src/qi/openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include
>  
> -I/home/pub/spock/src/qi/openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/include
>  -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float 
> -fpic -fvisibility=hidden ./localename.c  -fPIC -DPIC -o .libs/localename.o
> ./localename.c: In function '_nl_locale_name_thread_unsafe':
> ./localename.c:2619: error: dereferencing pointer to incomplete type
> make[7]: *** [localename.lo] Error 1
> make[7]: Leaving directory 
> `/home/pub/spock/src/qi/openwrt-xburst/build_dir/target-mipsel_uClibc-0.9.30.1/gettext-0.18.1.1/gettext-runtime/intl'
> make[6]: *** [all-recursive] Error 1
> make[6]: Leaving directory 
> `/home/pub/spock/src/qi/openwrt-xburst/build_dir/target-mipsel_uClibc-0.9.30.1/gettext-0.18.1.1/gettext-runtime'
> make[5]: *** [all] Error 2
> make[5]: Leaving directory 
> `/home/pub/spock/src/qi/openwrt-xburst/build_dir/target-mipsel_uClibc-0.9.30.1/gettext-0.18.1.1/gettext-runtime'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory 
> `/home/pub/spock/src/qi/openwrt-xburst/build_dir/target-mipsel_uClibc-0.9.30.1/gettext-0.18.1.1'
> make[3]: *** 
> [/home/pub/spock/src/qi/openwrt-xburst/build_dir/target-mipsel_uClibc-0.9.30.1/gettext-0.18.1.1/.built]
>  Error 2
> make[3]: Leaving directory 
> `/home/pub/spock/src/qi/openwrt-xburst/feeds/packages/libs/gettext'
> make[2]: *** [package/feeds/packages/gettext/compile] Error 2
> make[2]: Leaving directory `/home/pub/spock/src/qi/openwrt-xburst'
> make[1]: *** 
> [/home/pub/spock/src/qi/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.30.1/stamp/.package_compile]
>  Error 2
> make[1]: Leaving directory `/home/pub/spock/src/qi/openwrt-xburst'
> make: *** [world] Error 2
> 
> compiling config.minimal still works, though.  With config.minimal, the
> powerbutten currently is not working (cannot switch the nanonote off).
> 
> David
> 
> 
> 
> _______________________________________________
> Qi Hardware Discussion List
> Mail to list (members only): [email protected]
> Subscribe or Unsubscribe: 
> http://lists.en.qi-hardware.com/mailman/listinfo/discussion


-- 
Best Regards
Xiangfu
-- Qi RSS feed, http://en.qi-hardware.com/feed/rss20.xml --
diff --git a/gettext-runtime/intl/localename.c b/gettext-runtime/intl/localename.c
index 89a9692..5e86bc4 100644
--- a/gettext-runtime/intl/localename.c
+++ b/gettext-runtime/intl/localename.c
@@ -2607,7 +2607,7 @@ gl_locale_name_thread_unsafe (int category, const char *categoryname)
     locale_t thread_locale = uselocale (NULL);
     if (thread_locale != LC_GLOBAL_LOCALE)
       {
-#  if __GLIBC__ >= 2
+#  if __GLIBC__ >= 2 && !defined __UCLIBC__
         /* Work around an incorrect definition of the _NL_LOCALE_NAME macro in
            glibc < 2.12.
            See <http://sourceware.org/bugzilla/show_bug.cgi?id=10968>.  */
diff --git a/gettext-tools/gnulib-lib/localename.c b/gettext-tools/gnulib-lib/localename.c
index dab5e5b..85149ac 100644
--- a/gettext-tools/gnulib-lib/localename.c
+++ b/gettext-tools/gnulib-lib/localename.c
@@ -2607,7 +2607,7 @@ gl_locale_name_thread_unsafe (int category, const char *categoryname)
     locale_t thread_locale = uselocale (NULL);
     if (thread_locale != LC_GLOBAL_LOCALE)
       {
-#  if __GLIBC__ >= 2
+#  if __GLIBC__ >= 2 && !defined __UCLIBC__
         /* Work around an incorrect definition of the _NL_LOCALE_NAME macro in
            glibc < 2.12.
            See <http://sourceware.org/bugzilla/show_bug.cgi?id=10968>.  */
_______________________________________________
Qi Hardware Discussion List
Mail to list (members only): [email protected]
Subscribe or Unsubscribe: 
http://lists.en.qi-hardware.com/mailman/listinfo/discussion

Reply via email to