DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-08-27 04:30:02

Luthair
New member
Registered: 2008-08-25
Posts: 2

Building Unison File Synchronizer from Source

I decided to build Unison on the weekend, and decided to document the process as I went.  Before you start you'll need the following packages: binutils, gcc, kernel-headers, make, uclibc

The first step is to build Ocaml from source:

Code:

./configure -bindir /ffp/bin -libdir /ffp/lib/ocaml -mandir /ffp/share/man/man1

make world > log.world 2>&1
make opt > log.opt 2>&1
make install

Next, download the source for Unison, then set a temp directory:

Code:

export TMPDIR=/ffp/tmp

If the TMPDIR environment variable isn't set, the build will attempt to write to /tmp, and fail due to lack of space.  (Come to think of it, is there a /ffp/tmp by default? If there isn't, just point it at any directory you want.)

Code:

make NATIVE=false UISTYLE=text

The make will fail at etags, as far as I can tell it isn't required for unison to build.  Google unison etags and you'll find other references to ignoring it.

You should now be able to conduct a self test on Unison with the following command:

Code:

./unison -selftest

Offline

 

#2 2008-08-30 23:16:42

ismora
Member
From: Paris, France
Registered: 2008-07-30
Posts: 30

Re: Building Unison File Synchronizer from Source

Thank you very much Luthair for this script.
I tried to compile unison with the ocaml compiler from the "optware", but ocamlopt was missing, so the compilation failed.
I then gave up, as I didn't want to go in the hassle of compiling ocaml from sources, but with the steps detailed it is actually quite simple.

The generated unison binary is there:
http://perso.club-internet.fr/fcd_g/unison-2.27.57.tgz
Binary only, no man -- the program is self-documented with -help or -doc options. tgz file contains ./ffp/bin/unison, so it should be compatible with funpkg, if anyons interested to add it to Fonz packages.


DNS-323 • 2x Hitachi 500MB • RAID1 • FW1.04 • ext3 • Fonz's v0.5 fun_plug
DNS-325 • 2x WD Green 2TB • RAID1 • FW?.?? • ext3 • Fonz's v0.7 fun_plug

Offline

 

#3 2008-08-31 03:39:16

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: Building Unison File Synchronizer from Source

If the build option of unison is "NATIVE=false", you're actually NOT using ocamlopt, the resulted unison is a bytecode version.
In that case, optware ocaml works just as well, if you have a native gcc.
If ocamlopt is working, you really should use "NATIVE=true".

Offline

 

#4 2008-09-02 03:38:45

Luthair
New member
Registered: 2008-08-25
Posts: 2

Re: Building Unison File Synchronizer from Source

The build will fail with NATIVE=true, the error is something about  a library using hardware FP , whereas another library uses software FP.  The same error happens when attempting to build opt.opt

I wasn't able to find much information on the error /shrug

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB