cloudflare / cfssl

CFSSL: Cloudflare's PKI and TLS toolkit
https://cfssl.org/
BSD 2-Clause "Simplified" License
8.64k stars 1.1k forks source link

Merkle_tree.h doesn't exist #648

Open cody-adams opened 8 years ago

cody-adams commented 8 years ago

When compiling merkletree it gives me this error

# github.com/cloudflare/cfssl/vendor/github.com/google/certificate-transparency/go/merkletree github.com/cloudflare/cfssl/vendor/github.com/google/certificate-transparency/go/merkletree/merkle_tree_go.cc:1:36: fatal error: merkletree/merkle_tree.h: No such file or directory

When I look in the repo there is no Merkle_tree.h so I'm not sure exactly how I'm supposed to compile this outside of making my own.

kisom commented 8 years ago

A few questions:

  1. How are you compiling merkletree?
  2. What Go version are you using?
  3. What operating system are you using?

Thanks!

cody-adams commented 8 years ago

Ubuntu 16.04 go version go1.6.3 linux/amd64 And I'm following the guide in the BUILDING.md here https://github.com/cloudflare/cfssl/blob/master/BUILDING.md Using go install github.com/cloudflare/cfssl/...

SaMnCo commented 8 years ago

I had the same issue on 14.04 with Go 1.6 with, for some reason, GO15VENDOREXPERIMENT set to 1. After unsetting the variable, it worked for me.

As an intermediate step, but that was inconclusive, I did

sudo apt install libssl-dev
go get -u go get github.com/google/certificate-transparency/go/merkletree
baconalot commented 7 years ago

go 1.7.3 ubuntu 14.04:

go get -u github.com/google/certificate-transparency/go/merkletree github.com/google/certificate-transparency/go/merkletree In file included from ../../google/certificate-transparency/go/merkletree/merkle_tree_go.cc:1:0: ../../cpp/merkletree/merkle_tree.h:28:11: error: looser throw specifier for ‘virtual MerkleTree::~MerkleTree()’ In file included from ../../cpp/merkletree/merkle_tree.h:9:0, from ../../google/certificate-transparency/go/merkletree/merkle_tree_go.cc:1: ../../cpp/merkletree/merkle_tree_interface.h:19:11: error: overriding ‘virtual cert_trans::MerkleTreeInterface::~MerkleTreeInterface() noexcept (true)’