Gocryptfs: Stuck building on Void Linux

Created on 11 Feb 2018  路  5Comments  路  Source: rfjakob/gocryptfs

I'm trying to build gocryptfs on Void Linux. Got stuck here after build.bash:

# pkg-config --cflags libcrypto
Package libcrypto was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcrypto.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcrypto' found
pkg-config: exit status 1

I have libcrypto41 (other version in their repo: 37 and 38) and libssl43 (also available: 38 and 39). In /usr/lib/pkgconfig there is nothing related to libcrypto. So I am missing libcrypto.pc. Is there any workaround for this or does it just not build on Void?

question

All 5 comments

Can you try this?

--- a/internal/stupidgcm/stupidgcm.go
+++ b/internal/stupidgcm/stupidgcm.go
@@ -5,7 +5,7 @@
 package stupidgcm

 // #include <openssl/evp.h>
-// #cgo pkg-config: libcrypto
+// #cgo LDFLAGS: -lcrypto
 import "C"

 import (

Otherwise, you can always ./build-without-openssl.bash which does not depend on libcrypto.

That did the trick! Thanks a lot.

I meet the same question when I want to build it on macOS

On macos there is no advantage with openssl
I recommend to use

./build-without-openssl.bash

I done well, thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Suika picture Suika  路  3Comments

pepa65 picture pepa65  路  8Comments

ccchan234 picture ccchan234  路  8Comments

cu picture cu  路  6Comments

rprieto picture rprieto  路  9Comments