**** BEGIN LOGGING AT Sun Mar 15 02:59:57 2009 Mar 15 04:30:08 hello everyone Mar 15 04:31:19 not sure if I'm on right channel, but I need some information about package building Mar 15 04:32:05 what I am trying to do is to build proftpd with --enable-nls function, which I succeeded on my ubuntu Mar 15 04:32:59 and my target platform is ddwrt/asus-wl500w Mar 15 04:33:36 then I discovered that my target doesn't have locale dir :( Mar 15 04:34:26 after some research I couldn't find localedef package or anything that would help me to define couple locales Mar 15 04:35:22 any idea how to incorporate locale? Mar 15 04:55:08 getting this when iconv_open is called: Mar 15 04:55:11 error opening conversion handle from 'utf8' to 'cp1251': Invalid argument Mar 15 05:04:17 acidsqlit: have you installed libiconv? Mar 15 05:11:38 yea, here is what I got: Use of libiconv is deprecated. Use gconv-modules instead Mar 15 05:11:54 installed gconv-modules, but not sure what I should do after Mar 15 05:12:12 root@acid-wl500w:~# ipkg-opt install gconv-modules Mar 15 05:12:12 Installing gconv-modules (2.2.5-7) to /opt/... Mar 15 05:12:12 Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/gconv-modules_2.2.5-7_mipsel.ipk Mar 15 05:12:12 Configuring gconv-modules Mar 15 05:12:12 Successfully terminated. Mar 15 05:13:10 restarted proftpd, but same error on iconv_open Mar 15 05:22:21 hmm, i thought ddwrt uses uclibc, so it should enable libiconv instead Mar 15 05:23:33 you can try build libiconv and install it Mar 15 05:23:40 and see if that helps Mar 15 05:25:02 any easy way to force build? cuz it won't build now Mar 15 05:28:30 edit your local platforms/packages-ddwrt.mk, add libiconv to SPECIFIC_PACKAGES Mar 15 05:32:00 03bzhou * r9741 10optware/trunk/make/lftp.mk: lftp: 3.7.8 -> 3.7.9 Mar 15 05:33:05 ok, got .ipk file, installing... Mar 15 05:39:03 you probably also need to rebuild proftpd ipk to use libiconv Mar 15 05:39:44 do an libiconv-stage before rebuilding proftpd Mar 15 05:44:23 ok, just made "make libiconv-stage" Mar 15 05:44:47 now just make proftpd-dirclean and then make proftpd-ipk ? Mar 15 05:46:44 yep Mar 15 05:48:15 hmm oki :) Mar 15 05:52:21 root@acid-wl500w:~# /opt/sbin/proftpd -V Mar 15 05:52:21 Bus error Mar 15 05:54:56 when you enabled nls, how did proftpd find libiconv before? Mar 15 05:56:33 haven't done anything special... Mar 15 05:57:12 I guess I had no libiconv before Mar 15 05:57:53 I'll try to uninstall libiconv now Mar 15 05:58:54 or no need? iconv works well Mar 15 05:59:14 root@acid-wl500w:~# iconv --version Mar 15 05:59:14 iconv (GNU libiconv 1.11) Mar 15 05:59:31 so in that configuration, uclibc includes iconv function Mar 15 06:00:06 but why did it give "invalid argument" error? Mar 15 06:00:32 sorry I misled you into adding libiconv and libconv-stage in your build Mar 15 06:00:36 because there is no locale I wrote before Mar 15 06:00:48 locale is missing :) Mar 15 06:00:58 it's ok Mar 15 06:01:53 invalid argument means somehow it couldn't find encodings I specify as arguments, I guess... Mar 15 06:01:57 you'll probably do some cleanup of your ddwrt/staging directory to undo libiconv-stage Mar 15 06:02:35 ok, can you look in ddwrt package feed, for locale packages? Mar 15 06:02:44 how to do cleanup in staging? Mar 15 06:03:38 i don't think ddwrt uclibc knows how to find locales installed by optware gconv-modules Mar 15 06:04:04 couldn't find any file installed after gconv-modules... Mar 15 06:04:05 easiest is to nuke staging/, and rebuild Mar 15 06:04:42 ah, it's an empty package Mar 15 06:05:00 yes most likely it's some dummy Mar 15 06:06:19 so back to original question - how to install locales? :) Mar 15 06:08:07 what gconv-modules package does on glibc platforms, is to copy from toolchain/.../lib directory locale-name.so files Mar 15 06:10:01 doing a search of "find toolchain/ -name ISO8859-8.so" under ddwrt yields nothing Mar 15 06:10:38 well, even if I by some magic build those .so files, how to make proftpd to use them? Mar 15 06:11:00 locale is not only those .so files I believe, it's also ../locale dir structure Mar 15 06:11:01 i guess you'll need to understand more about how uclibc with iconv configured finds locale files Mar 15 06:13:19 basically iconv functions are residing inside of ulibc for this platform? Mar 15 06:14:09 yeah, that's my understanding right now Mar 15 06:14:23 I see... things are not simple here Mar 15 06:14:54 so as far as proftpd is concerned, iconv support is ready Mar 15 06:15:08 yes Mar 15 06:15:24 just need to setup locales on my router Mar 15 06:15:49 uclibc needs to provide more locale data so you can call iconv Mar 15 06:16:38 google on "uclibc localedata" Mar 15 06:17:28 yea, checking... Mar 15 06:19:10 it's probably some buildroot options Mar 15 06:19:27 http://www.uclibc.org/downloads/uClibc-locale-030818.tgz Mar 15 06:19:45 hope it's easy.. Mar 15 06:20:13 found locale_data.c there Mar 15 06:21:15 but these are .c and .h Mar 15 06:21:17 moreover, found encodings I'm interested in like CP1251 Mar 15 06:21:44 i don't suppose uClibc can use these at runtime Mar 15 06:22:13 yea not runtime, even if I have to rebuild ulibc it's ok Mar 15 06:23:09 hopefully it's generating some data file or .so files Mar 15 06:35:56 but... maybe it's easier to make proftpd use libiconv instead of using uClibc iconv? Mar 15 09:30:59 strange. uclibc already has UCLIBC_HAS_LOCALE=y and UCLIBC_PREGENERATED_LOCALE_DATA=y Mar 15 09:32:46 but still not sure why it doesn't work to cooperate with proftpd and provide encodings Mar 15 09:34:26 it does accept ASCII encoding though Mar 15 10:09:01 oh finally solved... Mar 15 16:06:55 03bzhou * r9742 10optware/trunk/make/distcc.mk: distcc: 3.0 -> 3.1 Mar 15 16:45:48 03bzhou * r9743 10optware/trunk/ (16 files in 3 dirs): native toolchain for optware/wdtv Mar 15 16:48:15 03bzhou * r9744 10optware/trunk/platforms/packages-wdtv.mk: packages-wdtv: added native toolchain packages Mar 15 17:12:48 03bzhou * r9745 10optware/trunk/sources/gcc/4.0.4/ (9 files): gcc 4.0.4 patches, re-commit Mar 15 18:13:22 03bzhou * r9746 10optware/trunk/sources/gcc/4.0.4/120-libstdc++-pic.patch: gcc 4.0.4 libstdc++-pic patch, backported from 4.2 Mar 15 21:11:54 03bzhou * r9747 10optware/trunk/make/unrar.mk: unrar: 3.7.8 -> 3.8.5 **** ENDING LOGGING AT Mon Mar 16 02:59:57 2009