mldonkey-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mldonkey-users] debug mldonkey


From: Jonathan
Subject: Re: [Mldonkey-users] debug mldonkey
Date: Wed, 5 Feb 2003 19:10:42 +0100

Le mardi, 4 fév 2003, à 10:04 Europe/Paris, MLdonkey a écrit :

Hi,


 i'd like to find why mldonkey crashes everytime on macos X. i would
 like to run it with ocamldebug but i can't find how to compile it in
 bytecode mode.

Before trying anything else: checkout the lattest version of Ocaml
from its CVS repository. Compile it. Checkout a version of mldonkey
(ANY version), and compile it (check that it uses the ocaml version
you have just installed). Try it and tell us if it still segfaults.

The last stable release of ocaml has a bug on Mac OS X, which caused
segfaults when signals are received (which also happens when incorrect
accesses are done in strings). This bug has been sent to the ocaml
team devs, and fixed, but no new version has been released, so the fix
is only in the CVS.

- MLDonkey

I try what you explain, I compiled the latest ocaml cvs version and all seems to work. Then I tried to compile 4 different version of mldonkey, grab from cvs server(2.00, 2.02, unstable-2.02-1, unstable-2.00-9) but I got the same error each time during the compilation, here it is :

My command to launch the compilation ;
        ./configure --disable-multinet --disable-batch && make depend && make

and the result :

--disable-multinet --disable-batch
checking build system type... powerpc-apple-darwin6.3
checking host system type... powerpc-apple-darwin6.3
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for gmake... no
checking for make... make
checking for ocamlc.opt... ocamlc.opt
checking for ocamlc... (cached) ocamlc.opt
Testing ocaml version
checking for wget... no
checking for wget... /usr/local/src/mldonkey/config/wget
checking for ocamlopt.opt... ocamlopt.opt
checking for ocamlopt... (cached) ocamlopt.opt
checking for ocamldep... ocamldep
checking for ocamllex.opt... ocamllex.opt
checking for ocamllex... (cached) ocamllex.opt
checking for ocamlyacc... ocamlyacc
checking for ocamlmktop... ocamlmktop
checking for camlp4... camlp4
checking for perl... /usr/bin/perl
ocamlc version is 3.06+21 (2003-01-08)
ocamlopt version is 3.06+21 (2003-01-08)
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for void *... yes
checking size of void *... 4
checking for char... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for float... yes
checking size of float... 4
checking for double... yes
checking size of double... 8
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/ip.h usability... no
checking netinet/ip.h presence... yes
configure: WARNING: netinet/ip.h: present but cannot be compiled
configure: WARNING: netinet/ip.h: check for missing prerequisite headers? configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result
checking for netinet/ip.h... yes
checking sys/poll.h usability... no
checking sys/poll.h presence... no
checking for sys/poll.h... no
checking for poll... no
checking for inflate in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking Additionnal includes...
checking for ../donkey... yes
checking for ../server... yes
checking for gtk-config... no
checking for ../im... yes
checking Checking for CryptoKit... no
checking compile GTK GUI... no
powerpc-apple-darwin6.3
checking for bzip2... bzip2
checking for gzip... (cached) bzip2
configure: creating ./config.status
config.status: creating Makefile.config
config.status: creating Makefile.config.i386
config.status: creating Makefile.config.i486
config.status: creating Makefile.config.i586
config.status: creating Makefile.config.i686
config.status: creating ../lib/autoconf.ml.new
config.status: creating ../lib/gAutoconf.ml.new
config.status: creating ../rpm/mldonkey.spec
config.status: creating config.h
config.status: config.h is unchanged
Building dependencies
The following modules will not be compiled: { audio_galaxy open_napster direct_connect limewire soulseek openFT cymes mldonkey_gui$(EXE) mldonkey_gui2$(EXE) mlchat$(EXE) } ocamldep -I cdk -I chat -I lib -I net -I tools -I common -I driver -I mp3tagui -I config/unix -I donkey *.ml *.mli > .depend (for i in cdk chat lib net tools common driver mp3tagui config/unix donkey; do \ ocamldep -I cdk -I chat -I lib -I net -I tools -I common -I driver -I mp3tagui -I config/unix -I donkey $i/*.ml $i/*.mli >> .depend; \
done)
ocamlc.opt -ccopt "   -o cdk/heap_c.o" -ccopt "" -c cdk/heap_c.c
ocamlc.opt -ccopt "-I /byterun -o cdk/zlibstubs.o" -ccopt " " -c cdk/zlibstubs.c ocamlc.opt -ccopt "-I /byterun -o config/unix/os_stubs_c.o" -ccopt " " -c config/unix/os_stubs_c.c
ocamlc.opt -ccopt "  -O6 -o lib/md4_cc.o" -ccopt "" -c lib/md4.c
lib/md4.c: In function `MD4Update':
lib/md4.c:115: warning: implicit declaration of function `memcpy'
lib/md4.c: In function `MD4Final':
lib/md4.c:158: warning: implicit declaration of function `memset'
cp -f lib/md4_cc.o lib/md4_comp.o
ocamlc.opt -ccopt "-I /byterun -o lib/md4_c.o" -ccopt " " -c lib/md4_c.c
ocamlc.opt -ccopt "-I /byterun -o lib/md5_c.o" -ccopt " " -c lib/md5_c.c
ocamlc.opt -ccopt "-I /byterun -o lib/stubs_c.o" -ccopt " " -c lib/stubs_c.c
lib/stubs_c.c: In function `try_select':
lib/stubs_c.c:141: warning: implicit declaration of function `bzero'
lib/stubs_c.c:171: warning: implicit declaration of function `enter_blocking_section' lib/stubs_c.c:173: warning: implicit declaration of function `leave_blocking_section'
lib/stubs_c.c: In function `ml_strstr':
lib/stubs_c.c:368: warning: implicit declaration of function `strstr'
lib/stubs_c.c: In function `ml_ints_of_string':
lib/stubs_c.c:393: warning: implicit declaration of function `isdigit'
ocamlc.opt -ccopt "-I /byterun -o net/multicast_c.o" -ccopt " " -c net/multicast_c.c ocamlc.opt -I cdk -I chat -I lib -I net -I tools -I common -I driver -I mp3tagui -I config/unix -I donkey -c cdk/dprintf.mli
File "cdk/dprintf.mli", line 25, characters 20-52:
The type constructor format expects 4 argument(s),
but is here applied to 3 argument(s)
make: *** [cdk/dprintf.cmi] Error 2

Do you think this come from the ocaml I compiled?

Thanks,
Jonathan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]