[ 
https://issues.apache.org/jira/browse/ARROW-9414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17156812#comment-17156812
 ] 

Kouhei Sutou edited comment on ARROW-9414 at 7/13/20, 9:03 PM:
---------------------------------------------------------------

Full error log when compiling [^test.cpp]:

{noformat}
Scanning dependencies of target test.o
[ 50%] Building CXX object CMakeFiles/test.o.dir/test.cpp.o
[100%] Linking CXX executable test.o
CMakeFiles/test.o.dir/test.cpp.o: In function `main':
test.cpp:(.text+0x26): undefined reference to `arrow::fs::S3Options::Defaults()'
test.cpp:(.text+0x3f): undefined reference to 
`arrow::fs::S3FileSystem::Make(arrow::fs::S3Options const&)'
collect2: error: ld returned 1 exit status
CMakeFiles/test.o.dir/build.make:104: recipe for target 'test.o' failed
make[2]: *** [test.o] Error 1
CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/test.o.dir/all' failed
make[1]: *** [CMakeFiles/test.o.dir/all] Error 2
Makefile:103: recipe for target 'all' failed
make: *** [all] Error 2
{noformat}


was (Author: bertron):
Full error log when compiling [^test.cpp]:

Scanning dependencies of target test.o
[ 50%] Building CXX object CMakeFiles/test.o.dir/test.cpp.o
[100%] Linking CXX executable test.o
CMakeFiles/test.o.dir/test.cpp.o: In function `main':
test.cpp:(.text+0x26): undefined reference to `arrow::fs::S3Options::Defaults()'
test.cpp:(.text+0x3f): undefined reference to 
`arrow::fs::S3FileSystem::Make(arrow::fs::S3Options const&)'
collect2: error: ld returned 1 exit status
CMakeFiles/test.o.dir/build.make:104: recipe for target 'test.o' failed
make[2]: *** [test.o] Error 1
CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/test.o.dir/all' failed
make[1]: *** [CMakeFiles/test.o.dir/all] Error 2
Makefile:103: recipe for target 'all' failed
make: *** [all] Error 2

> [C++] apt package includes headers for S3 interface, but no support
> -------------------------------------------------------------------
>
>                 Key: ARROW-9414
>                 URL: https://issues.apache.org/jira/browse/ARROW-9414
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: 0.17.1
>         Environment: Ubuntu 18.04.04 LTS
>            Reporter: Simon Bertron
>            Assignee: Kouhei Sutou
>            Priority: Minor
>         Attachments: test.cpp
>
>
> I believe that the apt package is built without S3 support. But s3fs.h is 
> exported in filesystem/api.h anyway. This creates undefined reference errors 
> when trying to link to the package.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to