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 
 
New release: MLDonkey 2.7.2

 
Post new topic   Reply to topic    MLDonkey Forum Index -> Development
View previous topic :: View next topic  
Author Message
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 3982
Location: Germany

PostPosted: Thu Jan 05, 2006 2:50 am    Post subject: New release: MLDonkey 2.7.2 Reply with quote

Code:
2006/01/05: version 2.7.2 = tag release-2-7-2
4764: Patch for MLDonkey-compiled Ocaml-3.09.1 to fix GTK1 oldgui compile
4763: Compile patch for GTK1 oldgui with Ocaml 3.09.1
Ocaml 3.09.1 has a bug which prevents compiling GTK1 oldgui.
A patch can be found here: http://caml.inria.fr/mantis/view.php?id=3948

2006/01/04
4761: Insert glibc version in archives build by release targets
4760: Allow use of Ocaml 3.09.1
      MLDonkey can now be compiled with Ocaml 3.08.3/4, 3.09.0/1
      Default for MLDonkey-compiled Ocaml is now 3.09.1
4759: Configure: Improve gcc check
4757: Compile patches for MorphOS (Christian Rosentreter)
4748: HTML: Allow rename of files with '#', '&' and '%',
      remove invalid chars from filenames depending on OS (thx to pango)
4756: HTML: Print build- and runinfo on main page,
      fix reload bug when changing html_mods/html_themes (Knocker)

2006/01/03
4751: Ease use of messages_filter option (pango)
4753: Allow upper case MD4 for ed2k-links in mldonkey_submit (fcrozat)
4754: New parameter --auth for mldonkey_command (plf team)

2006/01/02
4749: GUI: send shared sub_files to gui (zet)

2006/01/01
4712: Change terminal color for command line from blue to cyan (romildo)
4742: Log: remove verbosity "tor" & "file", improve verbosity "verb"
4743: EDK: Print "File is already shared" when trying to start downloading
      an already shared file
4744: Split client_timeout into ED2K-client_timeout and BT-client_timeout,
      increase BT-client_timeout to 90 (tradie)
4745: Update config.guess and config.sub to version 2005-12-23

2005/12/28
4725: Check if ulimit is sufficient for MLDonkey,
      auto-adjust max_opened_connections
* moved ED2K-max_indirect_connections to downloads.ini
* max_indirect_connections is now a %-value of max_opened_connections
* minimum ulimit for open files is now 150 (most systems have 1024),
  MLDonkey will refuse to start if ulimit is lower
* minimum max_opened_connections is now 75
* reduced max_concurrent_downloads from 60 to 50
* minimum ulimit -n 150 is used like this:
  - 75 max_opened_connections
  - 50 downloading files
  - 5 upload slots
  - 20 fd as reserve for ini files
4704: Fix some C compile warnings (schlumpf)
4739: Fix some cross-compiling obstacles, remove Ocaml 3.08.2 compatability
* Cross-compiling is only possible with a correct Ocaml toolchain
* MLDonkey can not build this Ocaml toolchain
* This patch only fixes some autoconf checks
4735: MinGW: pause before core exit because of existing Pid file
4736: New commands: sysinfo, runinfo and diskinfo
* removed temp_directory and core_directory from shares command output
* new commands sysinfo, runinfo and diskinfo
* buildinfo now prints only buildinfo
* runinfo prints run-time information
* new command diskinfo prints filesystem data about temp_directory,
  core_directory and all shared dirs
* sysinfo prints buildinfo, runinfo and diskinfo alltogether
4712: Change terminal color for downloading files from blue to cyan (romildo)

2005/12/24
4732: Log: More infos for verbosity = " verb"

2005/12/21
4728: fix date format (zet)
4730: BT: parse path.utf-8 (zet)

2005/12/19
4726: New option space_overhead to adjust garbage collection (bogeyman)
4724: Windows: 10 seconds pause when core start fails
      to make error messages readable

2005/12/18
4723: New build target: make ocamldoc (pango)
4721: Log: Improve output for verbosity "verb", remove verbosity "hid"

2005/12/17
4719: Fix linking of dp500 (pango)
4715: OV: Improve searching, longer ov timeout, some more bugfixes (bogeyman)
4718: Fix bug which prevented proper write to files introduced in patch #4694
4717: EDK: Removed unused variable file_md4s_to_register (bogeyman)

2005/12/16
4703: BT: Deactivate dead trackers,
      re-enable them if no active trackers are found (pango)
