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

building subversion --with-zlib=.... seems to have no effect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.9.5
    • None
    • compile
    • SLES11 or RHEL6 with latest available development tools installed

    Description

      I am building subversion from source but always see the output files depend on the system-supplied zlib which is way older than the one I want to use.
      What I did was this:

      ./configure --with-apr=/somedir/apr --with-apr-util=/somedir/apr-util --with-sqlite=/somedir/sqlite
      

      which gives me the error message that subversion requires zlib. So far so good. Then I do

      ./configure --with-apr=/somedir/apr --with-apr-util=/somedir/apr-util --with-sqlite=/somedir/sqlite --with-zlib=/somedir/zlib
      

      which terminates with exit code 0. The messages on stdout look ok, but when I do make and make install, the created libraries will depend on the system-supplied zlib instead of the one I specified to use. Further, in config.log I can see these lines:

      ...
        $ ./configure --with-apr=/somedir/apr --with-apr-util=/somedir/apr-util --with-sqlite=/somedir/sqlite --with-zlib=/somedir/zlib
      ...
      Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj
      --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program
      -suffix=-4.3 --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=x86_64-suse-linux
      ...
      configure:22579: zlib library configuration via prefix
      configure:22585: checking zlib.h usability
      configure:22585: gcc -c -g -O2 -g -O2 -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/somedir/zlib/include conftest.c >&5
      configure:22585: $? = 0
      configure:22585: result: yes
      configure:22585: checking zlib.h presence
      configure:22585: gcc -E -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/somedir/zlib/include conftest.c
      configure:22585: $? = 0
      configure:22585: result: yes
      configure:22585: checking for zlib.h
      configure:22585: result: yes
      configure:22593: checking for inflate in -lz
      configure:22618: gcc -o conftest -g -O2 -g -O2 -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/somedir/zlib/include -L/somedir/openldap/lib -L/somedir/expat/lib -L/somedir/zlib/lib conftest.c -lz >&5
      configure:22618: $? = 0
      configure:22627: result: yes
      

      So this is confusing for me. While the parameter I passed was recognized and the different checks on zlib were successful, the overall result is --with-system-zlib?

      After make and make install, when I check the compiled libraries I get this output:

      ldd libsvn_client-1.so
      ...
              libz.so.1 => /lib64/libz.so.1 (0x00007fc978e9f000)
      ...
      

      This shows me that the system zlib library is indeed referenced. How would I compile subversion with zlib in a nonstandard location? Unfortunately the impact is that Apache, when used with SVN, has two different dependencies upon zlib which results in conflicts during runtime.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hiran_chaudhuri Hiran Chaudhuri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: