Package Details: hivex 1.3.14-2

Git Clone URL: (read-only)
Package Base: hivex
Description: System for extracting the contents of Windows Registry.
Upstream URL:
Licenses: LGPL2.1
Submitter: bidulock
Maintainer: bidulock
Last Packager: bidulock
Votes: 16
Popularity: 1.926014
First Submitted: 2015-08-15 21:02
Last Updated: 2017-06-11 03:23

Dependencies (11)

Required by (4)

Sources (1)

Latest Comments

jskier commented on 2017-06-14 13:50

Latest version doesn't compile:

grawity commented on 2017-04-01 13:31

Instead of removing hardening-wrapper globally, it should be enough to export:


Maybe this should be done in build().

jamesan commented on 2017-03-03 01:48

@vonpupp: I just resolved the same error you're encountering: "Only one of PREFIX or INSTALL_BASE can be given. Not both." You may have set up the perl-local-lib package, which defines environment variables that obstruct this build process. The perl-local-lib package sets up a local lib/ folder under your home directory for your specific user by overriding paths used to install perl modules system-wide using environment variables.

Check if PERL_MM_OPT is set. If it is, unset it and try to makepkg this PKGBUILD again. If that fails, try:


This is pulled from the ArchWiki Perl packaging guidelines:

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/ -o t/hivex_200_write.cmo
File "t/", line 58, characters 15-28:
Warning 3: deprecated: String.create
Use Bytes.create instead.
File "t/", line 60, characters 6-27:
Warning 3: deprecated: String.set
Use Bytes.set instead.
File "t/", line 61, characters 6-28:
Warning 3: deprecated: String.set
Use Bytes.set instead.
File "t/", line 63, characters 4-27:
Warning 3: deprecated: String.set
Use Bytes.set instead.
File "t/", line 64, characters 4-27:
Warning 3: deprecated: String.set
Use Bytes.set instead.
/bin/sh ../libtool --mode=execute -dlopen ../lib/ \
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/ -o t/hivex_300_fold.cmo
/bin/sh ../libtool --mode=execute -dlopen ../lib/ \
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().
==> ERROR: Makepkg was unable to build hivex.

mickours commented on 2016-06-13 08:59

It comes from the package hardening-wrapper:

The bug:

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.

All comments