Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/cgo: GCC Error #8570

Closed
gopherbot opened this issue Aug 22, 2014 · 6 comments

Comments

@gopherbot
Copy link

commented Aug 22, 2014

by Justin.K.Wood:

OSX 10.9

$ go version
go version go1.3.1 darwin/amd64



$ go get "code.google.com/p/odbc"
# code.google.com/p/odbc/api
/usr/bin/gcc did not produce error at completed:1
on input:
#line 10
"/Users/woodjk/work/eqworks/flash/src/code.google.com/p/odbc/api/api_unix.go"



 #include <sql.h>
 #include <sqlext.h>


#include <sys/types.h> /* for size_t below */

/* Define intgo when compiling with GCC.  */
#ifdef __PTRDIFF_TYPE__
typedef __PTRDIFF_TYPE__ intgo;
#elif defined(_LP64)
typedef long long intgo;
#else
typedef int intgo;
#endif

typedef struct { char *p; intgo n; } _GoString_;
typedef struct { char *p; intgo n; intgo c; } _GoBytes_;
_GoString_ GoString(char *p);
_GoString_ GoStringN(char *p, int l);
_GoBytes_ GoBytes(void *p, int n);
char *CString(_GoString_);
void *_CMalloc(size_t);
#line 1 "not-declared"
void __cgo_f_1_1(void) { __typeof__(SQL_TYPE_TIMESTAMP) *__cgo_undefined__; }
#line 1 "not-type"
void __cgo_f_1_2(void) { SQL_TYPE_TIMESTAMP *__cgo_undefined__; }
#line 1 "not-const"
void __cgo_f_1_3(void) { enum { __cgo__undefined__ = (SQL_TYPE_TIMESTAMP)*1 }; }
#line 2 "not-declared"
void __cgo_f_2_1(void) { __typeof__(SQL_C_UBIGINT) *__cgo_undefined__; }
#line 2 "not-type"
void __cgo_f_2_2(void) { SQL_C_UBIGINT *__cgo_undefined__; }
#line 2 "not-const"
void __cgo_f_2_3(void) { enum { __cgo__undefined__ = (SQL_C_UBIGINT)*1 }; }
#line 3 "not-declared"
void __cgo_f_3_1(void) { __typeof__(SQL_AUTOCOMMIT_ON) *__cgo_undefined__; }
#line 3 "not-type"
void __cgo_f_3_2(void) { SQL_AUTOCOMMIT_ON *__cgo_undefined__; }
#line 3 "not-const"
void __cgo_f_3_3(void) { enum { __cgo__undefined__ = (SQL_AUTOCOMMIT_ON)*1 }; }
#line 4 "not-declared"
void __cgo_f_4_1(void) { __typeof__(SQL_INTEGER) *__cgo_undefined__; }
#line 4 "not-type"
void __cgo_f_4_2(void) { SQL_INTEGER *__cgo_undefined__; }
#line 4 "not-const"
void __cgo_f_4_3(void) { enum { __cgo__undefined__ = (SQL_INTEGER)*1 }; }
#line 5 "not-declared"
void __cgo_f_5_1(void) { __typeof__(SQL_WCHAR) *__cgo_undefined__; }
#line 5 "not-type"
void __cgo_f_5_2(void) { SQL_WCHAR *__cgo_undefined__; }
#line 5 "not-const"
void __cgo_f_5_3(void) { enum { __cgo__undefined__ = (SQL_WCHAR)*1 }; }
#line 6 "not-declared"
void __cgo_f_6_1(void) { __typeof__(SQL_AUTOCOMMIT) *__cgo_undefined__; }
#line 6 "not-type"
void __cgo_f_6_2(void) { SQL_AUTOCOMMIT *__cgo_undefined__; }
#line 6 "not-const"
void __cgo_f_6_3(void) { enum { __cgo__undefined__ = (SQL_AUTOCOMMIT)*1 }; }
#line 7 "not-declared"
void __cgo_f_7_1(void) { __typeof__(SQL_CP_OFF) *__cgo_undefined__; }
#line 7 "not-type"
void __cgo_f_7_2(void) { SQL_CP_OFF *__cgo_undefined__; }
#line 7 "not-const"
void __cgo_f_7_3(void) { enum { __cgo__undefined__ = (SQL_CP_OFF)*1 }; }
#line 8 "not-declared"
void __cgo_f_8_1(void) { __typeof__(SQL_TINYINT) *__cgo_undefined__; }
#line 8 "not-type"
void __cgo_f_8_2(void) { SQL_TINYINT *__cgo_undefined__; }
#line 8 "not-const"
void __cgo_f_8_3(void) { enum { __cgo__undefined__ = (SQL_TINYINT)*1 }; }
#line 9 "not-declared"
void __cgo_f_9_1(void) { __typeof__(SQL_TIMESTAMP) *__cgo_undefined__; }
#line 9 "not-type"
void __cgo_f_9_2(void) { SQL_TIMESTAMP *__cgo_undefined__; }
#line 9 "not-const"
void __cgo_f_9_3(void) { enum { __cgo__undefined__ = (SQL_TIMESTAMP)*1 }; }
#line 10 "not-declared"
void __cgo_f_10_1(void) { __typeof__(SQL_REAL) *__cgo_undefined__; }
#line 10 "not-type"
void __cgo_f_10_2(void) { SQL_REAL *__cgo_undefined__; }
#line 10 "not-const"
void __cgo_f_10_3(void) { enum { __cgo__undefined__ = (SQL_REAL)*1 }; }
#line 11 "not-declared"
void __cgo_f_11_1(void) { __typeof__(SQL_GUID) *__cgo_undefined__; }
#line 11 "not-type"
void __cgo_f_11_2(void) { SQL_GUID *__cgo_undefined__; }
#line 11 "not-const"
void __cgo_f_11_3(void) { enum { __cgo__undefined__ = (SQL_GUID)*1 }; }
#line 12 "not-declared"
void __cgo_f_12_1(void) { __typeof__(SQLWCHAR) *__cgo_undefined__; }
#line 12 "not-type"
void __cgo_f_12_2(void) { SQLWCHAR *__cgo_undefined__; }
#line 12 "not-const"
void __cgo_f_12_3(void) { enum { __cgo__undefined__ = (SQLWCHAR)*1 }; }
#line 13 "not-declared"
void __cgo_f_13_1(void) { __typeof__(SQL_NTS) *__cgo_undefined__; }
#line 13 "not-type"
void __cgo_f_13_2(void) { SQL_NTS *__cgo_undefined__; }
#line 13 "not-const"
void __cgo_f_13_3(void) { enum { __cgo__undefined__ = (SQL_NTS)*1 }; }
#line 14 "not-declared"
void __cgo_f_14_1(void) { __typeof__(SQLSCHAR) *__cgo_undefined__; }
#line 14 "not-type"
void __cgo_f_14_2(void) { SQLSCHAR *__cgo_undefined__; }
#line 14 "not-const"
void __cgo_f_14_3(void) { enum { __cgo__undefined__ = (SQLSCHAR)*1 }; }
#line 15 "not-declared"
void __cgo_f_15_1(void) { __typeof__(SQL_NULL_DATA) *__cgo_undefined__; }
#line 15 "not-type"
void __cgo_f_15_2(void) { SQL_NULL_DATA *__cgo_undefined__; }
#line 15 "not-const"
void __cgo_f_15_3(void) { enum { __cgo__undefined__ = (SQL_NULL_DATA)*1 }; }
#line 16 "not-declared"
void __cgo_f_16_1(void) { __typeof__(SQL_CP_ONE_PER_DRIVER) *__cgo_undefined__; }
#line 16 "not-type"
void __cgo_f_16_2(void) { SQL_CP_ONE_PER_DRIVER *__cgo_undefined__; }
#line 16 "not-const"
void __cgo_f_16_3(void) { enum { __cgo__undefined__ = (SQL_CP_ONE_PER_DRIVER)*1 }; }
#line 17 "not-declared"
void __cgo_f_17_1(void) { __typeof__(SQL_BIT) *__cgo_undefined__; }
#line 17 "not-type"
void __cgo_f_17_2(void) { SQL_BIT *__cgo_undefined__; }
#line 17 "not-const"
void __cgo_f_17_3(void) { enum { __cgo__undefined__ = (SQL_BIT)*1 }; }
#line 18 "not-declared"
void __cgo_f_18_1(void) { __typeof__(SQL_DOUBLE) *__cgo_undefined__; }
#line 18 "not-type"
void __cgo_f_18_2(void) { SQL_DOUBLE *__cgo_undefined__; }
#line 18 "not-const"
void __cgo_f_18_3(void) { enum { __cgo__undefined__ = (SQL_DOUBLE)*1 }; }
#line 19 "not-declared"
void __cgo_f_19_1(void) { __typeof__(SQL_CP_ONE_PER_HENV) *__cgo_undefined__; }
#line 19 "not-type"
void __cgo_f_19_2(void) { SQL_CP_ONE_PER_HENV *__cgo_undefined__; }
#line 19 "not-const"
void __cgo_f_19_3(void) { enum { __cgo__undefined__ = (SQL_CP_ONE_PER_HENV)*1 }; }
#line 20 "not-declared"
void __cgo_f_20_1(void) { __typeof__(SQL_LONGVARCHAR) *__cgo_undefined__; }
#line 20 "not-type"
void __cgo_f_20_2(void) { SQL_LONGVARCHAR *__cgo_undefined__; }
#line 20 "not-const"
void __cgo_f_20_3(void) { enum { __cgo__undefined__ = (SQL_LONGVARCHAR)*1 }; }
#line 21 "not-declared"
void __cgo_f_21_1(void) { __typeof__(SQL_SIGNED_OFFSET) *__cgo_undefined__; }
#line 21 "not-type"
void __cgo_f_21_2(void) { SQL_SIGNED_OFFSET *__cgo_undefined__; }
#line 21 "not-const"
void __cgo_f_21_3(void) { enum { __cgo__undefined__ = (SQL_SIGNED_OFFSET)*1 }; }
#line 22 "not-declared"
void __cgo_f_22_1(void) { __typeof__(SQLLEN) *__cgo_undefined__; }
#line 22 "not-type"
void __cgo_f_22_2(void) { SQLLEN *__cgo_undefined__; }
#line 22 "not-const"
void __cgo_f_22_3(void) { enum { __cgo__undefined__ = (SQLLEN)*1 }; }
#line 23 "not-declared"
void __cgo_f_23_1(void) { __typeof__(SQL_NULL_HANDLE) *__cgo_undefined__; }
#line 23 "not-type"
void __cgo_f_23_2(void) { SQL_NULL_HANDLE *__cgo_undefined__; }
#line 23 "not-const"
void __cgo_f_23_3(void) { enum { __cgo__undefined__ = (SQL_NULL_HANDLE)*1 }; }
#line 24 "not-declared"
void __cgo_f_24_1(void) { __typeof__(SQL_BIGINT) *__cgo_undefined__; }
#line 24 "not-type"
void __cgo_f_24_2(void) { SQL_BIGINT *__cgo_undefined__; }
#line 24 "not-const"
void __cgo_f_24_3(void) { enum { __cgo__undefined__ = (SQL_BIGINT)*1 }; }
#line 25 "not-declared"
void __cgo_f_25_1(void) { __typeof__(SQL_GUID) *__cgo_undefined__; }
#line 25 "not-type"
void __cgo_f_25_2(void) { SQL_GUID *__cgo_undefined__; }
#line 25 "not-const"
void __cgo_f_25_3(void) { enum { __cgo__undefined__ = (SQL_GUID)*1 }; }
#line 26 "not-declared"
void __cgo_f_26_1(void) { __typeof__(SQL_CP_STRICT_MATCH) *__cgo_undefined__; }
#line 26 "not-type"
void __cgo_f_26_2(void) { SQL_CP_STRICT_MATCH *__cgo_undefined__; }
#line 26 "not-const"
void __cgo_f_26_3(void) { enum { __cgo__undefined__ = (SQL_CP_STRICT_MATCH)*1 }; }
#line 27 "not-declared"
void __cgo_f_27_1(void) { __typeof__(SQLHDBC) *__cgo_undefined__; }
#line 27 "not-type"
void __cgo_f_27_2(void) { SQLHDBC *__cgo_undefined__; }
#line 27 "not-const"
void __cgo_f_27_3(void) { enum { __cgo__undefined__ = (SQLHDBC)*1 }; }
#line 28 "not-declared"
void __cgo_f_28_1(void) { __typeof__(SQLINTEGER) *__cgo_undefined__; }
#line 28 "not-type"
void __cgo_f_28_2(void) { SQLINTEGER *__cgo_undefined__; }
#line 28 "not-const"
void __cgo_f_28_3(void) { enum { __cgo__undefined__ = (SQLINTEGER)*1 }; }
#line 29 "not-declared"
void __cgo_f_29_1(void) { __typeof__(SQL_TIME) *__cgo_undefined__; }
#line 29 "not-type"
void __cgo_f_29_2(void) { SQL_TIME *__cgo_undefined__; }
#line 29 "not-const"
void __cgo_f_29_3(void) { enum { __cgo__undefined__ = (SQL_TIME)*1 }; }
#line 30 "not-declared"
void __cgo_f_30_1(void) { __typeof__(SQL_AUTOCOMMIT_OFF) *__cgo_undefined__; }
#line 30 "not-type"
void __cgo_f_30_2(void) { SQL_AUTOCOMMIT_OFF *__cgo_undefined__; }
#line 30 "not-const"
void __cgo_f_30_3(void) { enum { __cgo__undefined__ = (SQL_AUTOCOMMIT_OFF)*1 }; }
#line 31 "not-declared"
void __cgo_f_31_1(void) { __typeof__(SQL_AUTOCOMMIT_ON) *__cgo_undefined__; }
#line 31 "not-type"
void __cgo_f_31_2(void) { SQL_AUTOCOMMIT_ON *__cgo_undefined__; }
#line 31 "not-const"
void __cgo_f_31_3(void) { enum { __cgo__undefined__ = (SQL_AUTOCOMMIT_ON)*1 }; }
#line 32 "not-declared"
void __cgo_f_32_1(void) { __typeof__(SQLUINTEGER) *__cgo_undefined__; }
#line 32 "not-type"
void __cgo_f_32_2(void) { SQLUINTEGER *__cgo_undefined__; }
#line 32 "not-const"
void __cgo_f_32_3(void) { enum { __cgo__undefined__ = (SQLUINTEGER)*1 }; }
#line 33 "not-declared"
void __cgo_f_33_1(void) { __typeof__(SQLGUID) *__cgo_undefined__; }
#line 33 "not-type"
void __cgo_f_33_2(void) { SQLGUID *__cgo_undefined__; }
#line 33 "not-const"
void __cgo_f_33_3(void) { enum { __cgo__undefined__ = (SQLGUID)*1 }; }
#line 34 "not-declared"
void __cgo_f_34_1(void) { __typeof__(SQL_LONGVARBINARY) *__cgo_undefined__; }
#line 34 "not-type"
void __cgo_f_34_2(void) { SQL_LONGVARBINARY *__cgo_undefined__; }
#line 34 "not-const"
void __cgo_f_34_3(void) { enum { __cgo__undefined__ = (SQL_LONGVARBINARY)*1 }; }
#line 35 "not-declared"
void __cgo_f_35_1(void) { __typeof__(SQL_DATE) *__cgo_undefined__; }
#line 35 "not-type"
void __cgo_f_35_2(void) { SQL_DATE *__cgo_undefined__; }
#line 35 "not-const"
void __cgo_f_35_3(void) { enum { __cgo__undefined__ = (SQL_DATE)*1 }; }
#line 36 "not-declared"
void __cgo_f_36_1(void) { __typeof__(SQL_BINARY) *__cgo_undefined__; }
#line 36 "not-type"
void __cgo_f_36_2(void) { SQL_BINARY *__cgo_undefined__; }
#line 36 "not-const"
void __cgo_f_36_3(void) { enum { __cgo__undefined__ = (SQL_BINARY)*1 }; }
#line 37 "not-declared"
void __cgo_f_37_1(void) { __typeof__(SQL_BINARY) *__cgo_undefined__; }
#line 37 "not-type"
void __cgo_f_37_2(void) { SQL_BINARY *__cgo_undefined__; }
#line 37 "not-const"
void __cgo_f_37_3(void) { enum { __cgo__undefined__ = (SQL_BINARY)*1 }; }
#line 38 "not-declared"
void __cgo_f_38_1(void) { __typeof__(SQL_UNSIGNED_OFFSET) *__cgo_undefined__; }
#line 38 "not-type"
void __cgo_f_38_2(void) { SQL_UNSIGNED_OFFSET *__cgo_undefined__; }
#line 38 "not-const"
void __cgo_f_38_3(void) { enum { __cgo__undefined__ = (SQL_UNSIGNED_OFFSET)*1 }; }
#line 39 "not-declared"
void __cgo_f_39_1(void) { __typeof__(SQL_SMALLINT) *__cgo_undefined__; }
#line 39 "not-type"
void __cgo_f_39_2(void) { SQL_SMALLINT *__cgo_undefined__; }
#line 39 "not-const"
void __cgo_f_39_3(void) { enum { __cgo__undefined__ = (SQL_SMALLINT)*1 }; }
#line 40 "not-declared"
void __cgo_f_40_1(void) { __typeof__(SQL_NUMERIC) *__cgo_undefined__; }
#line 40 "not-type"
void __cgo_f_40_2(void) { SQL_NUMERIC *__cgo_undefined__; }
#line 40 "not-const"
void __cgo_f_40_3(void) { enum { __cgo__undefined__ = (SQL_NUMERIC)*1 }; }
#line 41 "not-declared"
void __cgo_f_41_1(void) { __typeof__(SQL_C_SBIGINT) *__cgo_undefined__; }
#line 41 "not-type"
void __cgo_f_41_2(void) { SQL_C_SBIGINT *__cgo_undefined__; }
#line 41 "not-const"
void __cgo_f_41_3(void) { enum { __cgo__undefined__ = (SQL_C_SBIGINT)*1 }; }
#line 42 "not-declared"
void __cgo_f_42_1(void) { __typeof__(SQLHENV) *__cgo_undefined__; }
#line 42 "not-type"
void __cgo_f_42_2(void) { SQLHENV *__cgo_undefined__; }
#line 42 "not-const"
void __cgo_f_42_3(void) { enum { __cgo__undefined__ = (SQLHENV)*1 }; }
#line 43 "not-declared"
void __cgo_f_43_1(void) { __typeof__(SQL_OV_ODBC3) *__cgo_undefined__; }
#line 43 "not-type"
void __cgo_f_43_2(void) { SQL_OV_ODBC3 *__cgo_undefined__; }
#line 43 "not-const"
void __cgo_f_43_3(void) { enum { __cgo__undefined__ = (SQL_OV_ODBC3)*1 }; }
#line 44 "not-declared"
void __cgo_f_44_1(void) { __typeof__(SQL_VARBINARY) *__cgo_undefined__; }
#line 44 "not-type"
void __cgo_f_44_2(void) { SQL_VARBINARY *__cgo_undefined__; }
#line 44 "not-const"
void __cgo_f_44_3(void) { enum { __cgo__undefined__ = (SQL_VARBINARY)*1 }; }
#line 45 "not-declared"
void __cgo_f_45_1(void) { __typeof__(SQL_WLONGVARCHAR) *__cgo_undefined__; }
#line 45 "not-type"
void __cgo_f_45_2(void) { SQL_WLONGVARCHAR *__cgo_undefined__; }
#line 45 "not-const"
void __cgo_f_45_3(void) { enum { __cgo__undefined__ = (SQL_WLONGVARCHAR)*1 }; }
#line 46 "not-declared"
void __cgo_f_46_1(void) { __typeof__(SQLRETURN) *__cgo_undefined__; }
#line 46 "not-type"
void __cgo_f_46_2(void) { SQLRETURN *__cgo_undefined__; }
#line 46 "not-const"
void __cgo_f_46_3(void) { enum { __cgo__undefined__ = (SQLRETURN)*1 }; }
#line 47 "not-declared"
void __cgo_f_47_1(void) { __typeof__(SQLHANDLE) *__cgo_undefined__; }
#line 47 "not-type"
void __cgo_f_47_2(void) { SQLHANDLE *__cgo_undefined__; }
#line 47 "not-const"
void __cgo_f_47_3(void) { enum { __cgo__undefined__ = (SQLHANDLE)*1 }; }
#line 48 "not-declared"
void __cgo_f_48_1(void) { __typeof__(SQLSMALLINT) *__cgo_undefined__; }
#line 48 "not-type"
void __cgo_f_48_2(void) { SQLSMALLINT *__cgo_undefined__; }
#line 48 "not-const"
void __cgo_f_48_3(void) { enum { __cgo__undefined__ = (SQLSMALLINT)*1 }; }
#line 49 "not-declared"
void __cgo_f_49_1(void) { __typeof__(SQLUSMALLINT) *__cgo_undefined__; }
#line 49 "not-type"
void __cgo_f_49_2(void) { SQLUSMALLINT *__cgo_undefined__; }
#line 49 "not-const"
void __cgo_f_49_3(void) { enum { __cgo__undefined__ = (SQLUSMALLINT)*1 }; }
#line 50 "not-declared"
void __cgo_f_50_1(void) { __typeof__(SQLPOINTER) *__cgo_undefined__; }
#line 50 "not-type"
void __cgo_f_50_2(void) { SQLPOINTER *__cgo_undefined__; }
#line 50 "not-const"
void __cgo_f_50_3(void) { enum { __cgo__undefined__ = (SQLPOINTER)*1 }; }
#line 51 "not-declared"
void __cgo_f_51_1(void) { __typeof__(SQL_IS_UINTEGER) *__cgo_undefined__; }
#line 51 "not-type"
void __cgo_f_51_2(void) { SQL_IS_UINTEGER *__cgo_undefined__; }
#line 51 "not-const"
void __cgo_f_51_3(void) { enum { __cgo__undefined__ = (SQL_IS_UINTEGER)*1 }; }
#line 52 "not-declared"
void __cgo_f_52_1(void) { __typeof__(SQL_WVARCHAR) *__cgo_undefined__; }
#line 52 "not-type"
void __cgo_f_52_2(void) { SQL_WVARCHAR *__cgo_undefined__; }
#line 52 "not-const"
void __cgo_f_52_3(void) { enum { __cgo__undefined__ = (SQL_WVARCHAR)*1 }; }
#line 53 "not-declared"
void __cgo_f_53_1(void) { __typeof__(SQL_INVALID_HANDLE) *__cgo_undefined__; }
#line 53 "not-type"
void __cgo_f_53_2(void) { SQL_INVALID_HANDLE *__cgo_undefined__; }
#line 53 "not-const"
void __cgo_f_53_3(void) { enum { __cgo__undefined__ = (SQL_INVALID_HANDLE)*1 }; }
#line 54 "not-declared"
void __cgo_f_54_1(void) { __typeof__(SQL_NO_TOTAL) *__cgo_undefined__; }
#line 54 "not-type"
void __cgo_f_54_2(void) { SQL_NO_TOTAL *__cgo_undefined__; }
#line 54 "not-const"
void __cgo_f_54_3(void) { enum { __cgo__undefined__ = (SQL_NO_TOTAL)*1 }; }
#line 55 "not-declared"
void __cgo_f_55_1(void) { __typeof__(SQL_BIT) *__cgo_undefined__; }
#line 55 "not-type"
void __cgo_f_55_2(void) { SQL_BIT *__cgo_undefined__; }
#line 55 "not-const"
void __cgo_f_55_3(void) { enum { __cgo__undefined__ = (SQL_BIT)*1 }; }
#line 56 "not-declared"
void __cgo_f_56_1(void) { __typeof__(SQL_CP_RELAXED_MATCH) *__cgo_undefined__; }
#line 56 "not-type"
void __cgo_f_56_2(void) { SQL_CP_RELAXED_MATCH *__cgo_undefined__; }
#line 56 "not-const"
void __cgo_f_56_3(void) { enum { __cgo__undefined__ = (SQL_CP_RELAXED_MATCH)*1 }; }
#line 57 "not-declared"
void __cgo_f_57_1(void) { __typeof__(SQL_WCHAR) *__cgo_undefined__; }
#line 57 "not-type"
void __cgo_f_57_2(void) { SQL_WCHAR *__cgo_undefined__; }
#line 57 "not-const"
void __cgo_f_57_3(void) { enum { __cgo__undefined__ = (SQL_WCHAR)*1 }; }
#line 58 "not-declared"
void __cgo_f_58_1(void) { __typeof__(SQL_CHAR) *__cgo_undefined__; }
#line 58 "not-type"
void __cgo_f_58_2(void) { SQL_CHAR *__cgo_undefined__; }
#line 58 "not-const"
void __cgo_f_58_3(void) { enum { __cgo__undefined__ = (SQL_CHAR)*1 }; }
#line 59 "not-declared"
void __cgo_f_59_1(void) { __typeof__(SQLULEN) *__cgo_undefined__; }
#line 59 "not-type"
void __cgo_f_59_2(void) { SQLULEN *__cgo_undefined__; }
#line 59 "not-const"
void __cgo_f_59_3(void) { enum { __cgo__undefined__ = (SQLULEN)*1 }; }
#line 60 "not-declared"
void __cgo_f_60_1(void) { __typeof__(SQL_DATA_AT_EXEC) *__cgo_undefined__; }
#line 60 "not-type"
void __cgo_f_60_2(void) { SQL_DATA_AT_EXEC *__cgo_undefined__; }
#line 60 "not-const"
void __cgo_f_60_3(void) { enum { __cgo__undefined__ = (SQL_DATA_AT_EXEC)*1 }; }
#line 61 "not-declared"
void __cgo_f_61_1(void) { __typeof__(SQLHSTMT) *__cgo_undefined__; }
#line 61 "not-type"
void __cgo_f_61_2(void) { SQLHSTMT *__cgo_undefined__; }
#line 61 "not-const"
void __cgo_f_61_3(void) { enum { __cgo__undefined__ = (SQLHSTMT)*1 }; }
#line 1 "completed"
int __cgo__1 = __cgo__2;

