[Slackbuilds-users] [lramos.prof at yahoo.com.br: Re: Unison fails to build with OCaml 4.0]

Luiz Carlos Ramos lramos.prof at yahoo.com.br
Wed Oct 22 08:10:02 UTC 2014


Hello again,

I tried to redo this build, and it was successful.

However, I noticed a few problems in the file
01-change-ocamllibdir-for-ocaml-40.patch "inlined" in the mail body.
Mainly, the lines are truncated at some length, and this makes necessary
some work, because if the lines are simply extracted from the email, the
patch doesn't apply cleanly.

I remember to have hit problems with dllunix.so. I tried to simulate them
here again, but I couldn't, even reinstalling ocaml-4 again. My best bet
was that it was an issue of an ongoing move from 32 to 64; probably the
library which gave that error was a 32-bit version. I'm not sure about 
this, but it's my best guess.

I'll try to re-send those patches, but taking extra-care with maximum
line length. (Happen to need to learn how to do it with mutt/vi... yes, ":set textwidth=160")

--- 01-change-ocamllibdir-for-ocaml-40.patch -------------------------------------------------------------------
--- a/Makefile.OCaml    2011-04-16 17:35:38.000000000 -0300
+++ b/Makefile.OCaml    2014-09-25 13:18:43.239151396 -0300
@@ -71,8 +71,8 @@ OCAMLLIBDIR=$(shell ocamlc -v | tail -1
 #
 # This should be set to an appropriate value automatically, depending
 # on whether the lablgtk library is available
-LABLGTKLIB=$(OCAMLLIBDIR)/lablgtk
-LABLGTK2LIB=$(OCAMLLIBDIR)/lablgtk2
+LABLGTKLIB=$(OCAMLLIBDIR)/site-lib/lablgtk
+LABLGTK2LIB=$(OCAMLLIBDIR)/site-lib/lablgtk2
 ##BCP [3/2007]: Removed temporarily, since the OSX UI is not working well 
 ## at the moment and we don't want to confuse people by building it by default
 ifeq ($(OSARCH),osx)
@@ -92,7 +92,7 @@ buildexecutable::
 
 INCLFLAGS=-I lwt -I ubase -I system
 CAMLFLAGS+=$(INCLFLAGS)
-CAMLFLAGS+=-I system/$(SYSTEM) -I lwt/$(SYSTEM)
+CAMLFLAGS+=-I system/$(SYSTEM) -I lwt/$(SYSTEM) -I $(LABLGTK2LIB)
 
 ifeq ($(OSARCH),win32)
   # Win32 system
--- 01-change-ocamllibdir-for-ocaml-40.patch -------------------------------------------------------------------

--- unison.SlackBuild.patch ------------------------------------------------------------------------------------
--- a/unison.SlackBuild   2013-11-25 15:19:36.000000000 -0200
+++ b/unison.SlackBuild   2014-09-26 07:33:22.892052418 -0300
@@ -55,6 +55,11 @@ find -L . \
  \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

+# Apply patches
+for _p in $(ls $CWD/*.patch); do
+       patch -p1 -i $_p
+done
+
 # no need to set CFLAGS

 # FLAVOR lets the user enable their choice of interfaces. Defaults to gtk2
--- unison.SlackBuild.patch ------------------------------------------------------------------------------------


Please could you test these new patches?


Thanks,

Luiz Ramos
São Paulo - Brazil

----- Forwarded message from Luiz Carlos Ramos <lramos.prof at yahoo.com.br> -----

Date: Tue, 7 Oct 2014 07:59:27 -0300
From: Luiz Carlos Ramos <lramos.prof at yahoo.com.br>
To: "SlackBuilds.org Users List" <slackbuilds-users at slackbuilds.org>, willysr at slackbuilds.org
Subject: Re: [Slackbuilds-users] Unison fails to build with OCaml 4.0
User-Agent: Mutt/1.5.23 (2014-03-12)

Hello,

I'll check that, when some time is available.

I remember to have seen this message, and I did something to solve it.
Probably I concluded that it was a dependency issue, and didn't pay
much attention to it. But ultimately the package was built.

As a side note, I had some issues with unison version 2.40.63 (and
2.40.65) when trying to sync with other machines. As the other problem,
I don't remember the details, but what I found is that
the latest upstream version 2.4.102 solves this problem.

Please wait some more time and I'll check what I did to make to work
around that issue.


Thanks,

Luiz


On Sun, Oct 05, 2014 at 02:12:36PM +0700, Willy Sudiarto Raharjo wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> > This could make me able to build unison with OCaml 4.0.
> > 
> > That's all. Hope this could help someone else.
> 
> Hi
> 
> i tested this patch, but still it failed with OCaml 4.0
> 
> unison-2.40.63/lwt/win/lwt_unix_impl.ml
> unison-2.40.63/lwt/generic/lwt_unix_impl.ml
> unison-2.40.63/lwt/example/editor.ml
> unison-2.40.63/lwt/example/Makefile
> unison-2.40.63/lwt/example/relay.ml
> patching file Makefile.OCaml
> ocamlc -o mkProjectInfo unix.cma str.cma mkProjectInfo.ml
> File "mkProjectInfo.ml", line 1:
> Error: Error on dynamically loaded library: dllunix.so: dllunix.so:
> cannot open shared object file: No such file or directory
> UISTYLE = gtk2
> Building for Unix
> NATIVE = true
> THREADS = true
> STATIC = false
> OSTYPE =
> OSARCH =
> make tags
> make[1]: Entering directory `/tmp/SBo/unison-2.40.63'
> ocamlc -o mkProjectInfo unix.cma str.cma mkProjectInfo.ml
> File "mkProjectInfo.ml", line 1:
> Error: Error on dynamically loaded library: dllunix.so: dllunix.so:
> cannot open shared object file: No such file or directory
> if [ -f `which etags` ]; then \
>     etags *.mli */*.mli *.ml */*.ml */*.m *.c */*.c *.txt \
>           ; fi
> make[1]: Leaving directory `/tmp/SBo/unison-2.40.63'
> install: cannot stat ‘unison’: No such file or directory
> 
> 
> 
> - -- 
> Willy Sudiarto Raharjo
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
> 
> iEYEARECAAYFAlQw72MACgkQiHuDdNczM4H/zQCeJ2ZzcNjHA6EY4LfdX6SXvRhz
> eg8AoKjHl6BWaqosqFMAD4+zkWCDceGU
> =+7F6
> -----END PGP SIGNATURE-----
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
> 

----- End forwarded message -----


More information about the SlackBuilds-users mailing list