You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Daniel Bakai (Jira)" <ji...@apache.org> on 2019/09/02 08:59:00 UTC
[jira] [Updated] (MINIFICPP-1018) libcurl linking issues
[ https://issues.apache.org/jira/browse/MINIFICPP-1018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Bakai updated MINIFICPP-1018:
------------------------------------
Status: Patch Available (was: In Progress)
> libcurl linking issues
> ----------------------
>
> Key: MINIFICPP-1018
> URL: https://issues.apache.org/jira/browse/MINIFICPP-1018
> Project: Apache NiFi MiNiFi C++
> Issue Type: Bug
> Affects Versions: master
> Reporter: Jeremy Dyer
> Assignee: Daniel Bakai
> Priority: Major
> Fix For: 0.7.0
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> When building on a 64bit Ubuntu 18.04/bionic machine libcurl is having trouble linking with libpython-lib.so. My CMake and error message are below.
>
> cmake -DDISABLE_SCRIPTING=ON -DENABLE_PCAP=ON -DENABLE_USB_CAMERA=ON -DENABLE_AWS=ON -DENABLE_LIBRDKAFKA=ON -DENABLE_PYTHON=ON -DENABLE_OPENCV=ON -DENABLE_OPENCV=ON -DSKIP_TESTS=true -DUSE_SHARED_LIBS=ON -DPORTABLE=ON -DBUILD_ROCKSDB=ON -DBUILD_IDENTIFIER= -DCMAKE_BUILD_TYPE=RelWithDebInfo -DFAIL_ON_WARNINGS= ..
>
> [ 98%] Linking CXX shared library libpython-lib.so
> /usr/bin/ld: ../../thirdparty/curl-install/lib/libcurl.a(url.c.o): relocation R_X86_64_PC32 against symbol `stdout@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
> collect2: error: ld returned 1 exit status
> python/library/CMakeFiles/python-lib.dir/build.make:100: recipe for target 'python/library/libpython-lib.so' failed
> make[2]: *** [python/library/libpython-lib.so] Error 1
> CMakeFiles/Makefile2:3901: recipe for target 'python/library/CMakeFiles/python-lib.dir/all' failed
> make[1]: *** [python/library/CMakeFiles/python-lib.dir/all] Error 2
> Makefile:151: recipe for target 'all' failed
> make: *** [all] Error 2
--
This message was sent by Atlassian Jira
(v8.3.2#803003)