$ 


Let me know if you need anything else for debugging purposes.
@alexbrainman

This comment has been minimized.

Copy link
Member

commented Aug 28, 2014

Comment 2:

I am not an expert here, just reading source code ...
The problem appears to be cgo. It is trying to figure all C defines, variables and
functions out of
/Users/woodjk/work/eqworks/flash/src/code.google.com/p/odbc/api/api_unix.go file. It's
doing this (see $GOROOT/src/cmd/gcc.go) by creating small C program that uses all above
mentioned bits in a various scenarios, builds the file, and then parses gcc errors to
figure out the nature of every bit. cgo expects gcc output to contain certain phrases.
Yours does not contain expected output.
Unfortunately, cgo error message does not include full gcc output, so we can see where
cgo logic fails. Perhaps you can provide that output. This bit of code has been changed
recently just for the same reason. If you update your Go to the tip, you should be able
to see full gcc output. Alternatively, you can change your source:
diff --git a/src/cmd/cgo/gcc.go b/src/cmd/cgo/gcc.go
--- a/src/cmd/cgo/gcc.go
+++ b/src/cmd/cgo/gcc.go
@@ -374,7 +374,7 @@
    }
 
    if !completed {
-       fatalf("%s did not produce error at completed:1\non input:\n%s", p.gccBaseCmd()[0],
b.Bytes())
+       fatalf("%s did not produce error at completed:1\non input:\n%s\nfull error
output:\n%s", p.gccBaseCmd()[0], b.Bytes(), stderr)
    }
 
    for i, n := range names {
to do the same. Please, report here what you discover. Thank you.
Alex

Status changed to WaitingForReply.

@griesemer

This comment has been minimized.

Copy link
Contributor

commented Oct 1, 2014

Comment 3:

Labels changed: added repo-main.

@gopherbot

This comment has been minimized.

Copy link
Author

commented Oct 3, 2014

Comment 4 by matzhouse:

Hi,
This usually happens for me when the CC environment variable is not set.
env CC=cc go get... etc sorts it out as far as I can see but not entirely sure what the
problem is for the default go get command.
Hope that helps,
@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Oct 3, 2014

Comment 5:

If this happens for you at tip, please paste the complete output.

Labels changed: added release-go1.5.

@bradfitz bradfitz modified the milestone: Go1.5 Dec 16, 2014

@bradfitz bradfitz removed the release-go1.5 label Dec 16, 2014

@trombonehero

This comment has been minimized.

Copy link

commented Apr 14, 2015

Could this be related to #10453?

@rsc rsc removed the waitingforreply label Apr 14, 2015

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Apr 14, 2015

I'm going to close this for lack of information. Please reopen if you have more information. Thanks.

@golang golang locked and limited conversation to collaborators Jun 25, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
7 participants
You can’t perform that action at this time.