Uploaded image for project: 'serf'
  1. serf
  2. SERF-149

[SOLVED] Error while compiling serf-1.3.6 from source on Linux during the check phase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None

    Description

      Hello,

      Not sure if I'm doing something wrong here, but it seems that the LD_LIBRARY_PATH environment variable is not being read when compiling serf from source (serf-1.3.6.tar.bz2) on Linux (RHEL4). Actually it fails only during the "check" step.

      Due to restrictions on my Linux server I had to install everything locally (SCons, Python, OpenSSL, APR, etc.). All looks and works fine, but when I try to compile serf from source by running the following steps look what I get:

      $ scons APR=$HOME/local APU=$HOME/local OPENSSL=$HOME/local PREFIX=$HOME/local CFLAGS=-m64
      (builds everything just fine)

      $ scons check CFLAGS=-m64

      == Testing test/testcases/chunked-trailers.response ==
      test/serf_response: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
      ERROR: test case test/testcases/chunked-trailers.response failed
      scons: *** [check] Error 1
      scons: building terminated because of errors.

      The way I fixed this was to edit build/check.py file and add the following line right before the subprocess.check_call([SERF_RESPONSE_EXE, case]) one:

      os.environ["LD_LIBRARY_PATH"] = "/home/myuserid/local/lib"

      Yes, I had the LD_LIBRARY_PATH set in my ~/.profile and it's working, but for some reason it's not being passed to the child process' environment (is it a Python issue?).

      After adding this line everything works as expected.

      I just wanted to let you guys know, in case this is indeed something in serf and not in my particular environment.

      Thanks.

      Original issue reported by felix.almeida

      Attachments

        Activity

          People

            Unassigned Unassigned
            serf-importer Serf Importer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: