Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-3222

--with-zlib resets LDFLAGS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.x
    • 1.5.1
    • compile
    • None

    Description

      The compile on Sparc 64 Solaris, using Sun Studio seems to be broken, after 
      installation (note that I first install to a $DESTDIR and then package the 
      software) I'm getting for all binaries errors such as:
      
      igalic@ast5inbld001:~> svn help
      ld.so.1: svn: fatal: libcrypto_extra.so.0.9.7: open failed: No such file or 
      directory
      Killed
      
      igalic@ast5inbld001:~> ldd $(which svn)
              libsvn_client-1.so.0 =>  /opt/baw/lib/libsvn_client-1.so.0
              libsvn_wc-1.so.0 =>      /opt/baw/lib/libsvn_wc-1.so.0
              libsvn_ra-1.so.0 =>      /opt/baw/lib/libsvn_ra-1.so.0
              libsvn_diff-1.so.0 =>    /opt/baw/lib/libsvn_diff-1.so.0
              libsvn_ra_local-1.so.0 =>        /opt/baw/lib/libsvn_ra_local-1.so.0
              libsvn_repos-1.so.0 =>   /opt/baw/lib/libsvn_repos-1.so.0
              libsvn_fs-1.so.0 =>      /opt/baw/lib/libsvn_fs-1.so.0
              libsvn_fs_fs-1.so.0 =>   /opt/baw/lib/libsvn_fs_fs-1.so.0
              libsvn_fs_util-1.so.0 =>         /opt/baw/lib/libsvn_fs_util-1.so.0
              libsvn_ra_svn-1.so.0 =>  /opt/baw/lib/libsvn_ra_svn-1.so.0
              libsvn_ra_neon-1.so.0 =>         /opt/baw/lib/libsvn_ra_neon-1.so.0
              libsvn_delta-1.so.0 =>   /opt/baw/lib/libsvn_delta-1.so.0
              libsvn_subr-1.so.0 =>    /opt/baw/lib/libsvn_subr-1.so.0
              libaprutil.so.0 =>       /opt/baw/lib/libaprutil.so.0
              libldap.so.5 =>  /usr/lib/64/libldap.so.5
              libapr-1.so.0 =>         /opt/baw/lib/libapr-1.so.0
              libuuid.so.1 =>  /lib/64/libuuid.so.1
              libsendfile.so.1 =>      /lib/64/libsendfile.so.1
              librt.so.1 =>    /lib/64/librt.so.1
              libpthread.so.1 =>       /lib/64/libpthread.so.1
              libneon.so.27 =>         /opt/baw/lib/libneon.so.27
              libcrypto_extra.so.0.9.7 =>      (file not found)
              libssl_extra.so.0.9.7 =>         (file not found)
              libz.so.1 =>     /usr/lib/64/libz.so.1
              libssl.so.0.9.7 =>       (file not found)
              libcrypto.so.0.9.7 =>    (file not found)
              libnsl.so.1 =>   /lib/64/libnsl.so.1
              libdl.so.1 =>    /lib/64/libdl.so.1
              libexpat.so.0 =>         (file not found)
              libsocket.so.1 =>        /lib/64/libsocket.so.1
              libthread.so.1 =>        /lib/64/libthread.so.1
              libc.so.1 =>     /lib/64/libc.so.1
              libexpat.so.0 =>         /usr/sfw/lib/sparcv9/libexpat.so.0
              libsasl.so.1 =>  /usr/lib/64/libsasl.so.1
              libmd.so.1 =>    /lib/64/libmd.so.1
              libnspr4.so =>   /usr/lib/mps/64/libnspr4.so
              libplc4.so =>    /usr/lib/mps/64/libplc4.so
              libnss3.so =>    /usr/lib/mps/64/libnss3.so
              libssl3.so =>    /usr/lib/mps/64/libssl3.so
              libaio.so.1 =>   /lib/64/libaio.so.1
              libcrypto_extra.so.0.9.7 =>      /usr/sfw/lib/sparcv9/
      libcrypto_extra.so.0.9.7
              libssl_extra.so.0.9.7 =>         /usr/sfw/lib/sparcv9/
      libssl_extra.so.0.9.7
              libssl.so.0.9.7 =>       /usr/sfw/lib/sparcv9/libssl.so.0.9.7
              libcrypto.so.0.9.7 =>    /usr/sfw/lib/sparcv9/libcrypto.so.0.9.7
              libmp.so.2 =>    /lib/64/libmp.so.2
              libscf.so.1 =>   /lib/64/libscf.so.1
              libsoftokn3.so =>        /usr/lib/mps/sparcv9/libsoftokn3.so
              libplds4.so =>   /usr/lib/mps/sparcv9/libplds4.so
              libdoor.so.1 =>  /lib/64/libdoor.so.1
              libuutil.so.1 =>         /lib/64/libuutil.so.1
              libgen.so.1 =>   /lib/64/libgen.so.1
              libbsm.so.1 =>   /lib/64/libbsm.so.1
              libsecdb.so.1 =>         /lib/64/libsecdb.so.1
              libtsol.so.2 =>  /lib/64/libtsol.so.2
              libcmd.so.1 =>   /lib/64/libcmd.so.1
              libm.so.2 =>     /lib/64/libm.so.2
              /platform/SUNW,Sun-Fire-T200/lib/sparcv9/libc_psr.so.1
              /platform/SUNW,Sun-Fire-T200/lib/sparcv9/libmd_psr.so.1
      
      elfdump shows that both, RPATH and RUNPATH only point to /opt/baw/lib - as 
      opposed to httpd (which I built like this too), which points to /opt/baw/lib:/
      lib/sparcv9:/usr/lib/sparcv9:/usr/sfw/lib/sparcv9:etc..
      
      I have extracted one of the offending lines from the build, in this case for 
      svnadmin, which lacks linkage to libexpat:
      
      cc64 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT  -fast -s -
      xarch=sparcvis2 -m64 -mt     -I./subversion/include -I./subversion -I/opt/baw/
      include/neon -I/opt/baw/include/apr-1   -I/opt/baw/include -I/usr/sfw/include -
      I/usr/include -o subversion/svnadmin/main.o -c subversion/svnadmin/main.c
      cd subversion/svnadmin && /opt/baw/share/apr-1/build/libtool --tag=CC --silent 
      --mode=link cc64  -fast -s -xarch=sparcvis2 -m64 -mt     -L/usr/lib  -rpath /
      opt/baw/lib -o svnadmin  main.o ../../subversion/libsvn_repos/
      libsvn_repos-1.la ../../subversion/libsvn_fs/libsvn_fs-1.la ../../subversion/
      libsvn_delta/libsvn_delta-1.la ../../subversion/libsvn_subr/libsvn_subr-1.la /
      opt/baw/lib/libaprutil.la -lldap -ldl -lpthread -lexpat /opt/baw/lib/
      libapr-1.la -luuid -lsendfile -lrt -lsocket -lnsl  -lpthread -lsocket
      cd subversion/svnadmin ; /opt/baw/share/apr-1/build/libtool --mode=install /usr/
      local/bin/install -c svnadmin /tmp/build/subversion-server/staging/subversion-
      server-1.5.0/opt/baw/bin/svnadmin
      /usr/local/bin/install -c .libs/svnadmin /tmp/build/subversion-server/staging/
      subversion-server-1.5.0/opt/baw/bin/svnadmin
      /usr/local/bin/install -c -m 644 ./subversion/svnadmin/svnadmin.1 /tmp/build/
      subversion-server/staging/subversion-server-1.5.0/opt/baw/share/man/man1/
      svnadmin.1
      
      
      I can provide any additional information you should need, such as the 
      config.log, or the complete build transcript: http://resources.brainsware.org/
      bugs/svn15.build (from which I grepped the above lines)
      

      Original issue reported by ahiro

      Attachments

        Activity

          People

            Unassigned Unassigned
            subversion-importer Subversion Importer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: