From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA30758; Mon, 11 Aug 2003 11:00:02 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA30697 for ; Mon, 11 Aug 2003 11:00:01 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h7B900T00639 for ; Mon, 11 Aug 2003 11:00:00 +0200 (MET DST) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 19m8X2-0000aX-00 for ; Mon, 11 Aug 2003 10:00:00 +0100 Date: Mon, 11 Aug 2003 09:59:59 +0100 To: caml-list@inria.fr Subject: [Caml-list] ocamldep bug (probably) Message-ID: <20030811085959.GA2238@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; ocamldep:01 bug:01 gmain:01 lablgtk:01 callback:01 'open:01 freshmeat:01 dbi:99 threads:01 ltd:98 cmo:01 business:96 explicit:03 library:03 data:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I have a file called main.ml which does: open GMain (* from lablgtk2 *) ... window#connect#destroy ~callback:Main.quit; When ocamldep is run on this file, it generates a dependency which looks like: main.cmo: ... main.cmo ... This is incorrect. In this case the fix is reasonably simple, ie. just remove the 'open GMain' line and replace the callback with an explicit 'GMain.Main.quit'. However in the general case this could cause all sorts of unexplained errors. Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you. PTHRLIB is a library for writing small, efficient and fast servers in C. HTTP, CGI, DBI, lightweight threads: http://www.annexia.org/freeware/pthrlib/ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners