lidavidm opened a new issue, #995:
URL: https://github.com/apache/arrow-adbc/issues/995

   Occurs in the Documentation pipeline.
   
   <details>
   
   ```
   ** libs
   using C compiler: ‘x86_64-conda-linux-gnu-cc (conda-forge gcc 12.3.0-0) 
12.3.0’
   x86_64-conda-linux-gnu-cc -I"/opt/conda/envs/adbc/lib/R/include" -DNDEBUG 
-I/adbc/r/adbcsnowflake/src/src -DADBC_EXPORT=""  -DNDEBUG -D_FORTIFY_SOURCE=2 
-O2 -isystem /opt/conda/envs/adbc/include -I/opt/conda/envs/adbc/include 
-Wl,-rpath-link,/opt/conda/envs/adbc/lib    -fpic  -march=nocona -mtune=haswell 
-ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 
-ffunction-sections -pipe -isystem /opt/conda/envs/adbc/include 
-fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/r-base-split_1689933267587/work=/usr/local/src/conda/r-base-4.3.1
 -fdebug-prefix-map=/opt/conda/envs/adbc=/usr/local/src/conda-prefix  -c init.c 
-o init.o
   (cd "/adbc/r/adbcsnowflake/src/go/adbc"; CC="x86_64-conda-linux-gnu-cc" 
CXX="x86_64-conda-linux-gnu-c++ -std=gnu++17" 
CGO_CFLAGS="-I"/opt/conda/envs/adbc/lib/R/include" -DNDEBUG 
-I/adbc/r/adbcsnowflake/src/src -DADBC_EXPORT=""  -DNDEBUG -D_FORTIFY_SOURCE=2 
-O2 -isystem /opt/conda/envs/adbc/include -I/opt/conda/envs/adbc/include 
-Wl,-rpath-link,/opt/conda/envs/adbc/lib  " "/opt/conda/envs/adbc/bin/go" build 
-v -tags driverlib -o /adbc/r/adbcsnowflake/src/go/libadbc_driver_snowflake.a 
-buildmode=c-archive "./pkg/snowflake")
   github.com/apache/arrow-adbc/go/adbc
   runtime/cgo
   github.com/apache/arrow-adbc/go/adbc/driver/internal
   os/user
   net
   github.com/apache/arrow/go/v13/arrow/cdata
   github.com/apache/arrow/go/v13/arrow/memory/mallocator
   github.com/godbus/dbus
   github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime
   github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/shared
   github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/sas
   github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blob
   github.com/apache/thrift/lib/go/thrift
   github.com/aws/smithy-go/transport/http
   github.com/aws/aws-sdk-go-v2/aws/retry
   github.com/aws/aws-sdk-go-v2/aws/transport/http
   github.com/aws/aws-sdk-go-v2/service/s3
   github.com/snowflakedb/gosnowflake
   github.com/apache/arrow-adbc/go/adbc/driver/snowflake
   github.com/apache/arrow-adbc/go/adbc/pkg/snowflake
   x86_64-conda-linux-gnu-cc -shared -L/opt/conda/envs/adbc/lib/R/lib -Wl,-O2 
-Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now 
-Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined 
-Wl,-rpath,/opt/conda/envs/adbc/lib -Wl,-rpath-link,/opt/conda/envs/adbc/lib 
-L/opt/conda/envs/adbc/lib -o adbcsnowflake.so init.o 
-L/adbc/r/adbcsnowflake/src/go -ladbc_driver_snowflake 
-L/opt/conda/envs/adbc/lib/R/lib -lR
   installing to 
/opt/conda/envs/adbc/lib/R/library/00LOCK-adbcsnowflake/00new/adbcsnowflake/libs
   ** R
   ** byte-compile and prepare package for lazy loading
   ** help
   *** installing help indices
   ** building package indices
   ** testing if installed package can be loaded from temporary location
   Error: package or namespace load failed for ‘adbcsnowflake’ in 
dyn.load(file, DLLpath = DLLpath, ...):
    unable to load shared object 
'/opt/conda/envs/adbc/lib/R/library/00LOCK-adbcsnowflake/00new/adbcsnowflake/libs/adbcsnowflake.so':
     
/opt/conda/envs/adbc/lib/R/library/00LOCK-adbcsnowflake/00new/adbcsnowflake/libs/adbcsnowflake.so:
 undefined symbol: __res_search
   Error: loading failed
   ```
   
   </details>
   
   Looking at Makevars.in I think we need `-lresolv` in CGO_CFLAGS or something 
along those lines; we're setting it in PKG_LIBS but that isn't actually passed 
to Go/the linker anywhere that I can see


-- 
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]

Reply via email to