Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

fails to be build because undefined: elliptic.P224 #22

Closed
Telmo opened this issue Jul 14, 2014 · 4 comments
Closed

fails to be build because undefined: elliptic.P224 #22

Telmo opened this issue Jul 14, 2014 · 4 comments

Comments

@Telmo
Copy link

Telmo commented Jul 14, 2014

telmo@dcavm-ch2-052p ❯ git clone https://github.com/coreos/etcd-ca
Cloning into 'etcd-ca'...
remote: Reusing existing pack: 730, done.
remote: Total 730 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (730/730), 1.01 MiB | 1.49 MiB/s, done.
Resolving deltas: 100% (151/151), done.
⋯᚜ ~ ᚛⋯
telmo@dcavm-ch2-052p ❯ cd etcd-ca/
/opt/home/rmoral00/etcd-ca
⋯᚜ ~/etcd-ca ᚛⋯ ⋯᚜ master  ᚛⋯
telmo@dcavm-ch2-052p ❯ ./build
Building etcd-ca
# github.com/coreos/etcd-ca/third_party/github.com/jstemmer/pkcs10
src/github.com/coreos/etcd-ca/third_party/github.com/jstemmer/pkcs10/pkcs10.go:172: undefined: elliptic.P224
src/github.com/coreos/etcd-ca/third_party/github.com/jstemmer/pkcs10/x509.go:184: undefined: elliptic.P224
src/github.com/coreos/etcd-ca/third_party/github.com/jstemmer/pkcs10/x509.go:197: undefined: elliptic.P224
⋯᚜ ~/etcd-ca ᚛⋯ ⋯᚜ master  ✭ ᚛⋯
telmo@dcavm-ch2-052p ❯

 rmoral00@dcavm-ch2-052p ❯ go version
go version go1.2 linux/amd64
⋯᚜ ~/etcd-ca ᚛⋯ ⋯᚜ master  ✭ ᚛⋯
 rmoral00@dcavm-ch2-052p ❯ lsb_release -a
LSB Version:    :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 6.1 (Santiago)
Release:    6.1
Codename:   Santiago
@timbertson
Copy link

I get the same errors on fedora 20

@timbertson
Copy link

Well, that would be why: fedora / redhat removed that curve with a patch to golang in the official packages.

https://bugzilla.redhat.com/show_bug.cgi?id=1038683

The following hacky patch (to pkcs10) just comments out the failing lines, which now compiles (and seems to work), so presumably that curve is not actually required for etcd-ca with the default settings.

https://gist.github.com/gfxmonk/973a74e2c7d4020e5258

@kelseyhightower
Copy link
Contributor

@Telmo and @gfxmonk I'm not sure we want to get in the habit of keeping track of how distros patch golang. Today our projects require golang from upstream if you plan to build from source. I'm closing this issue based on this being a bug with Fedora/Redhat.

@davidstrauss
Copy link

Fedora and Red Hat complying with US patent law is hardly a distribution bug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants