Package Details: hivex 1.3.13-1

Git Clone URL: https://aur.archlinux.org/hivex.git (read-only)
Package Base: hivex
Description: System for extracting the contents of Windows Registry.
Upstream URL: http://libguestfs.org
Licenses: LGPL2.1
Submitter: bidulock
Maintainer: bidulock
Last Packager: bidulock
Votes: 12
Popularity: 0.203580
First Submitted: 2015-08-15 21:02
Last Updated: 2016-06-06 10:47

Dependencies (11)

Required by (4)

Sources (1)

Latest Comments

vonpupp commented on 2016-11-25 22:04

I tried `pacman -Rs hardening-wrapper` as @mickours said but it didn't work for me.

I am having this problem:
ocamlfind ocamlc -package unix -c t/hivex_200_write.ml -o t/hivex_200_write.cmo
File "t/hivex_200_write.ml", line 58, characters 15-28:
Warning 3: deprecated: String.create
Use Bytes.create instead.
File "t/hivex_200_write.ml", line 60, characters 6-27:
Warning 3: deprecated: String.set
Use Bytes.set instead.
File "t/hivex_200_write.ml", line 61, characters 6-28:
Warning 3: deprecated: String.set
Use Bytes.set instead.
File "t/hivex_200_write.ml", line 63, characters 4-27:
Warning 3: deprecated: String.set
Use Bytes.set instead.
File "t/hivex_200_write.ml", line 64, characters 4-27:
Warning 3: deprecated: String.set
Use Bytes.set instead.
/bin/sh ../libtool --mode=execute -dlopen ../lib/libhivex.la \
ocamlfind ocamlc -dllpath /tmp/yaourt-tmp-av/aur-hivex/src/hivex-1.3.13/ocaml -package unix \
-linkpkg mlhivex.cma t/hivex_200_write.cmo -o t/hivex_200_write
mkdir -p `dirname t/hivex_300_fold.cmo`
ocamlfind ocamlc -package unix -c t/hivex_300_fold.ml -o t/hivex_300_fold.cmo
/bin/sh ../libtool --mode=execute -dlopen ../lib/libhivex.la \
ocamlfind ocamlc -dllpath /tmp/yaourt-tmp-av/aur-hivex/src/hivex-1.3.13/ocaml -package unix \
-linkpkg mlhivex.cma t/hivex_300_fold.cmo -o t/hivex_300_fold
rm t/hivex_005_load.cmo t/hivex_100_errors.cmo t/hivex_300_fold.cmo t/hivex_020_root.cmo t/hivex_120_rlenvalue.cmo t/hivex_010_open.cmo t/hivex_200_write.cmo t/hivex_110_gc_handle.cmo
make[2]: Leaving directory '/tmp/yaourt-tmp-av/aur-hivex/src/hivex-1.3.13/ocaml'
Making all in perl
make[2]: Entering directory '/tmp/yaourt-tmp-av/aur-hivex/src/hivex-1.3.13/perl'
[ . != . ] && cp -rsu /tmp/yaourt-tmp-av/aur-hivex/src/hivex-1.3.13/perl/. ./.
make[2]: [Makefile:1632: Makefile-pl] Error 1 (ignored)
perl Makefile.PL INSTALLDIRS=site PREFIX=/usr
Only one of PREFIX or INSTALL_BASE can be given. Not both.
make[2]: *** [Makefile:1633: Makefile-pl] Error 2
make[2]: Leaving directory '/tmp/yaourt-tmp-av/aur-hivex/src/hivex-1.3.13/perl'
make[1]: *** [Makefile:1275: all-recursive] Error 1
make[1]: Leaving directory '/tmp/yaourt-tmp-av/aur-hivex/src/hivex-1.3.13'
make: *** [Makefile:1182: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build hivex.

mickours commented on 2016-06-13 08:59

It comes from the package hardening-wrapper:

The bug:
https://bugs.archlinux.org/task/42748

So do
pacman -Rs hardening-wrapper

And it works :)

