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 TAA11389; Mon, 24 Nov 2003 19:49:19 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA11589 for ; Mon, 24 Nov 2003 19:49:18 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from mta07-svc.ntlworld.com (mta07-svc.ntlworld.com [62.253.162.47]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAOInH112595 for ; Mon, 24 Nov 2003 19:49:17 +0100 (MET) Received: from ntlworld.com ([80.4.69.150]) by mta07-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20031124184916.CZKR15835.mta07-svc.ntlworld.com@ntlworld.com>; Mon, 24 Nov 2003 18:49:16 +0000 Message-ID: <3FC2528E.60506@ntlworld.com> Date: Mon, 24 Nov 2003 18:48:46 +0000 From: "chris.danx" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031014 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Gurr, David (MED, self)" , Caml Mailing List Subject: Re: [Caml-list] Building camlimages programs on deb (and linux) References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; ntlworld:99 caml-list:01 camlimages:01 gurr:01 linkers:01 dependencies:01 ocamlc:01 usr:01 bug:01 bug:01 ocamlc:01 usr:01 3.07:01 camlimages:01 gif:99 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Gurr, David (MED, self) wrote: > Unix linkers can be very "helpful". Forgive me if you > already know this but the link order is important. No I didn't know what, thanks. > The dependant lib comes before the lib that it depends on. > And if you have circular dependencies you will need to > link a lib multiple times. So: > >>ocamlc `camlimages-config` -cclib "-L/usr/X11R6/lib >> -lxvthumb -lXpm -lX11 -lpng -lfreetype -lz -ljpeg -lgif" >>monochrome.ml Just tried that... :( I updated my system, if there is a bug in Xpm it hasn't been fixed (some how I doubt it's a bug - it's more likely me doing something daft). Interestingly if I take the program off it still complains... ocamlc `camlimages-config` -cclib "-L/usr/X11R6/lib -lxvthumb -lXpm -lX11 -lpng -lfreetype -lz -ljpeg -lgif" So I guess that it comes from linking with the ocaml files specified in camlimages-config with the libraries... -I /usr/lib/ocaml/3.07/camlimages ci_core.cma ci_gif.cma ci_jpeg.cma ci_tiff.cma ci_bmp.cma ci_ppm.cma ci_png.cma ci_ps.cma ci_xpm.cma If i leave ci_xpm.cma off, it links. I don't know if it's safe to leave it off. I suppose if I don't use XPM it'll be ok, but it's not the greatest solution. Chris ------------------- 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