Package Details: dislocker 0.7.3-4

Git Clone URL: (read-only, click to copy)
Package Base: dislocker
Description: Read/write BitLocker-encrypted volumes
Upstream URL:
Licenses: GPL2
Conflicts: dislocker-git
Submitter: mrxx
Maintainer: mrxx
Last Packager: mrxx
Votes: 32
Popularity: 0.001888
First Submitted: 2014-06-02 17:25 (UTC)
Last Updated: 2023-05-29 10:20 (UTC)

Dependencies (6)

Required by (0)

Sources (1)

Latest Comments

1 2 3 4 5 6 Next › Last »

Humpie commented on 2024-01-27 16:48 (UTC) (edited on 2024-01-27 16:58 (UTC) by Humpie)

Recently I'm getting:

jan 27 17:33:34 XXX mount[513]: dislocker: error while loading shared libraries: cannot open shared object file: No such file>

Might be a dependency issue with mbedtls, but I'm not sure.

Edit: a reinstall of this package fixed the error.

mrxx commented on 2023-05-29 10:21 (UTC)

Thanks, syntaxerrormmm. Version check added.

syntaxerrormmm commented on 2023-05-29 07:15 (UTC)

This breaks on Manjaro (which has mbedtls 2.28). Patch to the PKGBUILD to compile over Manjaro Stable:

diff --git a/PKGBUILD b/PKGBUILD
index fdd434f..0c38346 100644
@@ -26,7 +26,10 @@ build() {
         -D WARN_FLAGS:STRING="-Wall -Wextra" \

   # Fix mbedtls3 incompatibility
-  sed -i 's|mbedtls/config.h|mbedtls/mbedtls_config.h|;s|mbedtls_sha256_ret|mbedtls_sha256|' include/dislocker/ssl_bindings.h
+  mbedtlsver=$(LANG=C pacman -Qi mbedtls | awk '/^Version/ { print $3 }' | cut -d'.' -f 1)
+  if [[ ${mbedtlsver} -ge 3 ]]; then
+    sed -i 's|mbedtls/config.h|mbedtls/mbedtls_config.h|;s|mbedtls_sha256_ret|mbedtls_sha256|' include/dislocker/ssl_bindings.h
+  fi


mrxx commented on 2023-05-27 08:35 (UTC)

After applying the fixes proposed in it works again.

mbromilow commented on 2023-05-26 15:14 (UTC)

The following two sed replacements allow it to build with mbedtls2:

sed -i '16s@include@\0 PATHS /usr/include/mbedtls2@g' cmake/FindPolarSSL.cmake
sed -i '33,36s@mbed[a-z]*@\0 PATHS /usr/lib/mbedtls2@g' cmake/FindPolarSSL.cmake

It's a bit of a dirty hack, but I can't really find any cleaner way to get it to build. I haven't tested if it actually runs okay.

mrxx commented on 2023-05-26 10:36 (UTC)

I apologize, I've just set up a brand new test VM and now I also get the error "mbedtls/config.h: No such file or directory".

My "fresh installation" was a basic arch installation which was always kept up to date with nothing else installed than the dev tools.

mbromilow commented on 2023-05-26 02:30 (UTC)

To be fair to @korimitsu, this does not actually build in a clean chroot. I'm not sure what your fresh installation actually is, but it seems that the Arch mbedtls (or mbedtls2, for that matter) package is not compatible with this release of Dislocker. It seems to be looking for mbedtls/config.h, which according to the docs hasn't been the right location since 2.28:

Does this need an AUR version pinned to a 2.27 release of mbedtls to build against?

mrxx commented on 2023-05-17 19:15 (UTC) (edited on 2023-05-27 07:41 (UTC) by mrxx)

@korimitsu: the package builds fine at least on my installation machine. Update: you are right (see above). But again: Please do not flag a package out of date if it isn't.

korimitsu commented on 2023-05-07 12:14 (UTC) (edited on 2023-05-07 12:14 (UTC) by korimitsu)

Currently I have installed aur-mbedtls 3.4.0-1 because is required by dislocker-git, however it doesn't compile. In order to build dislocker from AUR, it must require to install mbedtls as dependency, which currently doesn't, so must be done manually:

pamac build mbedtls
Install mbedtls from community ? [y/N] y
Synchronizing package databases...
Refreshing community.db...                                                                                                                                                 
Resolving dependencies...                                                                                                                                                  
Checking inter-conflicts...

To install (1):
  mbedtls      2.28.2-1                              community  1.0 MB
To remove (1):
  aur-mbedtls  3.4.0-1   (Conflicts With: polarssl)  

Total download size: 1.0 MB
Total installed size: 7.0 MB
Total removed size: 10.5 MB

Apply transaction ?

So you must update your PKGBUILD to include this.

mrxx commented on 2023-05-02 08:34 (UTC)

@korimitsu: the package builds fine. Please read error messages thoroughly and fix the problem on your machine ("mbedtls/config.h: No such file or directory").

Again: do not misuse the "Flag package out of date" function for reporting problems. A package is not out of date because you have a problem, it is out of date only if there is a new upstream release. Git packages are never out of date btw.