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

Build failure on amd64 due to neon default-static behaviour

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.4.x
    • unscheduled
    • compile
    • None
    • Linux

    Description

      See my original mail on this subject:
      http://www.tigris.org/servlets/PasswordEdit?userID=77643&ticket=b48830fab353ea02d756a48d43319274
      
      I downloaded the subversion 1.4.0 tar file and ran configure and make on a SuSE
      9.3 (x86-64) system.  It failed to compile since it tries to link a static neon
      library compiled without -fPIC into a shared library.
      
      The rest of this report is copied from my mail:
      
      What I did:
      $ tar jxf subversion-1.4.0.tar.bz2
      $ tar jxf subversion-deps-1.4.0.tar.bz2
      $ mkdir builddir
      $ cd builddir
      $ ../subversion-1.4.0/configure
      ...
      $ make
      ...
      /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld:
      /home/david/src/builddir/neon/src/.libs/libneon.a(ne_request.o): relocation
      R_X86_64_32 against `a local symbol' can not be used when making a shared
      object; recompile with -fPIC
      
      
      This is an excerpt from the configure output:
      
      > configure: Configured to build neon 0.25.5:
      > 
      >   Install prefix:  /usr/local
      >   Compiler:        gcc
      >   XML Parser:      expat
      >   SSL library:     SSL support is not enabled
      >   zlib support:    zlib support enabled, using -lz
      >   Build libraries: Shared=no, Static=yes
      > 
      > neon configured properly
      
      If I manually go in and update builddir/neon/src/Makefile to add -fPIC
      to CFLAGS, it will compile cleanly, but I'm not sure that is the
      correct solution.  My libtool knowledge is pretty limited.
      
      Some more information:
      
      $ uname
      Linux knatte 2.6.16.20 #3 SMP Fri Jun 16 15:19:04 CEST 2006 x86_64 x86_64 x86_64
      GNU/Linux
      
      $ gcc --version
      gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux)
      Copyright (C) 2003 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      

      Original issue reported by dkagedal

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: