taozuhong commented on issue #2326:
URL: https://github.com/apache/arrow-adbc/issues/2326#issuecomment-2525082704
> Ah, we may not need `dllimport`/`dllexport` for `struct` in C:
>
> ```diff
> diff --git a/c/include/arrow-adbc/adbc.h b/c/include/arrow-adbc/adbc.h
> index b965672e6..94be40a34 100644
> --- a/c/include/arrow-adbc/adbc.h
> +++ b/c/include/arrow-adbc/adbc.h
> @@ -158,8 +158,18 @@ struct ArrowArrayStream {
> #else
> #define ADBC_EXPORT __declspec(dllimport)
> #endif // defined(ADBC_EXPORTING)
> +#if defined(__cplusplus)
> +#if defined(ADBC_EXPORTING)
> +#define ADBC_EXPORT_STRUCT __declspec(dllexport)
> +#else
> +#define ADBC_EXPORT_STRUCT __declspec(dllimport)
> +#endif // defined(ADBC_EXPORTING)
> +#else
> +#define ADBC_EXPORT_STRUCT
> +#endif // defined(__cplusplus)
> #else
> #define ADBC_EXPORT
> +#define ADBC_EXPORT_STRUCT
> #endif // defined(_WIN32)
> #endif // !defined(ADBC_EXPORT)
>
> ```
I've tried this solution, it will break the build pipe with CLANG compiler,
it throws many warn messages
```
go: downloading golang.org/x/text v0.20.0
# github.com/apache/arrow-go/v18/arrow/cdata
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:51:34: warning: redeclaration of
'streamGetSchema' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
exports.go:31:13: note: previous declaration is here
cgo-gcc-export-header-prolog:52:34: warning: redeclaration of
'streamGetNext' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
exports.go:32:13: note: previous declaration is here
cgo-gcc-export-header-prolog:53:39: warning: redeclaration of
'streamGetError' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
exports.go:33:21: note: previous declaration is here
cgo-gcc-export-header-prolog:54:35: warning: redeclaration of
'streamRelease' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
exports.go:34:14: note: previous declaration is here
# github.com/apache/arrow-adbc/go/adbc/pkg/flightsql
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:49:39: warning: redeclaration of
'FlightSQLArrayStreamGetLastError' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
driver.go:42:14: note: previous declaration is here
cgo-gcc-export-header-prolog:50:34: warning: redeclaration of
'FlightSQLArrayStreamGetNext' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
driver.go:41:6: note: previous declaration is here
cgo-gcc-export-header-prolog:51:34: warning: redeclaration of
'FlightSQLArrayStreamGetSchema' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
driver.go:40:6: note: previous declaration is here
cgo-gcc-export-header-prolog:52:35: warning: redeclaration of
'FlightSQLArrayStreamRelease' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
driver.go:43:7: note: previous declaration is here
cgo-gcc-export-header-prolog:53:48: warning: redeclaration of
'FlightSQLErrorFromArrayStream' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:29:19: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:54:45: warning: redeclaration of
'FlightSQLDatabaseGetOption' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:31:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:55:45: warning: redeclaration of
'FlightSQLDatabaseGetOptionBytes' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:33:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:56:45: warning: redeclaration of
'FlightSQLDatabaseGetOptionDouble' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:35:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:57:45: warning: redeclaration of
'FlightSQLDatabaseGetOptionInt' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:37:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:58:45: warning: redeclaration of
'FlightSQLDatabaseInit' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:39:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:59:45: warning: redeclaration of
'FlightSQLDatabaseNew' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:40:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:60:45: warning: redeclaration of
'FlightSQLDatabaseRelease' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:41:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:61:45: warning: redeclaration of
'FlightSQLDatabaseSetOption' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:42:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:62:45: warning: redeclaration of
'FlightSQLDatabaseSetOptionBytes' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:44:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:63:45: warning: redeclaration of
'FlightSQLDatabaseSetOptionDouble' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:46:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:64:45: warning: redeclaration of
'FlightSQLDatabaseSetOptionInt' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:48:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:65:45: warning: redeclaration of
'FlightSQLConnectionGetOption' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:62:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:66:45: warning: redeclaration of
'FlightSQLConnectionGetOptionBytes' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:64:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:67:45: warning: redeclaration of
'FlightSQLConnectionGetOptionDouble' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:66:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:68:45: warning: redeclaration of
'FlightSQLConnectionGetOptionInt' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:68:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:69:45: warning: redeclaration of
'FlightSQLConnectionNew' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:85:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:70:45: warning: redeclaration of
'FlightSQLConnectionSetOption' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:95:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:71:45: warning: redeclaration of
'FlightSQLConnectionSetOptionBytes' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:97:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:72:45: warning: redeclaration of
'FlightSQLConnectionSetOptionDouble' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:100:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:73:45: warning: redeclaration of
'FlightSQLConnectionSetOptionInt' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:102:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:74:45: warning: redeclaration of
'FlightSQLConnectionInit' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:83:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:75:45: warning: redeclaration of
'FlightSQLConnectionRelease' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:91:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:76:45: warning: redeclaration of
'FlightSQLConnectionCancel' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:51:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:77:45: warning: redeclaration of
'FlightSQLConnectionGetInfo' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:54:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:78:45: warning: redeclaration of
'FlightSQLConnectionGetObjects' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:58:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:79:45: warning: redeclaration of
'FlightSQLConnectionGetStatistics' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:70:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:80:45: warning: redeclaration of
'FlightSQLConnectionGetStatisticNames' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:74:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:81:45: warning: redeclaration of
'FlightSQLConnectionGetTableSchema' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:77:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:82:45: warning: redeclaration of
'FlightSQLConnectionGetTableTypes' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:80:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:83:45: warning: redeclaration of
'FlightSQLConnectionReadPartition' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:86:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:84:45: warning: redeclaration of
'FlightSQLConnectionCommit' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:52:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:85:45: warning: redeclaration of
'FlightSQLConnectionRollback' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:93:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:86:45: warning: redeclaration of
'FlightSQLStatementGetOption' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:125:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:87:45: warning: redeclaration of
'FlightSQLStatementGetOptionBytes' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:127:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:88:45: warning: redeclaration of
'FlightSQLStatementGetOptionDouble' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:129:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:89:45: warning: redeclaration of
'FlightSQLStatementGetOptionInt' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:131:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:90:45: warning: redeclaration of
'FlightSQLStatementNew' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:136:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:91:45: warning: redeclaration of
'FlightSQLStatementRelease' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:140:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:92:45: warning: redeclaration of
'FlightSQLStatementCancel' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:111:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:93:45: warning: redeclaration of
'FlightSQLStatementPrepare' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:138:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:94:45: warning: redeclaration of
'FlightSQLStatementExecuteQuery' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:112:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:95:45: warning: redeclaration of
'FlightSQLStatementExecuteSchema' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:123:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:96:45: warning: redeclaration of
'FlightSQLStatementSetSqlQuery' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:151:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:97:45: warning: redeclaration of
'FlightSQLStatementSetSubstraitPlan' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:153:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:98:45: warning: redeclaration of
'FlightSQLStatementBind' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:105:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:99:45: warning: redeclaration of
'FlightSQLStatementBindStream' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:108:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:100:45: warning: redeclaration of
'FlightSQLStatementGetParameterSchema' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:133:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:101:45: warning: redeclaration of
'FlightSQLStatementSetOption' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:142:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:102:45: warning: redeclaration of
'FlightSQLStatementSetOptionBytes' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:144:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:103:45: warning: redeclaration of
'FlightSQLStatementSetOptionDouble' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:147:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:104:45: warning: redeclaration of
'FlightSQLStatementSetOptionInt' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:149:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:105:35: warning: redeclaration of
'releasePartitions' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
driver.go:48:7: note: previous declaration is here
cgo-gcc-export-header-prolog:106:45: warning: redeclaration of
'FlightSQLStatementExecutePartitions' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:115:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:107:45: warning: redeclaration of
'FlightSQLDriverInit' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:157:16: note: previous declaration is here
# github.com/apache/arrow-adbc/go/adbc/pkg/flightsql
D:\M\msys64\clang64\lib\go\pkg\tool\windows_amd64\link.exe: running clang
failed: exit status 1
D:\M\msys64\clang64\bin\clang.exe -m64 -s -mconsole -Wl,--tsaware
-Wl,--nxcompat -Wl,--major-os-version=6 -Wl,--minor-os-version=1
-Wl,--major-subsystem-version=6 -Wl,--minor-subsystem-version=1 -shared
-Wl,--dynamicbase -Wl,--high-entropy-va -o libadbc_driver_flightsql.dll.104.0.0
D:\M\msys64\tmp\go-link-956582390\go.o
D:\M\msys64\tmp\go-link-956582390\000000.o
D:\M\msys64\tmp\go-link-956582390\000001.o
D:\M\msys64\tmp\go-link-956582390\000002.o
D:\M\msys64\tmp\go-link-956582390\000003.o
D:\M\msys64\tmp\go-link-956582390\000004.o
D:\M\msys64\tmp\go-link-956582390\000005.o
D:\M\msys64\tmp\go-link-956582390\000006.o
D:\M\msys64\tmp\go-link-956582390\000007.o
D:\M\msys64\tmp\go-link-956582390\000008.o
D:\M\msys64\tmp\go-link-956582390\000009.o
D:\M\msys64\tmp\go-link-956582390\000010.o
D:\M\msys64\tmp\go-link-956582390\000011.o
D:\M\msys64\tmp\go-link-956582390\000012.o
D:\M\msys64\tmp\go-link-956582390\000013.o
D:\M\msys64\tmp\go-link-956582390\000014.o D:\M\msys64\tmp\go-link-95
6582390\000015.o D:\M\msys64\tmp\go-link-956582390\000016.o
D:\M\msys64\tmp\go-link-956582390\000017.o
D:\M\msys64\tmp\go-link-956582390\000018.o
D:\M\msys64\tmp\go-link-956582390\000019.o -O2 -g -O2 -g -O2 -g -O2 -g
-Wl,-soname,libadbc_driver_flightsql.dll.104
-Wl,-T,D:\M\msys64\tmp\go-link-956582390\fix_debug_gdb_scripts.ld
-Wl,--start-group -lmingwex -lmingw32 -Wl,--end-group -lkernel32
lld: error: unknown argument: -soname
lld: error: unknown argument: -T
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
[38/39] Building Go Static lib adbc_driver_flightsql
go: downloading google.golang.org/protobuf v1.35.2
go: downloading github.com/bluele/gcache v0.0.2
go: downloading golang.org/x/exp v0.0.0-20240909161429-701f63a606c0
go: downloading google.golang.org/grpc v1.68.0
go: downloading golang.org/x/sync v0.9.0
go: downloading golang.org/x/sys v0.27.0
go: downloading golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da
go: downloading github.com/google/flatbuffers v24.3.25+incompatible
go: downloading github.com/pierrec/lz4/v4 v4.1.21
go: downloading github.com/klauspost/compress v1.17.11
go: downloading golang.org/x/net v0.31.0
go: downloading github.com/zeebo/xxh3 v1.0.2
go: downloading github.com/goccy/go-json v0.10.3
go: downloading github.com/klauspost/cpuid/v2 v2.2.8
go: downloading golang.org/x/text v0.20.0
# github.com/apache/arrow-go/v18/arrow/cdata
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:51:34: warning: redeclaration of
'streamGetSchema' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
exports.go:31:13: note: previous declaration is here
cgo-gcc-export-header-prolog:52:34: warning: redeclaration of
'streamGetNext' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
exports.go:32:13: note: previous declaration is here
cgo-gcc-export-header-prolog:53:39: warning: redeclaration of
'streamGetError' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
exports.go:33:21: note: previous declaration is here
cgo-gcc-export-header-prolog:54:35: warning: redeclaration of
'streamRelease' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
exports.go:34:14: note: previous declaration is here
# github.com/apache/arrow-adbc/go/adbc/pkg/flightsql
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:49:39: warning: redeclaration of
'FlightSQLArrayStreamGetLastError' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
driver.go:42:14: note: previous declaration is here
cgo-gcc-export-header-prolog:50:34: warning: redeclaration of
'FlightSQLArrayStreamGetNext' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
driver.go:41:6: note: previous declaration is here
cgo-gcc-export-header-prolog:51:34: warning: redeclaration of
'FlightSQLArrayStreamGetSchema' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
driver.go:40:6: note: previous declaration is here
cgo-gcc-export-header-prolog:52:35: warning: redeclaration of
'FlightSQLArrayStreamRelease' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
driver.go:43:7: note: previous declaration is here
cgo-gcc-export-header-prolog:53:48: warning: redeclaration of
'FlightSQLErrorFromArrayStream' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:29:19: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:54:45: warning: redeclaration of
'FlightSQLDatabaseGetOption' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:31:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:55:45: warning: redeclaration of
'FlightSQLDatabaseGetOptionBytes' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:33:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:56:45: warning: redeclaration of
'FlightSQLDatabaseGetOptionDouble' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:35:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:57:45: warning: redeclaration of
'FlightSQLDatabaseGetOptionInt' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:37:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:58:45: warning: redeclaration of
'FlightSQLDatabaseInit' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:39:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:59:45: warning: redeclaration of
'FlightSQLDatabaseNew' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:40:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:60:45: warning: redeclaration of
'FlightSQLDatabaseRelease' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:41:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:61:45: warning: redeclaration of
'FlightSQLDatabaseSetOption' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:42:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:62:45: warning: redeclaration of
'FlightSQLDatabaseSetOptionBytes' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:44:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:63:45: warning: redeclaration of
'FlightSQLDatabaseSetOptionDouble' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:46:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:64:45: warning: redeclaration of
'FlightSQLDatabaseSetOptionInt' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:48:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:65:45: warning: redeclaration of
'FlightSQLConnectionGetOption' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:62:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:66:45: warning: redeclaration of
'FlightSQLConnectionGetOptionBytes' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:64:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:67:45: warning: redeclaration of
'FlightSQLConnectionGetOptionDouble' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:66:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:68:45: warning: redeclaration of
'FlightSQLConnectionGetOptionInt' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:68:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:69:45: warning: redeclaration of
'FlightSQLConnectionNew' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:85:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:70:45: warning: redeclaration of
'FlightSQLConnectionSetOption' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:95:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:71:45: warning: redeclaration of
'FlightSQLConnectionSetOptionBytes' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:97:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:72:45: warning: redeclaration of
'FlightSQLConnectionSetOptionDouble' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:100:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:73:45: warning: redeclaration of
'FlightSQLConnectionSetOptionInt' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:102:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:74:45: warning: redeclaration of
'FlightSQLConnectionInit' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:83:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:75:45: warning: redeclaration of
'FlightSQLConnectionRelease' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:91:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:76:45: warning: redeclaration of
'FlightSQLConnectionCancel' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:51:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:77:45: warning: redeclaration of
'FlightSQLConnectionGetInfo' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:54:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:78:45: warning: redeclaration of
'FlightSQLConnectionGetObjects' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:58:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:79:45: warning: redeclaration of
'FlightSQLConnectionGetStatistics' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:70:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:80:45: warning: redeclaration of
'FlightSQLConnectionGetStatisticNames' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:74:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:81:45: warning: redeclaration of
'FlightSQLConnectionGetTableSchema' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:77:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:82:45: warning: redeclaration of
'FlightSQLConnectionGetTableTypes' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:80:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:83:45: warning: redeclaration of
'FlightSQLConnectionReadPartition' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:86:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:84:45: warning: redeclaration of
'FlightSQLConnectionCommit' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:52:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:85:45: warning: redeclaration of
'FlightSQLConnectionRollback' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:93:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:86:45: warning: redeclaration of
'FlightSQLStatementGetOption' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:125:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:87:45: warning: redeclaration of
'FlightSQLStatementGetOptionBytes' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:127:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:88:45: warning: redeclaration of
'FlightSQLStatementGetOptionDouble' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:129:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:89:45: warning: redeclaration of
'FlightSQLStatementGetOptionInt' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:131:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:90:45: warning: redeclaration of
'FlightSQLStatementNew' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:136:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:91:45: warning: redeclaration of
'FlightSQLStatementRelease' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:140:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:92:45: warning: redeclaration of
'FlightSQLStatementCancel' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:111:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:93:45: warning: redeclaration of
'FlightSQLStatementPrepare' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:138:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:94:45: warning: redeclaration of
'FlightSQLStatementExecuteQuery' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:112:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:95:45: warning: redeclaration of
'FlightSQLStatementExecuteSchema' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:123:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:96:45: warning: redeclaration of
'FlightSQLStatementSetSqlQuery' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:151:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:97:45: warning: redeclaration of
'FlightSQLStatementSetSubstraitPlan' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:153:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:98:45: warning: redeclaration of
'FlightSQLStatementBind' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:105:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:99:45: warning: redeclaration of
'FlightSQLStatementBindStream' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:108:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:100:45: warning: redeclaration of
'FlightSQLStatementGetParameterSchema' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:133:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:101:45: warning: redeclaration of
'FlightSQLStatementSetOption' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:142:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:102:45: warning: redeclaration of
'FlightSQLStatementSetOptionBytes' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:144:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:103:45: warning: redeclaration of
'FlightSQLStatementSetOptionDouble' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:147:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:104:45: warning: redeclaration of
'FlightSQLStatementSetOptionInt' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:149:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:105:35: warning: redeclaration of
'releasePartitions' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
driver.go:48:7: note: previous declaration is here
cgo-gcc-export-header-prolog:106:45: warning: redeclaration of
'FlightSQLStatementExecutePartitions' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:115:16: note: previous declaration is here
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:107:45: warning: redeclaration of
'FlightSQLDriverInit' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
./utils.h:157:16: note: previous declaration is here
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
==> Removing installed dependencies...
checking dependencies...
Packages (120) git-2.47.1-1 heimdal-7.8.0-5 libcbor-0.11.0-1
libfido2-1.15.0-1 mingw-w64-clang-x86_64-abseil-cpp-20240722.0-3
mingw-w64-clang-x86_64-arrow-18.1.0-2
mingw-w64-clang-x86_64-aws-c-auth-0.8.0-1
mingw-w64-clang-x86_64-aws-c-cal-0.8.0-1
mingw-w64-clang-x86_64-aws-c-common-0.10.0-1
mingw-w64-clang-x86_64-aws-c-compression-0.3.0-1
mingw-w64-clang-x86_64-aws-c-event-stream-0.5.0-1
mingw-w64-clang-x86_64-aws-c-http-0.9.0-1
mingw-w64-clang-x86_64-aws-c-io-0.15.0-1
mingw-w64-clang-x86_64-aws-c-mqtt-0.11.0-1
mingw-w64-clang-x86_64-aws-c-s3-0.7.0-1
mingw-w64-clang-x86_64-aws-c-sdkutils-0.2.0-1
mingw-w64-clang-x86_64-aws-checksums-0.2.0-1
mingw-w64-clang-x86_64-aws-crt-cpp-0.29.0-1
mingw-w64-clang-x86_64-aws-sdk-cpp-1.11.435-1
mingw-w64-clang-x86_64-brotli-1.1.0-4 mingw-w64-clang-x86_64-bzip2-1.0.8-3
mingw-w64-clang-x86_64-c-ares-1.34.3-1
mingw-w64-clang-x86_64-ca-certificates-20240203-1
mingw-w64-clang-x86_64-clang-19.1.4-1 mingw-w64-clang-x86_64-clang-
libs-19.1.4-1 mingw-w64-clang-x86_64-cmake-3.31.2-3
mingw-w64-clang-x86_64-compiler-rt-19.1.4-1
mingw-w64-clang-x86_64-cppdap-1.65-1
mingw-w64-clang-x86_64-crt-git-12.0.0.r423.g8bcd5fc1a-1
mingw-w64-clang-x86_64-curl-8.11.0-2
mingw-w64-clang-x86_64-double-conversion-3.3.0-1
mingw-w64-clang-x86_64-expat-2.6.4-1
mingw-w64-clang-x86_64-flatbuffers-24.3.25-3
mingw-w64-clang-x86_64-gettext-runtime-0.22.5-2
mingw-w64-clang-x86_64-gflags-2.2.2-4 mingw-w64-clang-x86_64-glib2-2.82.2-1
mingw-w64-clang-x86_64-go-1.23.2-1 mingw-w64-clang-x86_64-grpc-1.68.2-1
mingw-w64-clang-x86_64-headers-git-12.0.0.r423.g8bcd5fc1a-1
mingw-w64-clang-x86_64-jsoncpp-1.9.6-3
mingw-w64-clang-x86_64-libarchive-3.7.7-1
mingw-w64-clang-x86_64-libb2-0.98.1-2 mingw-w64-clang-x86_64-libc++-19.1.4-1
mingw-w64-clang-x86_64-libffi-3.4.6-1 mingw-w64-clang-x86_64-libiconv-1.17-4
mingw-w64-clang-x86_64-libidn2-2.3.7-2 mingw-w64-clang-x86_64-libpsl-0.21.5-3
mingw-w64-clang-x86_64-libssh2-1.11.1-1 mingw-w
64-clang-x86_64-libsystre-1.0.1-6 mingw-w64-clang-x86_64-libtasn1-4.19.0-1
mingw-w64-clang-x86_64-libtre-0.9.0-1
mingw-w64-clang-x86_64-libunistring-1.2-1
mingw-w64-clang-x86_64-libunwind-19.1.4-1
mingw-w64-clang-x86_64-libutf8proc-2.9.0-1
mingw-w64-clang-x86_64-libuv-1.49.2-1
mingw-w64-clang-x86_64-libwinpthread-git-12.0.0.r423.g8bcd5fc1a-1
mingw-w64-clang-x86_64-libxml2-2.12.9-2 mingw-w64-clang-x86_64-lld-19.1.4-1
mingw-w64-clang-x86_64-llvm-19.1.4-1 mingw-w64-clang-x86_64-llvm-libs-19.1.4-1
mingw-w64-clang-x86_64-lz4-1.10.0-1 mingw-w64-clang-x86_64-mpdecimal-4.0.0-1
mingw-w64-clang-x86_64-nanoarrow-0.5.0-1
mingw-w64-clang-x86_64-ncurses-6.5.20240831-1
mingw-w64-clang-x86_64-nghttp2-1.63.0-1 mingw-w64-clang-x86_64-nghttp3-1.6.0-1
mingw-w64-clang-x86_64-ninja-1.12.1-1 mingw-w64-clang-x86_64-openssl-3.4.0-1
mingw-w64-clang-x86_64-p11-kit-0.25.5-1 mingw-w64-clang-x86_64-pcre2-10.44-1
mingw-w64-clang-x86_64-pkgconf-1~2.3.0-1 mingw-w64-clang-x86_64-protobuf-28.3-
2 mingw-w64-clang-x86_64-python-3.12.7-3
mingw-w64-clang-x86_64-python-packaging-24.2-1
mingw-w64-clang-x86_64-re2-20240702-2
mingw-w64-clang-x86_64-readline-8.2.013-1 mingw-w64-clang-x86_64-rhash-1.4.4-3
mingw-w64-clang-x86_64-snappy-1.2.1-1 mingw-w64-clang-x86_64-sqlite3-3.46.1-1
mingw-w64-clang-x86_64-tcl-8.6.13-1 mingw-w64-clang-x86_64-termcap-1.3.1-7
mingw-w64-clang-x86_64-thrift-0.21.0-1 mingw-w64-clang-x86_64-tk-8.6.13-1
mingw-w64-clang-x86_64-tzdata-2024b-1 mingw-w64-clang-x86_64-uriparser-0.9.8-1
mingw-w64-clang-x86_64-wineditline-2.208-1
mingw-w64-clang-x86_64-winpthreads-git-12.0.0.r423.g8bcd5fc1a-1
mingw-w64-clang-x86_64-xz-5.6.3-3 mingw-w64-clang-x86_64-zlib-1.3.1-1
mingw-w64-clang-x86_64-zstd-1.5.6-2 openssh-9.9p1-1 perl-Authen-SASL-2.1700-1
perl-Clone-0.47-1 perl-Convert-BinHex-1.125-2 perl-Encode-Locale-1.05-2
perl-Error-0.17029-2 perl-File-Listing-6.16-1 perl-HTML-Parser-3.83-1
perl-HTML-Tagset-3.24-1 perl-HTTP-Cookies-6.11-1 perl-HTTP-D
aemon-6.16-1 perl-HTTP-Date-6.06-1 perl-HTTP-Message-6.46-1
perl-HTTP-Negotiate-6.01-3 perl-IO-HTML-1.004-2 perl-IO-Socket-SSL-2.089-1
perl-IO-Stringy-2.113-2 perl-LWP-MediaTypes-6.04-2 perl-MIME-tools-5.515-1
perl-MailTools-2.21-2 perl-Net-HTTP-6.23-1 perl-Net-SMTP-SSL-1.04-2
perl-Net-SSLeay-1.94-1 perl-TermReadKey-2.38-6 perl-TimeDate-2.33-2
perl-Try-Tiny-0.32-1 perl-URI-5.29-1 perl-WWW-RobotRules-6.02-3
perl-http-cookiejar-0.014-1 perl-libwww-6.77-1
Total Removed Size: 2316.65 MiB
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]