4708: HTML upstats: Enable preview for shared files
4652: dllink: reject EDK files > 4GB, print access errors for .torrent files

2005/12/15
      Removed orphaned files:
      src/networks/donkey/donkeyFiles.mli
      src/networks/donkey/donkeyInteractive.mli
      src/networks/donkey/donkeyMain.mli
4710: Re-add some protocol information as comments removed by patch 4694
4709: Fix zip file extract broken due to patch 4694 (Ocaml 3.09)
4707: Fix recover_temp broken by patch 4674 (force_download)

2005/12/14
4706: EDK: Remove donkeyChunks, use commonSwarming for op_file_check
4702: Correct timezone in e-mail, nicer uptime, timezone and uptime in runinfo
4694: Fix lots of compile warnings in Ocaml 3.09
4705: Update config.guess and config.sub to version 2005-11-11
      Mozilla MLdonkey Protocol Handler updated to version 1.7

2005/12/13
      Removed orphaned files:
      src/networks/fasttrack/fasttrack.ml
      src/networks/gnutella/gnutella1.ml
      src/networks/gnutella/gnutella.ml
      src/networks/gnutella/gnutellaScheduler.ml
      src/networks/gnutella/gnutellaZlib.ml
      src/networks/gnutella2/g2Scheduler.mlt
      src/networks/gnutella2/gnutella2.ml
4700: Log: New verbosity option "gui" to debug GUI protocol
4696: Fix some C compiler warnings

2005/12/10
4687: Compile fix for Ocaml 3.09.0 (gildor), MLDonkey can now be compiled
      with Ocaml 3.08.[2,3,4] and Ocaml 3.09.x (4687_min2.patch)
4693: Compile patch in sha1.c for FreeBSD (lioux)
4689: Catch exception in file_completed_cmd to let commit complete
4691: file_completed_cmd: $DURATION in seconds (debonair)

_________________
Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks


Last edited by spiralvoice on Sun Jan 29, 2006 3:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
fabtar
Sage


Joined: 04 Feb 2004
Posts: 1575
Location: Italy

PostPosted: Thu Jan 05, 2006 12:08 pm    Post subject: Reply with quote

Whay does this mean exacltly:

Quote:
* minimum max_opened_connections is now 75
* reduced max_concurrent_downloads from 60 to 50


