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 NAA02736; Mon, 15 Oct 2001 13:01:00 +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 NAA02664 for ; Mon, 15 Oct 2001 13:00:59 +0200 (MET DST) Received: from favie.faith.gr.jp (favie.faith.gr.jp [61.127.175.250]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f9FB0vL02228 for ; Mon, 15 Oct 2001 13:00:57 +0200 (MET DST) Received: from localhost (dhcp7.faith.gr.jp [192.168.1.17]) by favie.faith.gr.jp (8.9.3/8.9.3) with ESMTP id UAA02102; Mon, 15 Oct 2001 20:00:44 +0900 To: rnyberg@it.su.se Cc: caml-list@inria.fr Subject: Re: [Caml-list] Problem building O'Caml 3.03-alpha In-Reply-To: <20011015104459.A16172@gromit.it.su.se> References: <20011015104459.A16172@gromit.it.su.se> X-Mailer: Mew version 1.94.2 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20011015200032Y.garrigue@kurims.kyoto-u.ac.jp> Date: Mon, 15 Oct 2001 20:00:32 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk From: Richard Nyberg > I'm trying to build the 3.03-alpha release on FreeBSD 4.3 with tk > but I have some problems. > > This is how I try to build it > > ------------ > # ./configure \ > -prefix /pkg/ocaml/3.03-alpha \ > -libdir /pkg/ocaml/3.03-alpha/lib -with-pthread \ > -tkdefs '-I/pkg/tcltk/8.3.3/include' \ > -tklibs '-Wl,-rpath=/pkg/tcltk/8.3.3/lib,-rpath-link=/pkg/tcltk/8.3.3/lib -L/pkg/tcltk/8.3.3/lib -ltk8.3 -ltcl8.3' > ------------- I didn't know about the syntax -rpath=..., is it really supposed to work? > # make world > > ../../../tools/ocamlmklib -ocamlc '../../../boot/ocamlrun ../../../ocamlc -I ../../../stdlib' -o labltk -oc labltk41 \ > ../support/support.cmo ../support/widget.cmo ../support/protocol.cmo ../support/textvariable.cmo ../support/timer.cmo ../support/fileevent.cmo tk.cmo scale.cmo radiobutton.cmo dialog.cmo selection.cmo toplevel.cmo frame.cmo canvas.cmo pack.cmo listbox.cmo grab.cmo button.cmo grid.cmo imagephoto.cmo bell.cmo w > info.cmo imagebitmap.cmo tkwait.cmo scrollbar.cmo checkbutton.cmo palette.cmo focus.cmo optionmenu.cmo wm.cmo entry.cmo text.cmo message.cmo option.cmo clipboard.cmo menubutton.cmo label.cmo place.cmo menu.cmo \ > -Wl,-rpath=/pkg/tcltk/8.3.3/lib,-rpath-link=/pkg/tcltk/8.3.3/lib -L/pkg/tcltk/8.3.3/lib -ltk8.3 -ltcl8.3 -L/usr/X11R6/lib -lX11 > Unknown option '-Wl,-rpath=/pkg/tcltk/8.3.3/lib,-rpath-link=/pkg/tcltk/8.3.3/lib', ignored And since ocamlmklib doesn't know about this option, it ignores it... Not very surprising that it cannot find the library afterwards. You can look at the source (it is a script) to see the options it accepts. Try with -tklibs '-Wl,-rpath,/pkg/tcltk/8.3.3/lib -L/pkg/tcltk/8.3.3/lib -ltk8.3 -ltcl8.3'. Cheers, Jacques Garrigue ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr