You can try out this patch if you like: https://github.com/apache/parquet-cpp/pull/258
This should be included in the next 1.0.0 RC On Wed, Feb 22, 2017 at 1:32 PM, Keith Chapman <keithgchap...@gmail.com> wrote: > Thanks Wes. > > Regards, > Keith. > > http://keith-chapman.com > > On Wed, Feb 22, 2017 at 10:30 AM, Wes McKinney <wesmck...@gmail.com> wrote: >> >> I'm able to reproduce the issue on Ubuntu 14.04 >> >> Linking CXX shared library debug/libparquet.so >> /usr/bin/ld: /usr/lib/libsnappy.a(snappy.o): relocation R_X86_64_32S >> against `.rodata' can not be used when making a shared object; >> recompile with -fPIC >> /usr/lib/libsnappy.a: error adding symbols: Bad value >> collect2: error: ld returned 1 exit status >> >> Patch forthcoming >> >> On Wed, Feb 22, 2017 at 1:29 PM, Keith Chapman <keithgchap...@gmail.com> >> wrote: >> > Hi Wes, >> > >> > No I don't have SNAPPY_HOME set. Yes this seems similar to 885 >> > >> > On Feb 22, 2017 10:25 AM, "Wes McKinney" <wesmck...@gmail.com> wrote: >> >> >> >> hi Keith, >> >> >> >> It's not caused by PARQUET-885, but it is the same type of problem. Do >> >> you have $SNAPPY_HOME set? If you compile your own thirdparty >> >> libraries, they need to be built with -fPIC to support static linking >> >> into a shared library. Otherwise it's easier to let parquet-cpp build >> >> its own thirdparty toolchain. Because some Linux distributions don't >> >> set -fPIC in their packages, we should make a similar change as >> >> PARQUET-885 for Snappy. Looking into it now... >> >> >> >> I'm also going to add a note about this to the README. >> >> >> >> - Wes >> >> >> >> On Wed, Feb 22, 2017 at 1:05 PM, Keith Chapman >> >> <keithgchap...@gmail.com> >> >> wrote: >> >> > Hi, >> >> > >> >> > I'm trying to build master and I get the following error, I have the >> >> > .so >> >> > versions of the files as seen below too, Is this somewhat relaped to >> >> > Parquet-885? >> >> > >> >> > ls /usr/lib/x86_64-linux-gnu/libsnappy. >> >> > libsnappy.a libsnappy.so libsnappy.so.1 >> >> > libsnappy.so.1.3.0 >> >> > >> >> > Error seen: >> >> > >> >> > /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libsnappy.a(snappy.o): >> >> > relocation >> >> > R_X86_64_32S against `.rodata' can not be used when making a shared >> >> > object; >> >> > recompile with -fPIC >> >> > /usr/lib/x86_64-linux-gnu/libsnappy.a: error adding symbols: Bad >> >> > value >> >> > collect2: error: ld returned 1 exit status >> >> > CMakeFiles/parquet_shared.dir/build.make:115: recipe for target >> >> > 'release/libparquet.so' failed >> >> > make[2]: *** [release/libparquet.so] Error 1 >> >> > CMakeFiles/Makefile2:218: recipe for target >> >> > 'CMakeFiles/parquet_shared.dir/all' failed >> >> > make[1]: *** [CMakeFiles/parquet_shared.dir/all] Error 2 >> >> > Makefile:138: recipe for target 'all' failed >> >> > make: *** [all] Error 2 >> >> > >> >> > Regards, >> >> > Keith. >> >> > >> >> > http://keith-chapman.com > >