[
https://issues.apache.org/jira/browse/AVRO-2777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17264715#comment-17264715
]
Michael Spector commented on AVRO-2777:
---------------------------------------
Ubuntu's installed version of `libsnappy` is pretty old (`1.1.3`). New
versions of this library have a dependency on `libstdc++`, which you have to
include if you'd like to build Avro against it.
One of options, is changing this line in Avro's `CMakeLists.txt` file:
{color:#dcdfe4}set{color}{color:#af5f00}({color}{color:#dcdfe4}CODEC_LIBRARIES
${color}{color:#e06c75}{{color}{color:#dcdfe4}ZLIB_LIBRARIES{color}{color:#e06c75}}
{color}{color:#dcdfe4}${color}{color:#e06c75}{{color}{color:#dcdfe4}LZMA_LIBRARIES{color}{color:#e06c75}}
{color}{color:#dcdfe4}${color}{color:#e06c75}{{color}{color:#dcdfe4}SNAPPY_LIBRARIES{color}{color:#e06c75}}{color}{color:#af5f00}){color}
> avro-c and snappy
> -----------------
>
> Key: AVRO-2777
> URL: https://issues.apache.org/jira/browse/AVRO-2777
> Project: Apache Avro
> Issue Type: Bug
> Components: build, c
> Affects Versions: 1.9.2
> Environment: Linux Ubuntu 18.04 with latest updates
> GCC9.2.1
> Reporter: EWZ
> Priority: Major
>
> I'm trying to build `master` avro-c and link it with `snappy`. The snappy is
> identified by cmake and linked into the avro-c library. However once the
> `avroappend` executable is built the link fails with
> >> libsnappy.a(snappy.cc.o): In function
> >>`snappy::internal::WorkingMemory::WorkingMemory(unsigned long)':
> >>snappy.cc:(.text+0x819): undefined reference to
> >>`std::allocator<char>::allocator()'
>
> looks like snappy's C++ creeping into the library. it happens if I link with
> locally built snappy (according to snappy docs), if I link with system
> provided (by apt) snappy, everything links ok. Please advise.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)