MLDonkey Forum Index
Homepage •  Bugs •  Tasks •  Patches •  SF.net Project Page •  ChangeLog •  German forum •  Links •  Wiki •  Downloads
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
MlDonkey on NetworkedMediaTank
Goto page 1, 2  Next
 
Post new topic   Reply to topic    MLDonkey Forum Index -> Alternative platforms
View previous topic :: View next topic  
Author Message
Gregory
neophyte


Joined: 23 Sep 2010
Posts: 25
Location: Belarus, Minsk

PostPosted: Wed Sep 29, 2010 7:21 pm    Post subject: MlDonkey on NetworkedMediaTank Reply with quote

Hello All,
I'm tried to use MlDonkey on NetworkedMediaTank aka NMT Egreat M34A.
(http://www.networkmediatank.net/egreat-egm34a-network-media-tank)
I've downloaded experimental mipsel binaries 3.0.2.CVS and got it working Thank you very much to Fabtar and all MlDonkey development team! I've interested with DC (direct connect) network only.

However, I got troubles with russian. I've read all posts relted to this (primarilly http://forum.qnap.com/viewtopic.php?f=87&t=654&start=135).
I've installed i18n support and export LANG=en_US.utf8 as well as LANGUAGE and LC_ALL. However, MlDonkey at start wrote:
2010/09/29 19:03:40 [cO] Starting MLDonkey 3.0.2.CVS ...
2010/09/29 19:03:40 [cO] Language EN, locale ANSI_X3.4-1968, ulimit for open files 1024
2010/09/29 19:03:40 [cO] MLDonkey is working in /share/tools/MlDonkey/.mldonkey
2010/09/29 19:03:40 [Gettext] Loading language resource mlnet_strings.en_US.utf8
2010/09/29 19:03:41 [cO] loaded language resource file

So, as I see, Mldonkey "see" locale in effect (Loading language resource mlnet_strings.en_US.utf8) but uses locale locale ANSI_X3.4-1968.
No idea what's wrong, could you please help?

Thank you in advance,
Gregory
Back to top
View user's profile Send private message
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 4001
Location: Germany

PostPosted: Wed Sep 29, 2010 7:34 pm    Post subject: Re: MlDonkey on NetworkedMediaTank Reply with quote

Gregory wrote:
2010/09/29 19:03:40 [cO] Language EN, locale ANSI_X3.4-1968

Check with strace which files MLDonkey can not find during startup.
_________________
Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks
Back to top
View user's profile Send private message
Gregory
neophyte


Joined: 23 Sep 2010
Posts: 25
Location: Belarus, Minsk

PostPosted: Wed Sep 29, 2010 9:25 pm    Post subject: Reply with quote

Thank you! However, strace also need to be installed, did it)
I see:
open("/usr/share/locale/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/share/system/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=256360, ...}) = 0
old_mmap(NULL, 256360, PROT_READ, MAP_PRIVATE, 7, 0) = 0x2ad60000
close(7) = 0
munmap(0x2ad60000, 256360) = 0
open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=256360, ...}) = 0
old_mmap(NULL, 256360, PROT_READ, MAP_PRIVATE, 7, 0) = 0x2ad60000
close(7) = 0
munmap(0x2ad60000, 256360) = 0
open("/share/system/usr/lib/locale/en_US/LC_CTYPE", O_RDONLY) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=221648, ...}) = 0
old_mmap(NULL, 221648, PROT_READ, MAP_PRIVATE, 7, 0) = 0x2ad60000
close(7) = 0
munmap(0x2ad60000, 221648) = 0
open("/usr/lib/locale/en_US/LC_CTYPE", O_RDONLY) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=221648, ...}) = 0
old_mmap(NULL, 221648, PROT_READ, MAP_PRIVATE, 7, 0) = 0x2ad60000
close(7) = 0
munmap(0x2ad60000, 221648) = 0
open("/share/system/usr/lib/locale/en.utf8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en.utf8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/share/system/usr/lib/locale/en/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
gettimeofday({1285794852, 369763}, NULL) = 0
stat64(0x2aac16a0, 0x7fdcc928) = -1 ENOENT (No such file or directory)

# ls -l /share/system/usr/lib/locale/en_US.utf8
-rw-r--r-- 1 nmt nmt 155 Sep 3 21:18 LC_ADDRESS
-rw-r--r-- 4 nmt nmt 1163682 Sep 3 21:05 LC_COLLATE
-rw-r--r-- 5 nmt nmt 256360 Sep 3 21:05 LC_CTYPE
-rw-r--r-- 1 nmt nmt 373 Sep 3 21:18 LC_IDENTIFICATION
-rw-r--r-- 1 nmt nmt 23 Sep 3 21:16 LC_MEASUREMENT
drwxr-xr-x 2 nmt nmt 4096 Sep 29 15:22 LC_MESSAGES
-rw-r--r-- 1 nmt nmt 286 Sep 3 21:18 LC_MONETARY
-rw-r--r-- 2 nmt nmt 77 Sep 3 21:14 LC_NAME
-rw-r--r-- 2 nmt nmt 54 Sep 3 21:06 LC_NUMERIC
-rw-r--r-- 1 nmt nmt 34 Sep 3 21:16 LC_PAPER
-rw-r--r-- 1 nmt nmt 59 Sep 3 21:18 LC_TELEPHONE
-rw-r--r-- 1 nmt nmt 2454 Sep 3 21:18 LC_TIME

/share/system/usr/lib/locale/en_US.utf8 pointed by LOCPATH, also /share/system/usr/lib/locale linked to /usr/lib/locale

No idea why MlDonkey don't accept LC_CTYPE

Gregory
Back to top
View user's profile Send private message
Gregory
neophyte


Joined: 23 Sep 2010
Posts: 25
Location: Belarus, Minsk

PostPosted: Thu Sep 30, 2010 7:23 am    Post subject: compiled locales and glibc do not match? Reply with quote

probably compiled locales do not match with code? I've found that the compiled locale format was recently changed... would check this guess today evening
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 610

PostPosted: Thu Sep 30, 2010 11:34 am    Post subject: Reply with quote

Try en_US.UTF-8.

Code:

$ cat /usr/share/i18n/SUPPORTED | grep en_US
en_US.UTF-8 UTF-8
en_US ISO-8859-1
en_US.ISO-8859-15 ISO-8859-15
Back to top
View user's profile Send private message Visit poster's website
Gregory
neophyte


Joined: 23 Sep 2010
Posts: 25
Location: Belarus, Minsk

PostPosted: Thu Sep 30, 2010 6:21 pm    Post subject: en_US.utf8 accepted Reply with quote

Thank you very much, en_US.utf8 accepted:
2010/09/30 18:03:09 [cO] Language EN, locale UTF-8, ulimit for open files 1024

now I got correct filenames in the list Very Happy
but chat messages and usernames remains wrong Sad
DC Hub uses single-byte cp1251, so I've defined default_encoding = CP1251 in directconnect.ini.
I guess, MlDonkey tries to interpret usernames and messages as UTF-8:
user name "ДИМА" (4-characters CP1251) shown as 2 chinese hieroglyphe...

Anyway, with your help I got a significant progress - I still can't communicate but able to share files!

Gregory
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 610

PostPosted: Fri Oct 01, 2010 7:58 am    Post subject: Reply with quote

Quote:
en_US.utf8 accepted

So, what was the solution to make it work?

Quote:
I've downloaded experimental mipsel binaries 3.0.2.CVS

Quote:
but chat messages and usernames remains wrong
DC Hub uses single-byte cp1251, so I've defined default_encoding = CP1251 in directconnect.ini.

For default_encoding to work correctly you need version 3.0.3 at least, or 3.0.2 with the following patches :
7180: DC: better encoding handling (commited 2010/05/23)
7249: DC: fix parsing MyINFO with non-latin nicks (commited 2010/07/18)

Alternatively, if you want to use old mldonkey version - run it with CP1251 locale.
Back to top
View user's profile Send private message Visit poster's website
Gregory
neophyte


Joined: 23 Sep 2010
Posts: 25
Location: Belarus, Minsk

PostPosted: Fri Oct 01, 2010 8:56 am    Post subject: Reply with quote

ygrek wrote:
So, what was the solution to make it work?

I've replaced locale referred in article http://forum.qnap.com/viewtopic.php?f=87&t=654&start=135 to the official locale package (mipsel platform)

Now I'd like to replace experimental mipsel binaries 3.0.2.CVS with offical mipsel lenny release 3.0.3 taken from here http://packages.debian.org/sid/net/mldonkey-server
Will do it today evening, when come back home.

Thank you,
Gregory
Back to top
View user's profile Send private message
Gregory
neophyte


Joined: 23 Sep 2010
Posts: 25
Location: Belarus, Minsk

PostPosted: Sat Oct 02, 2010 8:14 pm    Post subject: need help with 3.0.3 Reply with quote

Unfortunately I still can't get MlDonkey 3.0.3 working Sad I've installed all packages manually (ar -x ... then gzip -d ... then tar xvf ...). I've installed all declared dependencies but 3.0.3 mlnet fails with "file not found".
Could you please give any advice?

Also tried 3.0.2 CVS with ru_RU.CP1251:
2010/10/02 20:08:43 [cO] Starting MLDonkey 3.0.2.CVS ...
2010/10/02 20:08:43 [cO] Language RU, locale CP1251, ulimit for open files 1024
2010/10/02 20:08:43 [cO] MLDonkey is working in /share/tools/MlDonkey/.mldonkey
2010/10/02 20:08:43 [Gettext] Loading language resource mlnet_strings.ru_RU.cp1251
2010/10/02 20:08:43 [cO] loaded language resource file
...
2010/10/02 20:08:44 [dMain] Self-test failed, charset conversion disabled.
...
2010/10/02 20:08:48 [dMain] Core started
then I got the same behavior as described above for en_US.UTF8. I guess the problem caused by failed code conversion support... Any idea what's missed?

Thank you,
Gregory
[/b]
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 610

PostPosted: Mon Oct 04, 2010 2:18 pm    Post subject: Reply with quote

Yep, something is awfully broken :)
Show the output of buildinfo (mldonkey command).
Is iconv linked statically or dynamically? Show the output of ldd $(which mlnet).
Is CP1251 present in the output of iconv -l?
Back to top
View user's profile Send private message Visit poster's website
Gregory
neophyte


Joined: 23 Sep 2010
Posts: 25
Location: Belarus, Minsk

PostPosted: Tue Oct 05, 2010 10:25 pm    Post subject: Got 3.0.3 working))) Reply with quote

Got 3.0.3 working on Mediatank, chat messages and user names fine now).

I guess I use mixture of different libraries, so I've removed all and started from scratch, carefully installing all 3.0.3 dependencies one-by-one
(about 20 packages) and got a success!

Thank you,
Gregory
Back to top
View user's profile Send private message
Balamutick
user


Joined: 19 Oct 2008
Posts: 233
Location: Russia, Saint-Peterburg city

PostPosted: Tue Oct 05, 2010 10:47 pm    Post subject: Re: Got 3.0.3 working))) Reply with quote

Gregory wrote:
nstalling all 3.0.3 dependencies one-by-one (about 20 packages) and got a success!

You my HERO ! Laughing
Super Hero: Captain Dependencies Laughing
Congratulations. Very Happy Cool
_________________
Russian community Mldonkey. Русское сообщество MLdonkey.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Gregory
neophyte


Joined: 23 Sep 2010
Posts: 25
Location: Belarus, Minsk

PostPosted: Wed Oct 06, 2010 8:45 pm    Post subject: Reply with quote

Quote:
Super Hero: Captain Dependencies Laughing

Very Happy Certainly, there should be a better way... Probably would be better to make debian installer working on NMT rather than install each package manually... Official MlDonkey 3.0.3 built with shared libraries, static build like Fabtar's 3.0.3CVS installed much more easy...
Back to top
View user's profile Send private message
Gregory
neophyte


Joined: 23 Sep 2010
Posts: 25
Location: Belarus, Minsk

PostPosted: Thu Oct 07, 2010 9:10 am    Post subject: core fails to start on real big share Reply with quote

After few successful tests I've tried to start with full shared content - over 80000 files >500Gb total Shocked
Program starts but message "Core started" do not appears after 6 hours (leaved this running overnight). Seems, Mldonkey tries to validate shared_files_dc.ini ? Any idea? Surprised

IMHO - I really can't understand what a benefit of those specific "*.ini" files, especially shared_files_dc.ini. DC networks uses ".xml" to represent file lists, so MlDonkey should create such file anyway! why not use files.xml immediately instead of shared_files_dc.ini ? Question
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 610

PostPosted: Thu Oct 07, 2010 3:25 pm    Post subject: Reply with quote

I presume you have some files with non-latin symbols in name? If so, this is a known bug and it was fixed in 3.0.5 (patch #7302) :)
See http://mldonkey.sourceforge.net/phpBB2/viewtopic.php?p=30486#30486 for detective story.
_________________
Download | Report bugs | git mirror
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    MLDonkey Forum Index -> Alternative platforms All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Sourceforge.net Logo