caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Problem building O'Caml 3.03-alpha
@ 2001-10-15  8:44 Richard Nyberg
  2001-10-15  9:55 ` Alain Frisch
  2001-10-15 11:00 ` Jacques Garrigue
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Nyberg @ 2001-10-15  8:44 UTC (permalink / raw)
  To: caml-list

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'
-------------

Output from configure seems ok.

-------------
# 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
../../../boot/ocamlrun ../../../ocamlc -I ../../../stdlib -linkall -o labltktop -I ../support \
       -I ../../../toplevel toplevellib.cma labltk.cma \
       -I ../../unix unix.cma \
       -I ../../str str.cma \
       `if true; then echo -dllpath /pkg/ocaml/3.03-alpha/lib/labltk; fi` \
       topmain.cmo
Error on dynamically loaded library: Shared object "libtk8.3.so" not found
gmake[2]: *** [labltktop] Error 2
gmake[2]: Leaving directory `/yap/src/ocaml-3.03-alpha/otherlibs/labltk/lib'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/yap/src/ocaml-3.03-alpha/otherlibs/labltk'
gmake: *** [otherlibraries] Error 2
------------

Do you have any ideas on how to make it build correctly?

Thanks in advance,
	-Richard
-------------------
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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Problem building O'Caml 3.03-alpha
  2001-10-15  8:44 [Caml-list] Problem building O'Caml 3.03-alpha Richard Nyberg
@ 2001-10-15  9:55 ` Alain Frisch
  2001-10-15 11:00 ` Jacques Garrigue
  1 sibling, 0 replies; 4+ messages in thread
From: Alain Frisch @ 2001-10-15  9:55 UTC (permalink / raw)
  To: Richard Nyberg; +Cc: caml-list

On Mon, 15 Oct 2001, Richard Nyberg wrote:

> # ./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'
> -------------

> ../../../boot/ocamlrun ../../../ocamlc -I ../../../stdlib -linkall -o labltktop -I ../support \
>        -I ../../../toplevel toplevellib.cma labltk.cma \
>        -I ../../unix unix.cma \
>        -I ../../str str.cma \
>        `if true; then echo -dllpath /pkg/ocaml/3.03-alpha/lib/labltk; fi` \
>        topmain.cmo
> Error on dynamically loaded library: Shared object "libtk8.3.so" not found

Maybe you can try to define and export
LD_LIBRARY_PATH=/pkg/tcltk/8.3.3/lib


Hope this helps ...


Alain

-------------------
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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Problem building O'Caml 3.03-alpha
  2001-10-15  8:44 [Caml-list] Problem building O'Caml 3.03-alpha Richard Nyberg
  2001-10-15  9:55 ` Alain Frisch
@ 2001-10-15 11:00 ` Jacques Garrigue
  2001-10-15 12:04   ` Richard Nyberg
  1 sibling, 1 reply; 4+ messages in thread
From: Jacques Garrigue @ 2001-10-15 11:00 UTC (permalink / raw)
  To: rnyberg; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Problem building O'Caml 3.03-alpha
  2001-10-15 11:00 ` Jacques Garrigue
@ 2001-10-15 12:04   ` Richard Nyberg
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Nyberg @ 2001-10-15 12:04 UTC (permalink / raw)
  To: Jacques Garrigue; +Cc: caml-list

> I didn't know about the syntax -rpath=..., is it really supposed to work?
I don't know, but I've always used it successfully before. However it might
be a bug/undocumented feature. I can't remember how I learned to use it
like that. I really like your syntax better, and it works :)

> Try with -tklibs '-Wl,-rpath,/pkg/tcltk/8.3.3/lib -L/pkg/tcltk/8.3.3/lib -ltk8.3 -ltcl8.3'.

Yes it worked :) Thanks!!!

	-Richard
-------------------
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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-10-15 12:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-15  8:44 [Caml-list] Problem building O'Caml 3.03-alpha Richard Nyberg
2001-10-15  9:55 ` Alain Frisch
2001-10-15 11:00 ` Jacques Garrigue
2001-10-15 12:04   ` Richard Nyberg

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).