go-oci8: Cross Compile on OSX for linux fails
Hello ,
I am trying to build the binaries on OSX 10.11.6 using GO 1.8.1 for linux amd64. When compiling i get the errors below. For OSX compile it works perfectly.
GOOS=linux GOARCH=amd64 go build -v -o outageapi cmd/main.go
runtime/internal/sys
runtime/internal/atomic
runtime
errors
internal/race
math
sync/atomic
unicode/utf8
unicode
encoding
unicode/utf16
container/list
crypto/subtle
crypto/internal/cipherhw
sync
internal/nettrace
vendor/golang_org/x/crypto/curve25519
vendor/golang_org/x/crypto/poly1305
github.com/hashicorp/hcl/hcl/strconv
io
syscall
internal/singleflight
hash
crypto/cipher
hash/crc32
crypto/hmac
bytes
strings
bufio
vendor/golang_org/x/text/transform
golang.org/x/text/transform
path
html
github.com/pelletier/go-buffruneio
strconv
math/rand
internal/syscall/unix
golang.org/x/sys/unix
time
reflect
encoding/base64
crypto/aes
crypto
crypto/rc4
crypto/sha512
crypto/md5
crypto/sha1
crypto/sha256
os
fmt
sort
encoding/binary
encoding/pem
path/filepath
regexp/syntax
crypto/des
vendor/golang_org/x/crypto/chacha20poly1305/internal/chacha20
vendor/golang_org/x/crypto/chacha20poly1305
io/ioutil
github.com/spf13/afero/mem
encoding/json
context
compress/flate
math/big
encoding/hex
vendor/golang_org/x/net/http2/hpack
vendor/golang_org/x/net/idna
vendor/golang_org/x/text/unicode/norm
net
vendor/golang_org/x/text/width
log
mime
mime/quotedprintable
net/http/internal
net/url
regexp
database/sql/driver
compress/gzip
golang.org/x/net/context
encoding/csv
github.com/fsnotify/fsnotify
database/sql
github.com/hashicorp/hcl/hcl/token
github.com/hashicorp/hcl/hcl/ast
github.com/hashicorp/hcl/json/token
github.com/hashicorp/hcl/json/scanner
flag
github.com/hashicorp/hcl/json/parser
github.com/mitchellh/mapstructure
golang.org/x/text/unicode/norm
text/template/parse
github.com/hashicorp/hcl/hcl/scanner
github.com/hashicorp/hcl/hcl/parser
github.com/pelletier/go-toml
github.com/hashicorp/hcl
github.com/mattn/go-oci8
**# github.com/mattn/go-oci8
**../../mattn/go-oci8/oci8_go18.go:12:** undefined: OCI8Conn
**../../mattn/go-oci8/oci8_go18.go:17: undefined: OCI8Conn
**../../mattn/go-oci8/oci8_go18.go:18: undefined: namedValue
**../../mattn/go-oci8/oci8_go18.go:20: undefined: namedValue
**../../mattn/go-oci8/oci8_go18.go:26: undefined: OCI8Conn
**../../mattn/go-oci8/oci8_go18.go:27: undefined: namedValue
**../../mattn/go-oci8/oci8_go18.go:35: undefined: OCI8Conn
**../../mattn/go-oci8/oci8_go18.go:40: undefined: OCI8Conn
**../../mattn/go-oci8/oci8_go18.go:45: undefined: OCI8Stmt
**../../mattn/go-oci8/oci8_go18.go:54: undefined: OCI8Stmt
**../../mattn/go-oci8/oci8_go18.go:27: too many errors**
github.com/spf13/jwalterweatherman
gopkg.in/yaml.v2
os/exec
text/template
crypto/rand
crypto/elliptic
encoding/asn1
crypto/dsa
crypto/rsa
crypto/ecdsa
crypto/x509/pkix
html/template
github.com/spf13/cast
crypto/x509
vendor/golang_org/x/net/lex/httplex
net/textproto
github.com/spf13/pflag
mime/multipart
crypto/tls
net/http/httptrace
net/http
github.com/gorilla/mux
github.com/spf13/afero
github.com/magiconair/properties
github.com/rafael-azevedo/outageapi/logger
github.com/spf13/viper
github.com/rafael-azevedo/outageapi/utils
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 23 (10 by maintainers)
go-oci8 require oracle SDK so you need to install C compiler and SDK for the target OS.