I suppose this is the number of efective downloaders (givin' data to us).
This choice 'll limit the maximum dwnload bandwith to 50*3Kbytes/sec =150Kbytes/sec

This consideration is due to the average emule's upload behaviour givin' about 3Kbytes/slot.
edit:I fear this will cause a download bottleneck of 150Kbytes/sec

I think you can set this value related to "current" max_opened_connection
edit:The bottleneck'll be related to the connection limit.

Hope I'm right, am I?

Cheers
Back to top
View user's profile Send private message
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 3982
Location: Germany

PostPosted: Thu Jan 05, 2006 1:33 pm    Post subject: Reply with quote

fabtar wrote:
Whay does this mean exacltly:
Quote:
* minimum max_opened_connections is now 75
* reduced max_concurrent_downloads from 60 to 50

max_concurrent_downloads means the number of downloading *files*
which can be active at the same time.
A file can have several downloaders at the same time so your assumption is wrong.

Default for max_opened_connections stays at 200, but there are OS like
NetBSD and OpenBSD which allow only ~100 open connections as default.
This is too low for MLDonkey to function well so I introduced a *minimum* of
150 file descriptors (connections, opened files) required for MLDonkey.
Quote:
* minimum ulimit -n 150 is used like this:
- 75 max_opened_connections
- 50 downloading files
- 5 upload slots
- 20 fd as reserve for ini files

MLdonkey refuses to start if ulimit < 150, on Windows and most Linux
system its default is 1024, so you donīt have to worry about it.

The main reason to write this patch was that users with 1024 file descriptors
(Linux standard) used MLDonkey with max_opened_connections 30000
and were wondering why MLDonkey paused downloads, threw CryptoPP errors
and so on. When MLdonkey used 900+ connections MLDonkey could not
open downloading files anymore to write data to them - thats the reason
the download paused - and other weird stuff.

A setting of max_opened_connections which is higher than the
allowed ulimit is automatically lowered to a reasonable value. In order to
not lowering it to 0 I introduced a minimum of 75 max_opened_connections.
_________________
Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks
Back to top
View user's profile Send private message
jormartr
neophyte


Joined: 25 Sep 2004
Posts: 28
Location: Spain

PostPosted: Thu Jan 05, 2006 1:51 pm    Post subject: Reply with quote

to Spiralvoice:

2.7.2 is not still on your precompiled cores site. Waiting for it, it has a lot of changes that seem very good Very Happy to mldonkey.
Back to top
View user's profile Send private message
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 3982
Location: Germany

PostPosted: Thu Jan 05, 2006 2:56 pm    Post subject: Reply with quote

jormartr wrote:
2.7.2 is not still on your precompiled cores site.

My page will undergo some reconstruction due to move to Sourceforge for
file distribution. A precompiled Linux core can be found here:
http://sourceforge.net/project/showfiles.php?group_id=156414
_________________
Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks


Last edited by spiralvoice on Fri Jan 06, 2006 11:31 am; edited 1 time in total
Back to top
View user's profile Send private message
fabtar
Sage


Joined: 04 Feb 2004
Posts: 1575
Location: Italy

PostPosted: Thu Jan 05, 2006 8:20 pm    Post subject: Reply with quote

[quote="spiralvoice"]
max_concurrent_downloads means the number of downloading *files*
which can be active at the same time.
A file can have several downloaders at the same time so your assumption is wrong.
Quote:


Ok, thanks for deep explanations.Very interesting indeed!!!
I perfectly undertood the motivations and I find your default very resonable.

Keep doing the good work!!
Cheers
Back to top
View user's profile Send private message
Rebel2k
user


Joined: 03 Feb 2005
Posts: 58
Location: Germany

PostPosted: Fri Jan 06, 2006 9:18 am    Post subject: Reply with quote

well I solved my problems wih the new ocaml version and now there is a new SuSe binaries out @

http://mldonkey.dyndns.info/index.php?dir=MLDonkey/2.7.2/

hf
best regards
Rebel2k
Back to top
View user's profile Send private message
The_Countess
neophyte


Joined: 19 Mar 2003
Posts: 29
Location: NL

PostPosted: Thu Jan 12, 2006 9:39 am    Post subject: Reply with quote

this is just a small mostly comsetic thing
but i upgraded from 2.7.1 to 2.7.2 but i kept my statistics file.

and now in the "total uptime" it says 75% of all connection were with trusted mld. and emule only has 5% and 2%. (im guessing the 2 have been switched)
in session uptime everything is normal.
Back to top
View user's profile Send private message
Rebel2k
user


Joined: 03 Feb 2005
Posts: 58
Location: Germany

PostPosted: Mon Jan 16, 2006 8:27 am    Post subject: Reply with quote

latest CVS :

Quote:
2006/01/15
4797: EDK: Always put server connect requests in connection queue,
whether max_opened_connections is reached or not
Connection will be established later when a socket is available

2006/01/14
4796: Windows: Log proper warning when MaxUserPort is reached (thx to Enig)
4795: Mailer: Fix Subject encoding (bogeyman)
4716: BT: new command "tracker" to add trackers (bogeyman)

2006/01/12
4792: GeoIP: Add license (distrib/GeoIP_LICENSE.txt, runinfo)
This product includes GeoLite data created by MaxMind,
available from http://maxmind.com/
4776: EDK: Avoid LowID if max_indirect_connections is reached (thx to zet)
4787: EDK: Show server version (ported from Mulus - thx to Knocker),
disconnect blocked server after loading IP blocklist

2006/01/11
4790: Some logging stuff
4781: Disconnect connected server before removing
4782: Configure: Replace AC_CHECK_FILE with "test -d" to allow cross-compile

2006/01/09
4770: Change file opening mechanism, open rw only when needed (pango)
new verbosity option "file" to control Unix32 file handling
4777: Display IP:port for LowID clients, GUI protocol update (zet)


source: http://mldonkey.dyndns.info/misc/mldonkey-2.7.2-CVS-01-16-06.tar.gz
static: http://mldonkey.dyndns.info/misc/mldonkey-2.7.2.CVS.static.i686-Linux_glibc-2.3.2.tar.bz2

Exclamation Please test and report here! Exclamation
_________________
MLDonkey / Mulus File Archive @ http://mldonkey.dyndns.info
UNIX is like a wigwam: no windows, no gates, apache inside, stable.
Back to top
View user's profile Send private message
Cain_
neophyte


Joined: 18 Jan 2006
Posts: 4
Location: USA

PostPosted: Wed Jan 18, 2006 3:01 am    Post subject: Problems compiling on OS X 10.4.3 PPC Reply with quote

Hi,

I was trying to compile the 2.7.2 release branch on OS X 10.4.3 PPC with ocaml version 3.09.0 and I keep getting a make error:

src/utils/lib/tiger.c: In function 'tiger_unsafe_string':
src/utils/lib/tiger.c:846: warning: pointer targets in initialization differ in signedness
src/utils/lib/tiger.c:847: warning: pointer targets in initialization differ in signedness

g++ -fno-omit-frame-pointer -o src/utils/lib/CryptoPP.o "-I/opt/local/lib/ocaml" -c src/utils/lib/CryptoPP.cc
src/utils/lib/CryptoPP.cc: In member function `virtual void CryptoPP::InvertibleRSAFunction::GenerateRandom(CryptoPP::RandomNumberGenerator&, const CryptoPP::NameValuePairs&)':
src/utils/lib/CryptoPP.cc:7905: error: cannot allocate an object of abstract type 'CryptoPP::NameValuePairs'
src/utils/lib/CryptoPP.h:609: note: because the following virtual functions are pure within 'CryptoPP::NameValuePairs':
src/utils/lib/CryptoPP.h:690: note: virtual bool CryptoPP::NameValuePairs::GetVoidValue(const char*, const std::type_info&, void*) const
make: *** [src/utils/lib/CryptoPP.o] Error 1



Any Ideas how to get it to compile?

Thanks!
Back to top
View user's profile Send private message
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 3982
Location: Germany

PostPosted: Wed Jan 18, 2006 9:48 am    Post subject: Reply with quote

http://forum.amule.org/print.php?threadid=5951&page=1&sid=903307f52f4370378193bb3aeef72b53
Quote:
Hi,
to compile cryptopp i switched the version of gcc to 3.3, tiger uses for default the 4.0 and
cryptopp with the 4.0 doesen't compile.

http://forum.hydranode.com/showthread.php?tid=47&page=2
Quote:
The CryptoPP code is borrowed from another library, and initial review of the broken code did not reveal any quick solutions.

A short-term solution for compilation is to switch to using GCC 3.3 on Tiger until a proper solution is implemented.

To compile with GCC 3.3, do the following:
Code:
CXX="gcc3" ./configure && make


or enter the following in terminal:
Code:
sudo gcc_select 3.3


To later switch back to GCC 4.0, enter:
Code:
sudo gcc_select 4.0


I will have a look at CryptoPP CVS:
http://www.nabble.com/Re:-Compiling-Crypto-5.2.1-with-GCC-4.0-p509220.html
_________________
Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks
Back to top
View user's profile Send private message
Cain_
neophyte


Joined: 18 Jan 2006
Posts: 4
Location: USA

PostPosted: Wed Jan 18, 2006 7:12 pm    Post subject: Re: Tiger Compiliation Reply with quote

Thanks for the Info It Helped a lot!!!!

setting gcc_select 3.3 works great!!! Though setting the CXX="gcc3" environment variable didn't seem to work. The make script came back with:

gcc3 -fno-omit-frame-pointer -o src/utils/lib/CryptoPP.o "-I/opt/local/lib/ocaml" -c src/utils/lib/CryptoPP.cc
/bin/sh: line 1: gcc3: command not found

Now CryptoPP.cc and everything else compiles fine, but when it starts trying to link I get:


ocamlopt.opt -inline 10 -cc "g++" -linkall -o mlnet unix.cmxa str.cmxa -ccopt " " -cclib "-lcharset -lz -liconv" -cclib -lbz2 -cclib -lz -ccopt "-D_THREAD_SAFE " -I build build/cdk.cmxa build/common.cmxa build/client.cmxa build/core.cmxa build/driver.cmxa src/daemon/common/commonMain.cmx
ld: warning multiple definitions of symbol _locale_charset
/usr/lib/libcharset.dylib(localcharset.o) definition of _locale_charset
/usr/lib/libiconv.dylib(localcharset.o) definition of _locale_charset
ld: Undefined symbols:
_fprintf$LDBLStub
_sprintf$LDBLStub
_sscanf$LDBLStub
Error during linking
make: *** [mlnet] Error 2


Any Ideas on Linking?

Thanks!!!!
Cain
Back to top
View user's profile Send private message
Cain_
neophyte


Joined: 18 Jan 2006
Posts: 4
Location: USA

PostPosted: Wed Jan 18, 2006 7:34 pm    Post subject: More Info on OS X Tiger build: Configure & make mlnet.st Reply with quote

I thought I'd mention. I had to do a "workaround" to get the configure script to work.

If you do a "make maintainerclean" then try to run ./configure you get:

no autoconf259 in /opt/local/bin /opt/local/sbin /bin /sbin /usr/bin /usr/sbin
Running Autoconf (autoconf259)...
./configure: line 40: autoconf259: command not found

So I instaled the autoconf 2.59 port from darwin ports... Still didn't work... Then I just made a link:

ln -s /opt/local/bin/autoconf /opt/local/bin/autoconf259

and it works... I guess I should submit a fix for the configure script... but it works for now...

Now that configure has run... If you try to use "make mlnet.static" you get:

ocamlopt.opt -inline 10 -I src/utils/cdk -I src/daemon/chat -I src/gtk/chat -I src/utils/lib -I src/utils/ocamlrss -I src/utils/xml-light -I src/utils/net -I tools -I src/daemon/common -I src/daemon/driver -I src/utils/mp3tagui -I src/config/unix -I src/networks/gnutella -I src/networks/gnutella2 -I src/networks/fasttrack -I src/networks/fileTP -I src/networks/bittorrent -I src/networks/donkey -c src/daemon/common/commonMain.ml
File "src/daemon/common/commonMain.ml", line 20, characters 0-12:
Unbound module Printf2
make: *** [src/daemon/common/commonMain.cmx] Error 2


Cain
Back to top
View user's profile Send private message
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 3982
Location: Germany

PostPosted: Wed Jan 18, 2006 7:47 pm    Post subject: Reply with quote

Hi,

searching Google for error messages works wonders Wink
http://lists.gnu.org/archive/html/microdc-devel/2005-09/msg00005.html
Quote:
Strange - your compiler should add -lSystemStubs automaticly so that
you won't get the $LDBLStub undefined symbols. (At least according
to posts on the net. Smile Someone said you had to select the right
compiler with 'gcc_select 3.3' first.


http://lists.gnu.org/archive/html/swftools-common/2005-05/msg00012.html
Alternatively you can add
Quote:
-lSystemStubs

to the link command.

Or:
http://lists.apple.com/archives/xcode-users/2005/Aug/msg00458.html
Quote:
>I've seen this when mixing objects built with gcc-4 with objects
>built with gcc-3.3 or xlc on 10.4

After switching to gcc-3.3, did you re-compile Ocaml with it?

Regarding calling autoconf in ./configure:
- you need autoconf-2.59 to create config/configure from config/configure.in
- ./configure search several autoconf versions, normally it should search for other files if autoconf259 is not found
- on your system (do you use bash?) it breaks if a file was not found, same on NetBSD (or was it OpenBSD?)
- ./configure needs some re-writing ( https://savannah.nongnu.org/bugs/?func=detailitem&item_id=15394 ), but I am too lazy to do this, can you help?
_________________
Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks
Back to top
View user's profile Send private message
Cain_
neophyte


Joined: 18 Jan 2006
Posts: 4
Location: USA

PostPosted: Wed Jan 18, 2006 8:32 pm    Post subject: Re OS X Build Reply with quote

Yea!!!! It worked!!!!

Yes, I was on the track to recompiling ocaml with gcc 3.3 (using darwin ports)... Once it was installed and I compiled mlnet with no problems...

I can help out with the configure script. And the ocaml install doesn't work (I used darwin ports)... Just for refrence If ocaml isn't installed here's the error:

checking for wget... /Users/cain/mldonkey-source/mldonkey/config/wget
******** Objective-Caml 3.09.1 is required *********
******* Check http://caml.inria.fr/ ********
Do you want this script to try to download and install ocaml
LOCALLY in mldonkey directory ?
y
Downloading ...
host = caml.inria.fr
port = 80
path = /pub/distrib/ocaml-3.09/ocaml-3.09.1.tar.gz
outfile = ocaml-3.09.1.tar.gz
Connecting to 128.93.11.23
Connected
Downloaded
Uncompressing ...

gzip: /Users/cain/mldonkey-source/mldonkey/patches/ocaml-3.09.1.tar.gz: not in gzip format
./configure: line 4460: cd: ocaml-3.09.1: No such file or directory

Thanks for you're help and I'll work on the configure script...

-Cain
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MLDonkey Forum Index -> Development All times are GMT
Page 1 of 1

 
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