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

Keith Hughitt commented on ARROW-9025:
--------------------------------------

Just a quick update – issue remains with the 1.0.0 release of arrow / protobuf 
3.12.4:

 

```

[ 45%] Linking CXX executable ../../release/arrow-misc-test
/usr/bin/ld: ../../release/libarrow.so.100.0.0: undefined reference to 
`google::protobuf::internal::UnknownFieldParse(unsigned int, 
google::protobuf::internal::InternalMetadataWithArena*, char const*, 
google::protobuf::internal::ParseContext*)'
/usr/bin/ld: ../../release/libarrow.so.100.0.0: undefined reference to 
`google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable
 const*)'
/usr/bin/ld: ../../release/libarrow.so.100.0.0: undefined reference to 
`google::protobuf::internal::ComputeUnknownFieldsSize(google::protobuf::internal::InternalMetadataWithArena
 const&, unsigned long, google::protobuf::internal::CachedSize*)'
collect2: error: ld returned 1 exit status
make[2]: *** [src/arrow/CMakeFiles/arrow-misc-test.dir/build.make:178: 
release/arrow-misc-test] Error 1
make[1]: *** [CMakeFiles/Makefile2:1358: 
src/arrow/CMakeFiles/arrow-misc-test.dir/all] Error 2
make: *** [Makefile:160: all] Error 2

```

 

(I skipped the PLASMA tests above to see if I could finish building; those also 
raise issues if left on.)

> [C++] Apache arrow fails to build with recent version of protobuf?
> ------------------------------------------------------------------
>
>                 Key: ARROW-9025
>                 URL: https://issues.apache.org/jira/browse/ARROW-9025
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: 0.2.0, 0.17.0
>         Environment: - Arch Linux 5.6.15 (64-bit)
> - Protobuf 3.12.0
> - cmake 3.17.3
>            Reporter: Keith Hughitt
>            Priority: Major
>
> Greetings!
>  
> I am running into errors when attempting to compile recent versions of Arrow 
> (0.17.0 and nightly for 2020-06-02).
>  
> I believe the issue may be related to a recent update to the protobuf library 
> (version 3.12.0):
>  
> {{{color:#0747a6}...
> Scanning dependencies of target plasma-serialization-tests
> [ 41%] Building CXX object 
> src/plasma/CMakeFiles/plasma-serialization-tests.dir/test/serialization_tests.cc.o
> In file included from /usr/include/string.h:495,
>                  from 
> /home/keith/software/arrow-git/src/build/googletest_ep-prefix/include/gtest/internal/gtest-port.h:270,
>                  from 
> /home/keith/software/arrow-git/src/build/googletest_ep-prefix/include/gtest/internal/gtest-internal.h:40,
>                  from 
> /home/keith/software/arrow-git/src/build/googletest_ep-prefix/include/gtest/gtest.h:59,
>                  from 
> /home/keith/software/arrow-git/src/arrow/cpp/src/plasma/test/serialization_tests.cc:23:
> In function ‘char* strncpy(char*, const char*, size_t)’,
>     inlined from ‘int plasma::TestPlasmaSerialization::CreateTemporaryFile()’ 
> at 
> /home/keith/software/arrow-git/src/arrow/cpp/src/plasma/test/serialization_tests.cc:85:12:
> /usr/include/bits/string_fortified.h:106:34: warning: ‘char* 
> __builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 
> 1024 equals destination size [-Wstringop-truncation]
>   106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos 
> (__dest));
>       |          
> ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [ 41%] Linking CXX executable ../../release/plasma-serialization-tests
> /usr/bin/ld: ../../release/libarrow.so.18.0.0: undefined reference to 
> `google::protobuf::internal::ComputeUnknownFieldsSize(google::protobuf::internal::InternalMetadataWithArena
>  const&, unsigned long, google::protobuf::internal::CachedSize*)'
> /usr/bin/ld: ../../release/libarrow.so.18.0.0: undefined reference to 
> `google::protobuf::internal::UnknownFieldParse(unsigned int, 
> google::protobuf::internal::InternalMetadataWithArena*, char const*, 
> google::protobuf::internal::ParseContext*)'
> /usr/bin/ld: ../../release/libarrow.so.18.0.0: undefined reference to 
> `google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable
>  const*)'
> collect2: error: ld returned 1 exit status
> make[2]: *** 
> [src/plasma/CMakeFiles/plasma-serialization-tests.dir/build.make:123: 
> release/plasma-serialization-tests] Error 1
> make[1]: *** [CMakeFiles/Makefile2:1516: 
> src/plasma/CMakeFiles/plasma-serialization-tests.dir/all] Error 2
> make: *** [Makefile:161: all] Error 2{color}}}
> {{ }}
> The result is similar for the most recent nightly version of Arrow 
> (2020-06-02).
>  
> Just let me know if there is anything you would like me to try / any other 
> information I can help provide.



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

Reply via email to