Jeremy Dyer created MINIFICPP-1018:
--------------------------------------

             Summary: 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
             Fix For: 0.7.0


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)

Reply via email to