From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To: rnyberg@it.su.se
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Problem building O'Caml 3.03-alpha
Date: Mon, 15 Oct 2001 20:00:32 +0900 [thread overview]
Message-ID: <20011015200032Y.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <20011015104459.A16172@gromit.it.su.se>
From: Richard Nyberg <rnyberg@it.su.se>
> 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
> <snip everything until end>
> ../../../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
next prev parent reply other threads:[~2001-10-15 11:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-15 8:44 Richard Nyberg
2001-10-15 9:55 ` Alain Frisch
2001-10-15 11:00 ` Jacques Garrigue [this message]
2001-10-15 12:04 ` Richard Nyberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011015200032Y.garrigue@kurims.kyoto-u.ac.jp \
--to=garrigue@kurims.kyoto-u.ac.jp \
--cc=caml-list@inria.fr \
--cc=rnyberg@it.su.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).