Skip to content

编译ts后丢失sm4头文件,gosdk无法编译 #779

@BinaryRyan

Description

@BinaryRyan

我编译安装了ts之后,发现go版本sdk依赖sm4头文件,但是安装之后却没有这个文件

tongsuo版本:8.4.0
tongsuo-gosdk版本:1.0.0

./config --prefix=$(ts_install_prefix) $(rpath_args) enable-ec_elgamal enable-paillier enable-ntls 

gosdk

# github.com/tongsuo-project/tongsuo-go-sdk/crypto
In file included from ../../go/pkg/mod/github.com/tongsuo-project/tongsuo-go-sdk@v1.0.0/crypto/hmac.go:17:
./shim.h:28:10: fatal error: 'openssl/sm4.h' file not found
#include <openssl/sm4.h>
         ^~~~~~~~~~~~~~~
1 error generated.
make: *** [ntls] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions