This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: ocaml-3.08.1-2
- From: "Gerrit P. Haase" <gp at familiehaase dot de>
- To: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- Cc: cygwin-apps at cygwin dot com
- Date: Thu, 23 Sep 2004 21:10:57 +0200
- Subject: Re: ocaml-3.08.1-2
- Organization: Esse keine toten Tiere
- References: <Pine.GSO.4.61.0409222010120.27683@slinky.cs.nyu.edu>
- Reply-to: "Gerrit @ cygwin-apps" <cygwin-apps at cygwin dot com>
Hello Igor,
> The packaging hasn't changed, but it would be nice if someone who uses
> ocaml (Max? Gerrit?) gave it a look-over before it's uploaded.
> The files are available at the following URLs:
> <http://cs.nyu.edu/~pechtcha/cygwin/ocaml/setup.hint>
> <http://cs.nyu.edu/~pechtcha/cygwin/ocaml/ocaml-3.08.1-2.tar.bz2>
> <http://cs.nyu.edu/~pechtcha/cygwin/ocaml/ocaml-3.08.1-2-src.tar.bz2>
I cannot get lablgtk-2.4.0 compiled (works before):
ocamlmklib -verbose -o lablglade2 ml_glade.o -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lpthread -lz -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -L/usr/lib/ocaml -lcamlrun
+ gcc -shared -o ./dlllablglade2.so ml_glade.o -L/usr/lib/ocaml -Wl,-rpath,/usr/lib/ocaml -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lpthread -lz -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lcamlrun
S.th. weird is going on there.
1. I would like OCaml to produce .dll files, not .so files.
2. The name seems to be wrong, shouldn't it be cyglablglade2.so or
cyglablglade2.dll instead of dlllablglade2.so?
3. would not hurt that much if the link would succeed:
ocamlmklib -verbose -o lablglade2 ml_glade.o -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lpthread -lz -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -L/usr/lib/ocaml -lcamlrun
+ gcc -shared -o ./dlllablglade2.so ml_glade.o -L/usr/lib/ocaml -Wl,-rpath,/usr/lib/ocaml -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lpthread -lz -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lcamlrun
ml_glade.o(.text+0xb1):ml_glade.c: undefined reference to `_Val_GObject_new'
ml_glade.o(.text+0x110):ml_glade.c: undefined reference to `_copy_string_check'
ml_glade.o(.text+0x12a):ml_glade.c: undefined reference to `_Val_GObject'
ml_glade.o(.text+0x147):ml_glade.c: undefined reference to `_copy_string_check'
ml_glade.o(.text+0x16a):ml_glade.c: undefined reference to `_Val_GObject'
ml_glade.o(.text+0x172):ml_glade.c: undefined reference to `_ml_some'
ml_glade.o(.text+0x1d6):ml_glade.c: undefined reference to `_ml_global_root_new'
ml_glade.o(.text+0x20a):ml_glade.c: undefined reference to `_ml_global_root_new'
ml_glade.o(.text+0x257):ml_glade.c: undefined reference to `_Val_GObject'
ml_glade.o(.text+0x277):ml_glade.c: undefined reference to `_copy_string_check'
ml_glade.o(.text+0x297):ml_glade.c: undefined reference to `_Val_GObject'
Info: resolving _caml_local_roots by linking to __imp__caml_local_roots (auto-import)
collect2: ld returned 1 exit status
make[1]: *** [liblablglade2.a] Error 2
Not sure what I'm missing here.
I'm sure that it works before without changing too much of the
original lablgtk2 Makefile contents, now it seems I cannot find a
solution in less than ten minutes;)
I've updated my version:
http://194.95.224.180/cygwin/lablgtk/
get the patch and the script and fetch the source from
http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html if you not
have it already and try to build it, maybe useful to debug the
problems (I believe that it is OCaml internal).
Gerrit
--
=^..^=