Hm, 

quoting build/arangod/cmake_install.cmake: 



















*if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL 
"Unspecified")  if(EXISTS 
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/sbin/arangod" AND     NOT IS_SYMLINK 
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/sbin/arangod")    
file(RPATH_CHECK         FILE 
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/sbin/arangod"         RPATH "")  
endif()  file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/sbin" TYPE 
EXECUTABLE FILES "/local/home/willi/src/devel/ninja/bin/arangod")  
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/sbin/arangod" AND     NOT 
IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/sbin/arangod")    
file(RPATH_CHANGE         FILE 
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/sbin/arangod"         OLD_RPATH 
"/local/home/willi/src/devel/ninja/3rdParty/libev:/local/home/willi/src/devel/ninja/3rdParty/V8/v8/Release/obj/tools/gyp:/local/home/willi/src/devel/ninja/3rdParty/V8/v8/Release/obj/third_party/icu:/local/home/willi/src/devel/ninja/3rdParty/zlib/zlib-1.2.8:"
         
NEW_RPATH "")    if(CMAKE_INSTALL_DO_STRIP)      execute_process(COMMAND 
"/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/sbin/arangod")    
endif()  endif()endif()*

but to be honest, I don't know what sets that - our macros in 
cmake/ArangoDBMacros.cmake which work with RPATH are commented out.
As far as I can see, its probably something cmake does on its own?


Cheers, 
Willi


On Monday, July 25, 2016 at 11:15:35 PM UTC+2, Dmitri Dmitrienko wrote:
>
> Hi there,
>
> make install makes unexpected changes in rpath. In my case, according to 
> corporate rules, gcc4.9.3 is installed in /opt/ncbi/gcc/4.9.3 
> It means that the libraries for this compiler are 
> in /opt/ncbi/gcc/4.9.3/lib. This is perfectly recognized by cmake and 
> compiled binaries in build/ArangoDB-3.0.3/build/bin subdirectory show 
> correct path to .so objects:
> bash-4.2$ ldd ./arangod  
>         linux-vdso.so.1 =>  (0x00007ffdcb234000)
>
> everything was fine until I tried to install these binaries using make 
> install...
> The installed binaries won't run showing unresolved entries in 
> libstdc++.so.6
> bash-4.2$ ./arangod
> ./arangod: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found 
> (required by ./arangod)
> ./arangod: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found 
> (required by ./arangod)
>
> it's because rpath was updated to /lib64:
>
> bash-4.2$ ldd ./arangod   
> ./arangod: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found 
> (required by ./arangod)
> ./arangod: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found 
> (required by ./arangod)
>         linux-vdso.so.1 =>  (0x00007ffcd4115000)
>         libssl.so.10 => /lib64/libssl.so.10 (0x00007f5b87ceb000)
>         libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f5b87902000)
>         libdl.so.2 => /lib64/libdl.so.2 (0x00007f5b876fe000)
>         libjemalloc.so.1 => /lib64/libjemalloc.so.1 (0x00007f5b874ca000)
>         libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f5b872af000)
>         librt.so.1 => /lib64/librt.so.1 (0x00007f5b870a7000)
>         libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5b86e8b000)
>         libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f5b86b82000)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>         libm.so.6 => /lib64/libm.so.6 (0x00007f5b86880000)
>         libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f5b8666a000)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>         libc.so.6 => /lib64/libc.so.6 (0x00007f5b862a7000)
>         libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 
> (0x00007f5b8605b000)
>         libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f5b85d76000)
>         libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f5b85b71000)
>         libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f5b8593f000)
>         libz.so.1 => /lib64/libz.so.1 (0x00007f5b85729000)
>         /lib64/ld-linux-x86-64.so.2 (0x00007f5b87f78000)
>         libkrb5support.so.0 => /lib64/libkrb5support.so.0 
> (0x00007f5b85519000)
>         libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f5b85315000)
>         libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f5b850ef000)
>         libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f5b84e8e000)
>         liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f5b84c69000)
>
> If I copy binaries in build/ArangoDB-3.0.3/build/bin over the installed, 
> they work fine.
>
> Question - is there a way to avoid updating rpath as a part of make 
> install?
> In Arangodb 2.0.10/11 this worked good and rpath wasn't updated.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to