This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: unison-2.10.2-1 and unison-gtk2-2.10.2-1

On Tue, 21 Sep 2004, Schulman.Andrew wrote:

> > I have done a Cygwin package of LablGtk now, just add the Cygwin
> > specific README and sign it with your name, if there are no objections
> > it will be included in the netrelease and unison-gtk2 is GTG, once we
> > found the reason why I needed to apply the beloow changes.  Fetch the
> > LablGtk package here:
> I decided to go ahead and build a lablgtk2 package myself, so I can
> reasonably maintain it in the future.

One thing to note (and I haven't noticed it before myself) is that my
build of ocaml contains labltk -- will they conflict?  Also, you will
probably need to include bits of the ocaml sources in your lablgtk2 source
package -- do we want to replicate this?

> I've built the package, but now I have a problem: if I strip
> /usr/lib/ocaml/lablgtk2/lablgtktop.exe, then when I run
> /usr/bin/lablgtk2, I get "Unknown option -w":
> $ lablgtk2 -verbose
> /usr/lib/ocaml/lablgtk2/lablgtktop -w s -I /usr/local/stow/lablgtk-2.4.0
> /usr/lib/ocaml/lablgtk2 -I gtkInit.cmo
> Unknown option -w.
> If I don't strip lablgtktop.exe, then I don't get this error.  I can't
> find any documentation about what the '-w s' option does, but I believe
> it's supposed to be passed on to the OCaml compiler.

Here's a (reformatted) excerpt from driver/ in the ocaml
 "-w", Arg.String F._w,
    <flags>  Enable or disable warnings according to <flags>:
       A/a enable/disable all warnings
       C/c enable/disable suspicious comment
       D/d enable/disable deprecated features
       E/e enable/disable fragile match
       F/f enable/disable partially applied function
       L/l enable/disable labels omitted in application
       M/m enable/disable overriden method
       P/p enable/disable partial match
       S/s enable/disable non-unit statement
       U/u enable/disable unused match case
       V/v enable/disable hidden instance variable
       X/x enable/disable all other warnings
       default setting is "Ale"
       (all warnings but labels and fragile match enabled)

So it looks like "-w s" disables non-unit statement warnings.

> Questions:  should I just give up on stripping the executable?  Or is
> there a workaround?  Do I need the -w option at all?  Sorry, but I know
> almost nothing about OCaml or LablGTK.

It's up to you.  I'm guessing this is supposed to enable clean execution
of lablgtk2 (i.e., no extraneous messages), so you probably do need it.

One last note is that the current release of ocaml doesn't support dynamic
library loads, so a lot of examples don't work (details upon request).
I'm working on fixing this, but if anyone has suggestions on how to enable
shared library support, I'd be interested in hearing them.

      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]