bidulock commented on 2016-06-10 16:44

I show caml_raise_with_args defined in /usr/lib/ocaml/caml/fail.h which is owned by ocaml 4.02.3-2. Check yours.

bidulock commented on 2016-06-10 16:39

Nope. pacman -Qkk pacman says /etc/makepkg.conf is as shipped. When I compile, config.h defines HAVE_CAML_RAISE_WITH_ARGS so line 52 of hivex_c.c is not compiled. There is something the matter with your ocaml setup: try reinstalling ocaml as well as ocamlfind.

swiftgeek commented on 2016-06-10 10:38

@bidulock check your makepkg.conf, most likely it's heavily outdated

mickours commented on 2016-06-10 07:36

My system is up to date but hivex is still not compiling with the Ocaml bindings. Here is the error:

Making all in ocaml
make[2]: Entering directory 'src/hivex-1.3.13/ocaml'
gcc -I.. -I/usr/lib/ocaml -I../ocaml -I../lib -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -Wall -c hivex_c.c
hivex_c.c:52:1: error: static declaration of 'caml_raise_with_args' follows non-static declaration
caml_raise_with_args (value tag, int nargs, value args[])
^~~~~~~~~~~~~~~~~~~~
In file included from hivex_c.c:39:0:
/usr/lib/ocaml/caml/fail.h:32:17: note: previous declaration of 'caml_raise_with_args' was here
CAMLextern void caml_raise_with_args (value tag, int nargs, value arg[])
^~~~~~~~~~~~~~~~~~~~
hivex_c.c: In function 'raise_error':
hivex_c.c:1057:1: warning: 'noreturn' function does return
}
^
Makefile:1695: recipe for target 'hivex_c.o' failed
make[2]: *** [hivex_c.o] Error 1
make[2]: Leaving directory '/tmp/yaourt-tmp-mercierm/aur-hivex/src/hivex-1.3.13/ocaml'
Makefile:1275: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/yaourt-tmp-mercierm/aur-hivex/src/hivex-1.3.13'
Makefile:1182: recipe for target 'all' failed
make: *** [all] Error 2

bidulock commented on 2016-06-09 03:01

I still have no problems building 1.3.13-1 on an up to date system.

swiftgeek commented on 2016-06-08 17:30

Disabling ocaml bindings ( --disable-ocaml ) helped with compiling it.

Making all in ocaml
make[2]: Entering directory '/tmp/yaourt-tmp-swiftgeek/aur-hivex/src/hivex-1.3.13/ocaml'
gcc -I.. -I/usr/lib/ocaml -I../ocaml -I../lib -march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -Wall -c hivex_c.c
hivex_c.c:52:1: error: static declaration of 'caml_raise_with_args' follows non-static declaration
caml_raise_with_args (value tag, int nargs, value args[])
^~~~~~~~~~~~~~~~~~~~
In file included from hivex_c.c:39:0:
/usr/lib/ocaml/caml/fail.h:32:13: note: previous declaration of 'caml_raise_with_args' was here
CAMLextern void caml_raise_with_args (value tag, int nargs, value arg[])
^~~~~~~~~~~~~~~~~~~~
hivex_c.c: In function 'raise_error':
hivex_c.c:1057:1: warning: 'noreturn' function does return
}
^
Makefile:1695: recipe for target 'hivex_c.o' failed

bidulock commented on 2016-06-05 21:38

I have no problems building on up-to-date system.

jyantis commented on 2016-06-05 17:06

Failed to Install:
Makefile:1602: recipe for target 'Makefile-pl' failed
make[2]: [Makefile-pl] Error 1 (ignored)
perl Makefile.PL INSTALLDIRS=site PREFIX=/usr
Only one of PREFIX or INSTALL_BASE can be given. Not both.
Makefile:1602: recipe for target 'Makefile-pl' failed

All comments