Uploaded image for project: 'Apache HAWQ (Retired)'
  1. Apache HAWQ (Retired)
  2. HAWQ-1066

Improper handling of install name for shared library on OS X

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • backlog
    • libhdfs
    • None

    Description

      Created as a carryover for libhdfs3 Github #40 on behalf of elfprince13:

      I am working on a project that has libhdfs3 as a submodule in our git repo. Since we want to keep the build process contained in a single (user-owned) directory tree, we configure with cmake -DCMAKE_INSTALL_PREFIX:PATH=$(pwd)/usr. However, after running make && make install, I then find the following incorrect behavior when I run otool.

      [thomas@Mithlond] libhdfs3-cmake $ otool -D usr/lib/libhdfs3.dylib
      usr/lib/libhdfs3.dylib:
      libhdfs3.1.dylib
      

      Note that since the install name is incorrectly set, linking against this copy of the library, even by absolute path, will produce a binary that can't find libhdfs3.dylib without manually altering LD_LIBRARY_PATH.

      Attachments

        Activity

          People

            lei_chang Lei Chang
            kdunn926 Kyle R Dunn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: