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

Saatvik commented on PARQUET-1029:
----------------------------------

So I built arrow and set ARROW_HOME=$HOME//repos/arrow
And I set PARQUET_HOME=$HOME/repos/parquet-cpp

I'm getting the following error when trying to build parquet according to the 
guide:
{quote}/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libz.a(deflate.o): relocation 
R_X86_64_32S against `_length_code' can not be used when making a shared 
object; recompile with -fPIC
/usr/lib/x86_64-linux-gnu/libz.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/parquet_shared.dir/build.make:122: recipe for target 
'release/libparquet.so.1.0.0' failed
make[2]: *** [release/libparquet.so.1.0.0] Error 1
CMakeFiles/Makefile2:110: 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{quote}

I can see that I have to add the -fPIC flag - but where exactly?

> Attempting to import Parquet-Cpp to use in my own project
> ---------------------------------------------------------
>
>                 Key: PARQUET-1029
>                 URL: https://issues.apache.org/jira/browse/PARQUET-1029
>             Project: Parquet
>          Issue Type: Bug
>          Components: parquet-cpp
>         Environment: 64 Bit Ununtu 14.04
>            Reporter: Saatvik
>            Assignee: Wes McKinney
>            Priority: Minor
>              Labels: documentation, newbie, starter
>
> Relatively new to C++.
> I'm attempting to import Parquet-Cpp into my own C++ source code outside of a 
> project. I've added this questiond here as well: 
> https://stackoverflow.com/questions/44509984/importing-from-a-large-c-library,
>  
> https://stackoverflow.com/questions/44507840/linking-a-shared-library-from-a-large-github-project?noredirect=1.
>  Basically when I'm trying to link my source code to libparquet.so libraries 
> and header files, the compiler is successful but the linker fails with 
> undefined reference errors.
> I've written about the issue in a lot of detail in the questions above. If 
> required I can explain it again here?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to