-
-
Save graysky2/38a136cfaecbf71e7bfc40cfaa120526 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> Starting prepare()... | |
==> Starting build()... | |
# plugin | |
gcc did not produce error at completed:1 | |
on input: | |
#line 1 "cgo-builtin-prolog" | |
#include <stddef.h> /* for ptrdiff_t and size_t below */ | |
/* Define intgo when compiling with GCC. */ | |
typedef ptrdiff_t intgo; | |
#define GO_CGO_GOSTRING_TYPEDEF | |
typedef struct { const 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 *CBytes(_GoBytes_); | |
void *_CMalloc(size_t); | |
__attribute__ ((unused)) | |
static size_t _GoStringLen(_GoString_ s) { return (size_t)s.n; } | |
__attribute__ ((unused)) | |
static const char *_GoStringPtr(_GoString_ s) { return s.p; } | |
#line 9 "/usr/lib/go/src/plugin/plugin_dlopen.go" | |
#include <dlfcn.h> | |
#include <limits.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
static uintptr_t pluginOpen(const char* path, char** err) { | |
void* h = dlopen(path, RTLD_NOW|RTLD_GLOBAL); | |
if (h == NULL) { | |
*err = (char*)dlerror(); | |
} | |
return (uintptr_t)h; | |
} | |
static void* pluginLookup(uintptr_t h, const char* name, char** err) { | |
void* r = dlsym((void*)h, name); | |
if (r == NULL) { | |
*err = (char*)dlerror(); | |
} | |
return r; | |
} | |
#line 1 "cgo-generated-wrapper" | |
#line 1 "not-declared" | |
void __cgo_f_1_1(void) { __typeof__(GoString) *__cgo_undefined__1; } | |
#line 1 "not-type" | |
void __cgo_f_1_2(void) { GoString *__cgo_undefined__2; } | |
#line 1 "not-int-const" | |
void __cgo_f_1_3(void) { enum { __cgo_undefined__3 = (GoString)*1 }; } | |
#line 1 "not-num-const" | |
void __cgo_f_1_4(void) { static const double __cgo_undefined__4 = (GoString); } | |
#line 1 "not-str-lit" | |
void __cgo_f_1_5(void) { static const char __cgo_undefined__5[] = (GoString); } | |
#line 2 "not-declared" | |
void __cgo_f_2_1(void) { __typeof__(char) *__cgo_undefined__1; } | |
#line 2 "not-type" | |
void __cgo_f_2_2(void) { char *__cgo_undefined__2; } | |
#line 2 "not-int-const" | |
void __cgo_f_2_3(void) { enum { __cgo_undefined__3 = (char)*1 }; } | |
#line 2 "not-num-const" | |
void __cgo_f_2_4(void) { static const double __cgo_undefined__4 = (char); } | |
#line 2 "not-str-lit" | |
void __cgo_f_2_5(void) { static const char __cgo_undefined__5[] = (char); } | |
#line 3 "not-declared" | |
void __cgo_f_3_1(void) { __typeof__(pluginLookup) *__cgo_undefined__1; } | |
#line 3 "not-type" | |
void __cgo_f_3_2(void) { pluginLookup *__cgo_undefined__2; } | |
#line 3 "not-int-const" | |
void __cgo_f_3_3(void) { enum { __cgo_undefined__3 = (pluginLookup)*1 }; } | |
#line 3 "not-num-const" | |
void __cgo_f_3_4(void) { static const double __cgo_undefined__4 = (pluginLookup); } | |
#line 3 "not-str-lit" | |
void __cgo_f_3_5(void) { static const char __cgo_undefined__5[] = (pluginLookup); } | |
#line 4 "not-declared" | |
void __cgo_f_4_1(void) { __typeof__(pluginOpen) *__cgo_undefined__1; } | |
#line 4 "not-type" | |
void __cgo_f_4_2(void) { pluginOpen *__cgo_undefined__2; } | |
#line 4 "not-int-const" | |
void __cgo_f_4_3(void) { enum { __cgo_undefined__3 = (pluginOpen)*1 }; } | |
#line 4 "not-num-const" | |
void __cgo_f_4_4(void) { static const double __cgo_undefined__4 = (pluginOpen); } | |
#line 4 "not-str-lit" | |
void __cgo_f_4_5(void) { static const char __cgo_undefined__5[] = (pluginOpen); } | |
#line 5 "not-declared" | |
void __cgo_f_5_1(void) { __typeof__(realpath) *__cgo_undefined__1; } | |
#line 5 "not-type" | |
void __cgo_f_5_2(void) { realpath *__cgo_undefined__2; } | |
#line 5 "not-int-const" | |
void __cgo_f_5_3(void) { enum { __cgo_undefined__3 = (realpath)*1 }; } | |
#line 5 "not-num-const" | |
void __cgo_f_5_4(void) { static const double __cgo_undefined__4 = (realpath); } | |
#line 5 "not-str-lit" | |
void __cgo_f_5_5(void) { static const char __cgo_undefined__5[] = (realpath); } | |
#line 1 "completed" | |
int __cgo__1 = __cgo__2; | |
full error output: | |
not-type: In function '__cgo_f_1_2': | |
not-type:1:36: error: '__cgo_undefined__2' undeclared (first use in this function) | |
not-type:1:36: note: each undeclared identifier is reported only once for each function it appears in | |
not-int-const: In function '__cgo_f_1_3': | |
not-int-const:1:64: error: invalid operands to binary * (have '_GoString_ (*)(char *)' and 'int') | |
not-num-const: In function '__cgo_f_1_4': | |
not-num-const:1:67: error: incompatible types when initializing type 'double' using type '_GoString_ (*)(char *)' | |
not-str-lit: In function '__cgo_f_1_5': | |
not-str-lit:1:67: error: invalid initializer | |
not-int-const: In function '__cgo_f_2_3': | |
not-int-const:2:60: error: invalid type argument of unary '*' (have 'int') | |
not-int-const:2:33: error: enumerator value for '__cgo_undefined__3' is not an integer constant | |
not-num-const: In function '__cgo_f_2_4': | |
not-num-const:2:73: error: expected expression before ';' token | |
not-num-const:2:67: error: initializer element is not constant | |
not-str-lit: In function '__cgo_f_2_5': | |
not-str-lit:2:73: error: expected expression before ';' token | |
not-str-lit:2:67: error: invalid initializer | |
not-type: In function '__cgo_f_3_2': | |
not-type:3:40: error: '__cgo_undefined__2' undeclared (first use in this function) | |
not-type:3:39: error: invalid operands to binary * (have 'void * (*)(uintptr_t, const char *, char **)' {aka 'void * (*)(long unsigned int, const char *, char **)'} and 'const char *') | |
not-int-const: In function '__cgo_f_3_3': | |
not-int-const:3:68: error: invalid operands to binary * (have 'void * (*)(uintptr_t, const char *, char **)' {aka 'void * (*)(long unsigned int, const char *, char **)'} and 'int') | |
not-num-const: In function '__cgo_f_3_4': | |
not-num-const:3:67: error: incompatible types when initializing type 'double' using type 'void * (*)(uintptr_t, const char *, char **)' {aka 'void * (*)(long unsigned int, const char *, char **)'} | |
not-str-lit: In function '__cgo_f_3_5': | |
not-str-lit:3:67: error: invalid initializer | |
not-type: In function '__cgo_f_4_2': | |
not-type:4:38: error: '__cgo_undefined__2' undeclared (first use in this function) | |
not-type:4:37: error: invalid operands to binary * (have 'uintptr_t (*)(const char *, char **)' {aka 'long unsigned int (*)(const char *, char **)'} and 'const char *') | |
not-int-const: In function '__cgo_f_4_3': | |
not-int-const:4:66: error: invalid operands to binary * (have 'uintptr_t (*)(const char *, char **)' {aka 'long unsigned int (*)(const char *, char **)'} and 'int') | |
not-num-const: In function '__cgo_f_4_4': | |
not-num-const:4:67: error: incompatible types when initializing type 'double' using type 'uintptr_t (*)(const char *, char **)' {aka 'long unsigned int (*)(const char *, char **)'} | |
not-str-lit: In function '__cgo_f_4_5': | |
not-str-lit:4:67: error: invalid initializer | |
not-type: In function '__cgo_f_5_2': | |
not-type:5:36: error: '__cgo_undefined__2' undeclared (first use in this function) | |
not-type:5:35: error: invalid operands to binary * (have 'char * (*)(const char * restrict, char * restrict)' and 'const char *') | |
not-int-const: In function '__cgo_f_5_3': | |
not-int-const:5:64: error: invalid operands to binary * (have 'char * (*)(const char * restrict, char * restrict)' and 'int') | |
not-num-const: In function '__cgo_f_5_4': | |
not-num-const:5:67: error: incompatible types when initializing type 'double' using type 'char * (*)(const char * restrict, char * restrict)' | |
not-str-lit: In function '__cgo_f_5_5': | |
not-str-lit:5:67: error: invalid initializer | |
completed: At top level: | |
completed:1:16: error: '__cgo__2' undeclared here (not in a function); did you mean '__cgo__1'? | |
completed:1:16: error: initializer element is not constant | |
# net | |
gcc did not produce error at completed:1 | |
on input: | |
#line 1 "cgo-builtin-prolog" | |
#include <stddef.h> /* for ptrdiff_t and size_t below */ | |
/* Define intgo when compiling with GCC. */ | |
typedef ptrdiff_t intgo; | |
#define GO_CGO_GOSTRING_TYPEDEF | |
typedef struct { const 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 *CBytes(_GoBytes_); | |
void *_CMalloc(size_t); | |
__attribute__ ((unused)) | |
static size_t _GoStringLen(_GoString_ s) { return (size_t)s.n; } | |
__attribute__ ((unused)) | |
static const char *_GoStringPtr(_GoString_ s) { return s.p; } | |
#line 10 "/usr/lib/go/src/net/cgo_resnew.go" | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#line 1 "cgo-generated-wrapper" | |
#line 1 "not-declared" | |
void __cgo_f_1_1(void) { __typeof__(char) *__cgo_undefined__1; } | |
#line 1 "not-type" | |
void __cgo_f_1_2(void) { char *__cgo_undefined__2; } | |
#line 1 "not-int-const" | |
void __cgo_f_1_3(void) { enum { __cgo_undefined__3 = (char)*1 }; } | |
#line 1 "not-num-const" | |
void __cgo_f_1_4(void) { static const double __cgo_undefined__4 = (char); } | |
#line 1 "not-str-lit" | |
void __cgo_f_1_5(void) { static const char __cgo_undefined__5[] = (char); } | |
#line 2 "not-declared" | |
void __cgo_f_2_1(void) { __typeof__(getnameinfo) *__cgo_undefined__1; } | |
#line 2 "not-type" | |
void __cgo_f_2_2(void) { getnameinfo *__cgo_undefined__2; } | |
#line 2 "not-int-const" | |
void __cgo_f_2_3(void) { enum { __cgo_undefined__3 = (getnameinfo)*1 }; } | |
#line 2 "not-num-const" | |
void __cgo_f_2_4(void) { static const double __cgo_undefined__4 = (getnameinfo); } | |
#line 2 "not-str-lit" | |
void __cgo_f_2_5(void) { static const char __cgo_undefined__5[] = (getnameinfo); } | |
#line 3 "not-declared" | |
void __cgo_f_3_1(void) { __typeof__(socklen_t) *__cgo_undefined__1; } | |
#line 3 "not-type" | |
void __cgo_f_3_2(void) { socklen_t *__cgo_undefined__2; } | |
#line 3 "not-int-const" | |
void __cgo_f_3_3(void) { enum { __cgo_undefined__3 = (socklen_t)*1 }; } | |
#line 3 "not-num-const" | |
void __cgo_f_3_4(void) { static const double __cgo_undefined__4 = (socklen_t); } | |
#line 3 "not-str-lit" | |
void __cgo_f_3_5(void) { static const char __cgo_undefined__5[] = (socklen_t); } | |
#line 1 "completed" | |
int __cgo__1 = __cgo__2; | |
full error output: | |
not-int-const: In function '__cgo_f_1_3': | |
not-int-const:1:60: error: invalid type argument of unary '*' (have 'int') | |
not-num-const: In function '__cgo_f_1_4': | |
not-num-const:1:73: error: expected expression before ';' token | |
not-str-lit: In function '__cgo_f_1_5': | |
not-str-lit:1:73: error: expected expression before ';' token | |
not-type: In function '__cgo_f_2_2': | |
not-type:2:39: error: '__cgo_undefined__2' undeclared (first use in this function) | |
not-type:2:39: note: each undeclared identifier is reported only once for each function it appears in | |
not-type:2:38: error: invalid operands to binary * (have 'int (*)(const struct sockaddr * restrict, socklen_t, char * restrict, socklen_t, char * restrict, socklen_t, int)' {aka 'int (*)(const struct sockaddr * restrict, unsigned int, char * restrict, unsigned int, char * restrict, unsigned int, int)'} and 'const char *') | |
not-int-const: In function '__cgo_f_2_3': | |
not-int-const:2:67: error: invalid operands to binary * (have 'int (*)(const struct sockaddr * restrict, socklen_t, char * restrict, socklen_t, char * restrict, socklen_t, int)' {aka 'int (*)(const struct sockaddr * restrict, unsigned int, char * restrict, unsigned int, char * restrict, unsigned int, int)'} and 'int') | |
not-num-const: In function '__cgo_f_2_4': | |
not-num-const:2:67: error: incompatible types when initializing type 'double' using type 'int (*)(const struct sockaddr * restrict, socklen_t, char * restrict, socklen_t, char * restrict, socklen_t, int)' {aka 'int (*)(const struct sockaddr * restrict, unsigned int, char * restrict, unsigned int, char * restrict, unsigned int, int)'} | |
not-str-lit: In function '__cgo_f_2_5': | |
not-str-lit:2:67: error: invalid initializer | |
not-int-const: In function '__cgo_f_3_3': | |
not-int-const:3:65: error: invalid type argument of unary '*' (have 'int') | |
not-int-const:3:33: error: enumerator value for '__cgo_undefined__3' is not an integer constant | |
not-num-const: In function '__cgo_f_3_4': | |
not-num-const:3:78: error: expected expression before ';' token | |
not-num-const:3:67: error: initializer element is not constant | |
not-str-lit: In function '__cgo_f_3_5': | |
not-str-lit:3:78: error: expected expression before ';' token | |
not-str-lit:3:67: error: invalid initializer | |
completed: At top level: | |
completed:1:16: error: '__cgo__2' undeclared here (not in a function); did you mean '__cgo__1'? | |
completed:1:16: error: initializer element is not constant | |
# os/user | |
gcc did not produce error at completed:1 | |
on input: | |
#line 1 "cgo-builtin-prolog" | |
#include <stddef.h> /* for ptrdiff_t and size_t below */ | |
/* Define intgo when compiling with GCC. */ | |
typedef ptrdiff_t intgo; | |
#define GO_CGO_GOSTRING_TYPEDEF | |
typedef struct { const 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 *CBytes(_GoBytes_); | |
void *_CMalloc(size_t); | |
__attribute__ ((unused)) | |
static size_t _GoStringLen(_GoString_ s) { return (size_t)s.n; } | |
__attribute__ ((unused)) | |
static const char *_GoStringPtr(_GoString_ s) { return s.p; } | |
#line 18 "/usr/lib/go/src/os/user/cgo_lookup_unix.go" | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <pwd.h> | |
#include <grp.h> | |
#include <stdlib.h> | |
static int mygetpwuid_r(int uid, struct passwd *pwd, | |
char *buf, size_t buflen, struct passwd **result) { | |
return getpwuid_r(uid, pwd, buf, buflen, result); | |
} | |
static int mygetpwnam_r(const char *name, struct passwd *pwd, | |
char *buf, size_t buflen, struct passwd **result) { | |
return getpwnam_r(name, pwd, buf, buflen, result); | |
} | |
static int mygetgrgid_r(int gid, struct group *grp, | |
char *buf, size_t buflen, struct group **result) { | |
return getgrgid_r(gid, grp, buf, buflen, result); | |
} | |
static int mygetgrnam_r(const char *name, struct group *grp, | |
char *buf, size_t buflen, struct group **result) { | |
return getgrnam_r(name, grp, buf, buflen, result); | |
} | |
#line 1 "cgo-generated-wrapper" | |
#line 1 "not-declared" | |
void __cgo_f_1_1(void) { __typeof__(GoString) *__cgo_undefined__1; } | |
#line 1 "not-type" | |
void __cgo_f_1_2(void) { GoString *__cgo_undefined__2; } | |
#line 1 "not-int-const" | |
void __cgo_f_1_3(void) { enum { __cgo_undefined__3 = (GoString)*1 }; } | |
#line 1 "not-num-const" | |
void __cgo_f_1_4(void) { static const double __cgo_undefined__4 = (GoString); } | |
#line 1 "not-str-lit" | |
void __cgo_f_1_5(void) { static const char __cgo_undefined__5[] = (GoString); } | |
#line 2 "not-declared" | |
void __cgo_f_2_1(void) { __typeof__(_CMalloc) *__cgo_undefined__1; } | |
#line 2 "not-type" | |
void __cgo_f_2_2(void) { _CMalloc *__cgo_undefined__2; } | |
#line 2 "not-int-const" | |
void __cgo_f_2_3(void) { enum { __cgo_undefined__3 = (_CMalloc)*1 }; } | |
#line 2 "not-num-const" | |
void __cgo_f_2_4(void) { static const double __cgo_undefined__4 = (_CMalloc); } | |
#line 2 "not-str-lit" | |
void __cgo_f_2_5(void) { static const char __cgo_undefined__5[] = (_CMalloc); } | |
#line 3 "not-declared" | |
void __cgo_f_3_1(void) { __typeof__(_SC_GETGR_R_SIZE_MAX) *__cgo_undefined__1; } | |
#line 3 "not-type" | |
void __cgo_f_3_2(void) { _SC_GETGR_R_SIZE_MAX *__cgo_undefined__2; } | |
#line 3 "not-int-const" | |
void __cgo_f_3_3(void) { enum { __cgo_undefined__3 = (_SC_GETGR_R_SIZE_MAX)*1 }; } | |
#line 3 "not-num-const" | |
void __cgo_f_3_4(void) { static const double __cgo_undefined__4 = (_SC_GETGR_R_SIZE_MAX); } | |
#line 3 "not-str-lit" | |
void __cgo_f_3_5(void) { static const char __cgo_undefined__5[] = (_SC_GETGR_R_SIZE_MAX); } | |
#line 4 "not-declared" | |
void __cgo_f_4_1(void) { __typeof__(_SC_GETPW_R_SIZE_MAX) *__cgo_undefined__1; } | |
#line 4 "not-type" | |
void __cgo_f_4_2(void) { _SC_GETPW_R_SIZE_MAX *__cgo_undefined__2; } | |
#line 4 "not-int-const" | |
void __cgo_f_4_3(void) { enum { __cgo_undefined__3 = (_SC_GETPW_R_SIZE_MAX)*1 }; } | |
#line 4 "not-num-const" | |
void __cgo_f_4_4(void) { static const double __cgo_undefined__4 = (_SC_GETPW_R_SIZE_MAX); } | |
#line 4 "not-str-lit" | |
void __cgo_f_4_5(void) { static const char __cgo_undefined__5[] = (_SC_GETPW_R_SIZE_MAX); } | |
#line 5 "not-declared" | |
void __cgo_f_5_1(void) { __typeof__(char) *__cgo_undefined__1; } | |
#line 5 "not-type" | |
void __cgo_f_5_2(void) { char *__cgo_undefined__2; } | |
#line 5 "not-int-const" | |
void __cgo_f_5_3(void) { enum { __cgo_undefined__3 = (char)*1 }; } | |
#line 5 "not-num-const" | |
void __cgo_f_5_4(void) { static const double __cgo_undefined__4 = (char); } | |
#line 5 "not-str-lit" | |
void __cgo_f_5_5(void) { static const char __cgo_undefined__5[] = (char); } | |
#line 6 "not-declared" | |
void __cgo_f_6_1(void) { __typeof__(free) *__cgo_undefined__1; } | |
#line 6 "not-type" | |
void __cgo_f_6_2(void) { free *__cgo_undefined__2; } | |
#line 6 "not-int-const" | |
void __cgo_f_6_3(void) { enum { __cgo_undefined__3 = (free)*1 }; } | |
#line 6 "not-num-const" | |
void __cgo_f_6_4(void) { static const double __cgo_undefined__4 = (free); } | |
#line 6 "not-str-lit" | |
void __cgo_f_6_5(void) { static const char __cgo_undefined__5[] = (free); } | |
#line 7 "not-declared" | |
void __cgo_f_7_1(void) { __typeof__(int) *__cgo_undefined__1; } | |
#line 7 "not-type" | |
void __cgo_f_7_2(void) { int *__cgo_undefined__2; } | |
#line 7 "not-int-const" | |
void __cgo_f_7_3(void) { enum { __cgo_undefined__3 = (int)*1 }; } | |
#line 7 "not-num-const" | |
void __cgo_f_7_4(void) { static const double __cgo_undefined__4 = (int); } | |
#line 7 "not-str-lit" | |
void __cgo_f_7_5(void) { static const char __cgo_undefined__5[] = (int); } | |
#line 8 "not-declared" | |
void __cgo_f_8_1(void) { __typeof__(mygetgrgid_r) *__cgo_undefined__1; } | |
#line 8 "not-type" | |
void __cgo_f_8_2(void) { mygetgrgid_r *__cgo_undefined__2; } | |
#line 8 "not-int-const" | |
void __cgo_f_8_3(void) { enum { __cgo_undefined__3 = (mygetgrgid_r)*1 }; } | |
#line 8 "not-num-const" | |
void __cgo_f_8_4(void) { static const double __cgo_undefined__4 = (mygetgrgid_r); } | |
#line 8 "not-str-lit" | |
void __cgo_f_8_5(void) { static const char __cgo_undefined__5[] = (mygetgrgid_r); } | |
#line 9 "not-declared" | |
void __cgo_f_9_1(void) { __typeof__(mygetgrnam_r) *__cgo_undefined__1; } | |
#line 9 "not-type" | |
void __cgo_f_9_2(void) { mygetgrnam_r *__cgo_undefined__2; } | |
#line 9 "not-int-const" | |
void __cgo_f_9_3(void) { enum { __cgo_undefined__3 = (mygetgrnam_r)*1 }; } | |
#line 9 "not-num-const" | |
void __cgo_f_9_4(void) { static const double __cgo_undefined__4 = (mygetgrnam_r); } | |
#line 9 "not-str-lit" | |
void __cgo_f_9_5(void) { static const char __cgo_undefined__5[] = (mygetgrnam_r); } | |
#line 10 "not-declared" | |
void __cgo_f_10_1(void) { __typeof__(mygetpwnam_r) *__cgo_undefined__1; } | |
#line 10 "not-type" | |
void __cgo_f_10_2(void) { mygetpwnam_r *__cgo_undefined__2; } | |
#line 10 "not-int-const" | |
void __cgo_f_10_3(void) { enum { __cgo_undefined__3 = (mygetpwnam_r)*1 }; } | |
#line 10 "not-num-const" | |
void __cgo_f_10_4(void) { static const double __cgo_undefined__4 = (mygetpwnam_r); } | |
#line 10 "not-str-lit" | |
void __cgo_f_10_5(void) { static const char __cgo_undefined__5[] = (mygetpwnam_r); } | |
#line 11 "not-declared" | |
void __cgo_f_11_1(void) { __typeof__(mygetpwuid_r) *__cgo_undefined__1; } | |
#line 11 "not-type" | |
void __cgo_f_11_2(void) { mygetpwuid_r *__cgo_undefined__2; } | |
#line 11 "not-int-const" | |
void __cgo_f_11_3(void) { enum { __cgo_undefined__3 = (mygetpwuid_r)*1 }; } | |
#line 11 "not-num-const" | |
void __cgo_f_11_4(void) { static const double __cgo_undefined__4 = (mygetpwuid_r); } | |
#line 11 "not-str-lit" | |
void __cgo_f_11_5(void) { static const char __cgo_undefined__5[] = (mygetpwuid_r); } | |
#line 12 "not-declared" | |
void __cgo_f_12_1(void) { __typeof__(realloc) *__cgo_undefined__1; } | |
#line 12 "not-type" | |
void __cgo_f_12_2(void) { realloc *__cgo_undefined__2; } | |
#line 12 "not-int-const" | |
void __cgo_f_12_3(void) { enum { __cgo_undefined__3 = (realloc)*1 }; } | |
#line 12 "not-num-const" | |
void __cgo_f_12_4(void) { static const double __cgo_undefined__4 = (realloc); } | |
#line 12 "not-str-lit" | |
void __cgo_f_12_5(void) { static const char __cgo_undefined__5[] = (realloc); } | |
#line 13 "not-declared" | |
void __cgo_f_13_1(void) { __typeof__(size_t) *__cgo_undefined__1; } | |
#line 13 "not-type" | |
void __cgo_f_13_2(void) { size_t *__cgo_undefined__2; } | |
#line 13 "not-int-const" | |
void __cgo_f_13_3(void) { enum { __cgo_undefined__3 = (size_t)*1 }; } | |
#line 13 "not-num-const" | |
void __cgo_f_13_4(void) { static const double __cgo_undefined__4 = (size_t); } | |
#line 13 "not-str-lit" | |
void __cgo_f_13_5(void) { static const char __cgo_undefined__5[] = (size_t); } | |
#line 14 "not-declared" | |
void __cgo_f_14_1(void) { __typeof__(sysconf) *__cgo_undefined__1; } | |
#line 14 "not-type" | |
void __cgo_f_14_2(void) { sysconf *__cgo_undefined__2; } | |
#line 14 "not-int-const" | |
void __cgo_f_14_3(void) { enum { __cgo_undefined__3 = (sysconf)*1 }; } | |
#line 14 "not-num-const" | |
void __cgo_f_14_4(void) { static const double __cgo_undefined__4 = (sysconf); } | |
#line 14 "not-str-lit" | |
void __cgo_f_14_5(void) { static const char __cgo_undefined__5[] = (sysconf); } | |
#line 1 "completed" | |
int __cgo__1 = __cgo__2; | |
full error output: | |
not-type: In function '__cgo_f_1_2': | |
not-type:1:36: error: '__cgo_undefined__2' undeclared (first use in this function) | |
not-type:1:36: note: each undeclared identifier is reported only once for each function it appears in | |
not-int-const: In function '__cgo_f_1_3': | |
not-int-const:1:64: error: invalid operands to binary * (have '_GoString_ (*)(char *)' and 'int') | |
not-num-const: In function '__cgo_f_1_4': | |
not-num-const:1:67: error: incompatible types when initializing type 'double' using type '_GoString_ (*)(char *)' | |
not-str-lit: In function '__cgo_f_1_5': | |
not-str-lit:1:67: error: invalid initializer | |
not-type: In function '__cgo_f_2_2': | |
not-type:2:36: error: '__cgo_undefined__2' undeclared (first use in this function) | |
not-type:2:35: error: invalid operands to binary * (have 'void * (*)(size_t)' {aka 'void * (*)(long unsigned int)'} and 'const char *') | |
not-int-const: In function '__cgo_f_2_3': | |
not-int-const:2:64: error: invalid operands to binary * (have 'void * (*)(size_t)' {aka 'void * (*)(long unsigned int)'} and 'int') | |
not-num-const: In function '__cgo_f_2_4': | |
not-num-const:2:67: error: incompatible types when initializing type 'double' using type 'void * (*)(size_t)' {aka 'void * (*)(long unsigned int)'} | |
not-str-lit: In function '__cgo_f_2_5': | |
not-str-lit:2:67: error: invalid initializer | |
not-type: In function '__cgo_f_3_2': | |
not-type:3:48: error: '__cgo_undefined__2' undeclared (first use in this function) | |
not-type:3:47: error: invalid operands to binary * (have 'int' and 'const char *') | |
not-str-lit: In function '__cgo_f_3_5': | |
not-str-lit:3:67: error: invalid initializer | |
not-type: In function '__cgo_f_4_2': | |
not-type:4:48: error: '__cgo_undefined__2' undeclared (first use in this function) | |
not-type:4:47: error: invalid operands to binary * (have 'int' and 'const char *') | |
not-str-lit: In function '__cgo_f_4_5': | |
not-str-lit:4:67: error: invalid initializer | |
not-int-const: In function '__cgo_f_5_3': | |
not-int-const:5:60: error: invalid type argument of unary '*' (have 'int') | |
not-int-const:5:33: error: enumerator value for '__cgo_undefined__3' is not an integer constant | |
not-num-const: In function '__cgo_f_5_4': | |
not-num-const:5:73: error: expected expression before ';' token | |
not-num-const:5:67: error: initializer element is not constant | |
not-str-lit: In function '__cgo_f_5_5': | |
not-str-lit:5:73: error: expected expression before ';' token | |
not-str-lit:5:67: error: invalid initializer | |
not-type: In function '__cgo_f_6_2': | |
not-type:6:32: error: '__cgo_undefined__2' undeclared (first use in this function) | |
not-type:6:31: error: invalid operands to binary * (have 'void (*)(void *)' and 'const char *') | |
not-int-const: In function '__cgo_f_6_3': | |
not-int-const:6:60: error: invalid operands to binary * (have 'void (*)(void *)' and 'int') | |
not-num-const: In function '__cgo_f_6_4': | |
not-num-const:6:67: error: incompatible types when initializing type 'double' using type 'void (*)(void *)' | |
not-str-lit: In function '__cgo_f_6_5': | |
not-str-lit:6:67: error: invalid initializer | |
not-int-const: In function '__cgo_f_7_3': | |
not-int-const:7:59: error: invalid type argument of unary '*' (have 'int') | |
not-int-const:7:33: error: enumerator value for '__cgo_undefined__3' is not an integer constant | |
not-num-const: In function '__cgo_f_7_4': | |
not-num-const:7:72: error: expected expression before ';' token | |
not-num-const:7:67: error: initializer element is not constant | |
not-str-lit: In function '__cgo_f_7_5': | |
not-str-lit:7:72: error: expected expression before ';' token | |
not-str-lit:7:67: error: invalid initializer | |
not-type: In function '__cgo_f_8_2': | |
not-type:8:40: error: '__cgo_undefined__2' undeclared (first use in this function) | |
not-type:8:39: error: invalid operands to binary * (have 'int (*)(int, struct group *, char *, size_t, struct group **)' {aka 'int (*)(int, struct group *, char *, long unsigned int, struct group **)'} and 'const char *') | |
not-int-const: In function '__cgo_f_8_3': | |
not-int-const:8:68: error: invalid operands to binary * (have 'int (*)(int, struct group *, char *, size_t, struct group **)' {aka 'int (*)(int, struct group *, char *, long unsigned int, struct group **)'} and 'int') | |
not-num-const: In function '__cgo_f_8_4': | |
not-num-const:8:67: error: incompatible types when initializing type 'double' using type 'int (*)(int, struct group *, char *, size_t, struct group **)' {aka 'int (*)(int, struct group *, char *, long unsigned int, struct group **)'} | |
not-str-lit: In function '__cgo_f_8_5': | |
not-str-lit:8:67: error: invalid initializer | |
not-type: In function '__cgo_f_9_2': | |
not-type:9:40: error: '__cgo_undefined__2' undeclared (first use in this function) | |
not-type:9:39: error: invalid operands to binary * (have 'int (*)(const char *, struct group *, char *, size_t, struct group **)' {aka 'int (*)(const char *, struct group *, char *, long unsigned int, struct group **)'} and 'const char *') | |
not-int-const: In function '__cgo_f_9_3': | |
not-int-const:9:68: error: invalid operands to binary * (have 'int (*)(const char *, struct group *, char *, size_t, struct group **)' {aka 'int (*)(const char *, struct group *, char *, long unsigned int, struct group **)'} and 'int') | |
not-num-const: In function '__cgo_f_9_4': | |
not-num-const:9:67: error: incompatible types when initializing type 'double' using type 'int (*)(const char *, struct group *, char *, size_t, struct group **)' {aka 'int (*)(const char *, struct group *, char *, long unsigned int, struct group **)'} | |
not-str-lit: In function '__cgo_f_9_5': | |
not-str-lit:9:67: error: invalid initializer | |
not-type: In function '__cgo_f_10_2': | |
not-type:10:41: error: '__cgo_undefined__2' undeclared (first use in this function) | |
not-type:10:40: error: invalid operands to binary * (have 'int (*)(const char *, struct passwd *, char *, size_t, struct passwd **)' {aka 'int (*)(const char *, struct passwd *, char *, long unsigned int, struct passwd **)'} and 'const char *') | |
not-int-const: In function '__cgo_f_10_3': | |
not-int-const:10:69: error: invalid operands to binary * (have 'int (*)(const char *, struct passwd *, char *, size_t, struct passwd **)' {aka 'int (*)(const char *, struct passwd *, char *, long unsigned int, struct passwd **)'} and 'int') | |
not-num-const: In function '__cgo_f_10_4': | |
not-num-const:10:68: error: incompatible types when initializing type 'double' using type 'int (*)(const char *, struct passwd *, char *, size_t, struct passwd **)' {aka 'int (*)(const char *, struct passwd *, char *, long unsigned int, struct passwd **)'} | |
not-str-lit: In function '__cgo_f_10_5': | |
not-str-lit:10:68: error: invalid initializer | |
not-type: In function '__cgo_f_11_2': | |
not-type:11:41: error: '__cgo_undefined__2' undeclared (first use in this function) | |
not-type:11:40: error: invalid operands to binary * (have 'int (*)(int, struct passwd *, char *, size_t, struct passwd **)' {aka 'int (*)(int, struct passwd *, char *, long unsigned int, struct passwd **)'} and 'const char *') | |
not-int-const: In function '__cgo_f_11_3': | |
not-int-const:11:69: error: invalid operands to binary * (have 'int (*)(int, struct passwd *, char *, size_t, struct passwd **)' {aka 'int (*)(int, struct passwd *, char *, long unsigned int, struct passwd **)'} and 'int') | |
not-num-const: In function '__cgo_f_11_4': | |
not-num-const:11:68: error: incompatible types when initializing type 'double' using type 'int (*)(int, struct passwd *, char *, size_t, struct passwd **)' {aka 'int (*)(int, struct passwd *, char *, long unsigned int, struct passwd **)'} | |
not-str-lit: In function '__cgo_f_11_5': | |
not-str-lit:11:68: error: invalid initializer | |
not-type: In function '__cgo_f_12_2': | |
not-type:12:36: error: '__cgo_undefined__2' undeclared (first use in this function) | |
not-type:12:35: error: invalid operands to binary * (have 'void * (*)(void *, size_t)' {aka 'void * (*)(void *, long unsigned int)'} and 'const char *') | |
not-int-const: In function '__cgo_f_12_3': | |
not-int-const:12:64: error: invalid operands to binary * (have 'void * (*)(void *, size_t)' {aka 'void * (*)(void *, long unsigned int)'} and 'int') | |
not-num-const: In function '__cgo_f_12_4': | |
not-num-const:12:68: error: incompatible types when initializing type 'double' using type 'void * (*)(void *, size_t)' {aka 'void * (*)(void *, long unsigned int)'} | |
not-str-lit: In function '__cgo_f_12_5': | |
not-str-lit:12:68: error: invalid initializer | |
not-int-const: In function '__cgo_f_13_3': | |
not-int-const:13:63: error: invalid type argument of unary '*' (have 'int') | |
not-int-const:13:34: error: enumerator value for '__cgo_undefined__3' is not an integer constant | |
not-num-const: In function '__cgo_f_13_4': | |
not-num-const:13:76: error: expected expression before ';' token | |
not-num-const:13:68: error: initializer element is not constant | |
not-str-lit: In function '__cgo_f_13_5': | |
not-str-lit:13:76: error: expected expression before ';' token | |
not-str-lit:13:68: error: invalid initializer | |
not-type: In function '__cgo_f_14_2': | |
not-type:14:36: error: '__cgo_undefined__2' undeclared (first use in this function) | |
not-type:14:35: error: invalid operands to binary * (have 'long int (*)(int)' and 'const char *') | |
not-int-const: In function '__cgo_f_14_3': | |
not-int-const:14:64: error: invalid operands to binary * (have 'long int (*)(int)' and 'int') | |
not-num-const: In function '__cgo_f_14_4': | |
not-num-const:14:68: error: incompatible types when initializing type 'double' using type 'long int (*)(int)' | |
not-str-lit: In function '__cgo_f_14_5': | |
not-str-lit:14:68: error: invalid initializer | |
completed: At top level: | |
completed:1:16: error: '__cgo__2' undeclared here (not in a function); did you mean '__cgo__1'? | |
completed:1:16: error: initializer element is not constant | |
==> ERROR: A failure occurred in build(). | |
Aborting... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment