--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/fcFJSNV5L7o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# github.com/tgulacsi/goracle/oracle
error: error reading '/Users/rongidron/instantclient_11_2/instantclient_11_2/sdk/include'
1 error generated.
connection.go:22:10: fatal error: 'oci.h' file not found
#include <oci.h>
^
Here are my CGO settings: (set | grep CGO)
CGO_CFLAGS=/Users/rongidron/instantclient_11_2/instantclient_11_2/sdk/include
CGO_LDFLAGS=/Users/rongidron/instantclient_11_2/instantclient_11_2
ls $CGO_CFLAGS
ldap.h occiAQ.h occiObjects.h ociap.h ocidfn.h ocixstream.h orid.h xa.h
nzerror.h occiCommon.h oci.h ociapr.h ociextp.h odci.h orl.h
nzt.h occiControl.h oci1.h ocidef.h ocikpr.h oratypes.h oro.h
occi.h occiData.h oci8dp.h ocidem.h ocixmldb.h ori.h ort.h
so I am not sure what is up...
export CGO_CFLAGS=-I/Users/rongidron/instantclient_11_2/instantclient_11_2/sdk/include
export CGO_LDFLAGS=-L/Users/rongidron/instantclient_11_2/instantclient_11_2
could not determine kind of name for C.OCIBreak
could not determine kind of name for C.OCITransRollback
could not determine kind of name for C.OCIPing
could not determine kind of name for C.setXID
could not determine kind of name for C.OCITransStart
could not determine kind of name for C.OCIServerDetach
# pkg-config --cflags oci8
Package oci8 was not found in the pkg-config search path.
Perhaps you should add the directory containing `oci8.pc'
to the PKG_CONFIG_PATH environment variable
No package 'oci8' found
exit status 1
I have instantclient 11g installed and sqlplus is working fine..
my CGO_LDFLAGS and CGO_CFLAGS are set..
Thanks
Thanks Tamas.Now I get:could not determine kind of name for C.OCIBreak
could not determine kind of name for C.OCITransRollback
could not determine kind of name for C.OCIPing
could not determine kind of name for C.setXID
could not determine kind of name for C.OCITransStart
could not determine kind of name for C.OCIServerDetach
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/fcFJSNV5L7o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
go build -x
WORK=/var/folders/95/g05l4r0j0dj5wml54jq8c_hr0000gn/T/go-build354543896
mkdir -p $WORK/github.com/tgulacsi/goracle/oracle/_obj/
mkdir -p $WORK/github.com/tgulacsi/goracle/
cd /Users/rongidron/develop/go/src/github.com/tgulacsi/goracle/oracle
/usr/local/Cellar/go/1.1.2/libexec/pkg/tool/darwin_amd64/cgo -objdir $WORK/github.com/tgulacsi/goracle/oracle/_obj/ -- -I/usr/local/oracle/product/instantclient_64/11.2.0.4.0/lib/sdk/include -I $WORK/github.com/tgulacsi/goracle/oracle/_obj/ connection.go cursor.go cursorvar.go datetimevar.go environment.go externallobvar.go lob_ctest.go lobvar.go longvar.go numbervar.go stringvar.go variable.go
# github.com/tgulacsi/goracle/oracle
could not determine kind of name for C.OCISessionBegin
could not determine kind of name for C.OCIServerAttach
could not determine kind of name for C.OCITransStart
could not determine kind of name for C.OCITransPrepare
could not determine kind of name for C.OCIClientVersion
could not determine kind of name for C.OCITransCommit
and here is what gcc -version looks like:
gcc -version
clang: error: unknown argument: '-version' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: error: no input files
I think this may be the problem:
https://support.enthought.com/entries/26184115-GCC-Clang-and-Cython-in-OS-X-10-9-Mavericks
I appreciate it very much if you can help me.
Thanks!