You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Ravish Nayak S. R." <ra...@yahoo.co.in> on 2012/03/03 18:48:54 UTC

undefined reference error with subversion 1.7.3

> In which directories did you look?  Those symbols are present in 1.4 so
> you are looking for Subversion 1.3 or earlier.

I am trying with subversion version 1.7.3


> Are you building from a tarball?  Are you using the libtool that came
> with the tarball or did you run autogen.sh?  Do you have any special
> settings such as LD_LIBRARY_PATH or ld.so.conf?  What configure command
> did you use?  What is the exact link command that is failing?

Yes I am building from a source tarball.

Yes it is using libtool that came with tarball,

ex:-
source_path/apache/subversion/1.7.3/rhe4-x86_64/libtool --tag=CC --mode=compile....................

 and no autogen.sh script I am using..

Explicitly no LD_LIBRARY_PATH or ld.so.conf setting from my side.

configure options are:-

 PERL=customized_path/bin/perl \
  PYTHON=customized_path/bin/python \
  GCC=customized_path/bin/gcc \
  INSTALL=customized_path_coreutil/bin/install \
  --without-apxs \
  --with-apr=customized_path \
  --with-apr-util=customized_path \
  --with-serf=customized_path \
  --with-neon=customized_path \
  --with-ssl \
  --with-swig=customized_path \
  --with-sqlite=customized_path

--enable-javahl \
      --enable-disallowing-of-undefined-references=yes \
      --with-jdk=customized_path \
      --with-jikes=customized_path



After executing below command I got undefined reference error....


bin/gcc -L/source_path/apache/subversion/1.7.3/rhe4-x86_64/subversion/libsvn_client/.libs -L/source_path/apache/subversion/1.7.3/rhe4-x86_64/subversion/libsvn_subr/.libs -L/destination_path/apache/subversion/1.7.3/rhe4-x86_64/lib -L/customized_path/apache/apr/1.4.2/rhe4-x86_64/lib -L/customized_path/apache/apr-util-with-sqlite-3.7.2/1.3.9/rhe4-x86_64/lib -L/customized_path/openssl/openssl/1.0.0/rhe4-x86_64/lib -Wl,-rpath,/customized_path/apache/subversion/1.7.3/rhe4-x86_64/lib,-rpath,/customized_path/apache/apr/1.4.2/rhe4-x86_64/lib,-rpath,/customized_path/apache/apr-util-with-sqlite-3.7.2/1.3.9/rhe4-x86_64/lib,-rpath,/customized_path/openssl/openssl/1.0.0/rhe4-x86_64/lib -L/source_path/apache/subversion/1.7.3/rhe4-x86_64/subversion/libsvn_ra/.libs -lapr-1 -lsvn_client-1 -lsvn_subr-1 -lsvn_ra-1 -o svnmucc svnmucc.o

 Error is :-

source_path/apache/subversion/1.7.3/rhe4-x86_64/subversion/libsvn_repos/.libs/libsvn_repos-1.so.0: undefined reference to `svn_txdelta_to_svndiff2'
source_path/apache/subversion/1.7.3/rhe4-x86_64/subversion/libsvn_ra/.libs/libsvn_ra-1.so: undefined reference to `svn_compat_wrap_file_rev_handler'

Where as for rhe5-x86_64 platforms it works fine, no issue..

Regards,
Ravish

Re: undefined reference error with subversion 1.7.3

Posted by Mat Booth <ma...@wandisco.com>.
On 3 March 2012 17:48, Ravish Nayak S. R. <ra...@yahoo.co.in> wrote:
>
> > In which directories did you look?  Those symbols are present in 1.4 so
> > you are looking for Subversion 1.3 or earlier.
>
> I am trying with subversion version 1.7.3
>
>
> > Are you building from a tarball?  Are you using the libtool that came
> > with the tarball or did you run autogen.sh?  Do you have any special
> > settings such as LD_LIBRARY_PATH or ld.so.conf?  What configure command
> > did you use?  What is the exact link command that is failing?
>
> Yes I am building from a source tarball.
>
> Yes it is using libtool that came with tarball,
>
> ex:-
> source_path/apache/subversion/1.7.3/rhe4-x86_64/libtool --tag=CC --mode=compile....................
>
>  and no autogen.sh script I am using..
>
> Explicitly no LD_LIBRARY_PATH or ld.so.conf setting from my side.
>
> configure options are:-
>
>  PERL=customized_path/bin/perl \
>   PYTHON=customized_path/bin/python \
>   GCC=customized_path/bin/gcc \
>   INSTALL=customized_path_coreutil/bin/install \
>   --without-apxs \
>   --with-apr=customized_path \
>   --with-apr-util=customized_path \
>   --with-serf=customized_path \
>   --with-neon=customized_path \
>   --with-ssl \
>   --with-swig=customized_path \
>   --with-sqlite=customized_path
>
> --enable-javahl \
>       --enable-disallowing-of-undefined-references=yes \
>       --with-jdk=customized_path \
>       --with-jikes=customized_path
>
>
>
> After executing below command I got undefined reference error....
>
>
> bin/gcc -L/source_path/apache/subversion/1.7.3/rhe4-x86_64/subversion/libsvn_client/.libs -L/source_path/apache/subversion/1.7.3/rhe4-x86_64/subversion/libsvn_subr/.libs -L/destination_path/apache/subversion/1.7.3/rhe4-x86_64/lib -L/customized_path/apache/apr/1.4.2/rhe4-x86_64/lib -L/customized_path/apache/apr-util-with-sqlite-3.7.2/1.3.9/rhe4-x86_64/lib -L/customized_path/openssl/openssl/1.0.0/rhe4-x86_64/lib -Wl,-rpath,/customized_path/apache/subversion/1.7.3/rhe4-x86_64/lib,-rpath,/customized_path/apache/apr/1.4.2/rhe4-x86_64/lib,-rpath,/customized_path/apache/apr-util-with-sqlite-3.7.2/1.3.9/rhe4-x86_64/lib,-rpath,/customized_path/openssl/openssl/1.0.0/rhe4-x86_64/lib -L/source_path/apache/subversion/1.7.3/rhe4-x86_64/subversion/libsvn_ra/.libs -lapr-1 -lsvn_client-1 -lsvn_subr-1 -lsvn_ra-1 -o svnmucc svnmucc.o
>
>  Error is :-
>
> source_path/apache/subversion/1.7.3/rhe4-x86_64/subversion/libsvn_repos/.libs/libsvn_repos-1.so.0: undefined reference to `svn_txdelta_to_svndiff2'
> source_path/apache/subversion/1.7.3/rhe4-x86_64/subversion/libsvn_ra/.libs/libsvn_ra-1.so: undefined reference to `svn_compat_wrap_file_rev_handler'
>
> Where as for rhe5-x86_64 platforms it works fine, no issue..
>
> Regards,
> Ravish


Do you have any other older Subversion libraries installed that it
could be using to link against?



--
Mat Booth
Software Engineer
WANdisco, Inc.
http://www.wandisco.com

Re: undefined reference error with subversion 1.7.3

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Ravish Nayak S. R. wrote on Sun, Mar 04, 2012 at 01:48:54 +0800:
> After executing below command I got undefined reference error....
> 
> 
> bin/gcc
> -L/source_path/apache/subversion/1.7.3/rhe4-x86_64/subversion/libsvn_client/.libs
> -L/source_path/apache/subversion/1.7.3/rhe4-x86_64/subversion/libsvn_subr/.libs
> -L/destination_path/apache/subversion/1.7.3/rhe4-x86_64/lib
> -L/customized_path/apache/apr/1.4.2/rhe4-x86_64/lib
> -L/customized_path/apache/apr-util-with-sqlite-3.7.2/1.3.9/rhe4-x86_64/lib
> -L/customized_path/openssl/openssl/1.0.0/rhe4-x86_64/lib
> -Wl,-rpath,/customized_path/apache/subversion/1.7.3/rhe4-x86_64/lib,-rpath,/customized_path/apache/apr/1.4.2/rhe4-x86_64/lib,-rpath,/customized_path/apache/apr-util-with-sqlite-3.7.2/1.3.9/rhe4-x86_64/lib,-rpath,/customized_path/openssl/openssl/1.0.0/rhe4-x86_64/lib
> -L/source_path/apache/subversion/1.7.3/rhe4-x86_64/subversion/libsvn_ra/.libs
> -lapr-1 -lsvn_client-1 -lsvn_subr-1 -lsvn_ra-1 -o svnmucc svnmucc.o
> 

Do you need svnmucc?

'make tools' is part of the default build these days.  If you don't need
svnmucc you could run 'make bin apache-mod' instead.

(or possibly go directly to 'make install' and let make figure it out itself?)

>  Error is :-
> 
> source_path/apache/subversion/1.7.3/rhe4-x86_64/subversion/libsvn_repos/.libs/libsvn_repos-1.so.0: undefined reference to `svn_txdelta_to_svndiff2'
> source_path/apache/subversion/1.7.3/rhe4-x86_64/subversion/libsvn_ra/.libs/libsvn_ra-1.so: undefined reference to `svn_compat_wrap_file_rev_handler'
> 
> Where as for rhe5-x86_64 platforms it works fine, no issue..
> 
> Regards,
> Ravish