Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-9532

Built-in OpenSSL results in non-relocatable ROOT installation

    XMLWordPrintable

    Details

      Description

      Hi,

      As I was trying to build a small project of mine against a locally installed 6.14/00 installation on my laptop, I came across this failure:

      [ 41%] Building CXX object BosonFitLib/CMakeFiles/BosonFit.dir/CMakeFiles/BosonFitDict.cxx.o
      make[2]: *** No rule to make target `/Users/krasznaa/Development/ROOT/v6-14/build/builtins/openssl/OPENSSL-prefix/lib/libssl.a', needed by `lib/libBosonFit.dylib'.  Stop.
      make[1]: *** [BosonFitLib/CMakeFiles/BosonFit.dir/all] Error 2
      make: *** [all] Error 2
      

      Which comes from the fact that I see the following in my /Users/krasznaa/Software/ROOT/v6-14-00/cmake/ROOTConfig-targets.cmake file:

      # Create imported target ROOT::Net
      add_library(ROOT::Net SHARED IMPORTED)
       
      set_target_properties(ROOT::Net PROPERTIES
        INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
        INTERFACE_LINK_LIBRARIES "ROOT::RIO;/Users/krasznaa/Development/ROOT/v6-14/build/builtins/openssl/OPENSSL-prefix/lib/libssl.a;/Users/krasznaa/Development/ROOT/v6-14/build/builtins/openssl/OPENSSL-prefix/lib/libcrypto.a"
      )
      

      That's of course no good. The installed release should not remember which directory it was built in. Unfortunately this makes my ROOT build unusable as-is.

      In 6.12/06 the file looks like:

      # Create imported target ROOT::Net
      add_library(ROOT::Net SHARED IMPORTED)
       
      set_target_properties(ROOT::Net PROPERTIES
        INTERFACE_LINK_LIBRARIES "ROOT::RIO"
      )
      

      So the change obviously came from trying to teach the exported libraries about all their dependencies. But it was not done quite correctly.

      Cheers,
      Attila

        Attachments

          Activity

            People

            Assignee:
            amadio Guilherme Amadio
            Reporter:
            akraszna Attila Krasznahorkay
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Actual End: