[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

3rd library of make install fails for subversion 1.4.0 on Cygwin

From: Naipaul Ojar <OJAR_at_uk.ibm.com>
Date: 2006-09-13 15:58:55 CEST

Dear All,

The following libraries were made correctly:-
/usr/local/lib/libsvn_subr-1.la
/usr/local/lib/libsvn_delta-1.dll.a

The third library failed:-
.libs/libsvn_fs_fs-1.dll.a
    - multiple definitions within library: libsvn_delta-1.dll.a

Any ideas on the solution:-

Partial Error ouput of the 2nd & 3rd library build:-

cd subversion/libsvn_delta ; /bin/sh /usr/src/subversion-1.4.0/libtool --mode=install /usr/bin/install -c libsvn_delta-1.la /usr/l
ocal/lib/libsvn_delta-1.la
libtool: install: warning: relinking `libsvn_delta-1.la'
(cd /usr/src/subversion-1.4.0/subversion/libsvn_delta; /bin/sh /usr/src/subversion-1.4.0/libtool --tag=CC --silent --mode=relink
gcc -g -O2 -g -O2 -L/usr/local/BerkeleyDB.4.4/lib -rpath /usr/local/lib -o libsvn_delta-1.la -no-undefined cancel.lo compose_delta
.lo debug_editor.lo default_editor.lo path_driver.lo svndiff.lo text_delta.lo vdelta.lo version.lo xdelta.lo ../../subversion/libs
vn_subr/libsvn_subr-1.la /usr/local/apr-util-httpd//lib/libaprutil-1.la -ldb -lpq -lexpat -liconv /usr/local/apr-httpd//lib/libapr
-1.la -lcrypt -lz )
Creating library file: .libs/libsvn_delta-1.dll.a
/usr/bin/install -c .libs/libsvn_delta-1.dll.aT /usr/local/lib/libsvn_delta-1.dll.a
base_file=`basename ${file}`
 dlpath=`/bin/sh 2>&1 -c '. .libs/'${base_file}'i;echo $dlname'`
 dldir=/usr/local/lib/`dirname $dlpath`
 test -d $dldir || mkdir -p $dldir
 /usr/bin/install -c .libs/cygsvn_delta-1-0.dll $dldir/cygsvn_delta-1-0.dll
 chmod a+x $dldir/cygsvn_delta-1-0.dll
/usr/bin/install -c .libs/libsvn_delta-1.lai /usr/local/lib/libsvn_delta-1.la
/usr/bin/install -c .libs/libsvn_delta-1.a /usr/local/lib/libsvn_delta-1.a
chmod 644 /usr/local/lib/libsvn_delta-1.a
ranlib /usr/local/lib/libsvn_delta-1.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-LLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
cd subversion/libsvn_fs_fs ; /bin/sh /usr/src/subversion-1.4.0/libtool --mode=install /usr/bin/install -c libsvn_fs_fs-1.la /usr/l
ocal/lib/libsvn_fs_fs-1.la
libtool: install: warning: relinking `libsvn_fs_fs-1.la'
(cd /usr/src/subversion-1.4.0/subversion/libsvn_fs_fs; /bin/sh /usr/src/subversion-1.4.0/libtool --tag=CC --silent --mode=relink
gcc -g -O2 -g -O2 -L/usr/local/BerkeleyDB.4.4/lib -rpath /usr/local/lib -o libsvn_fs_fs-1.la -no-undefined dag.lo err.lo fs.lo fs_
fs.lo id.lo key-gen.lo lock.lo revs-txns.lo tree.lo ../../subversion/libsvn_delta/libsvn_delta-1.la ../../subversion/libsvn_subr/l
ibsvn_subr-1.la /usr/local/apr-util-httpd//lib/libaprutil-1.la -ldb -lpq -lexpat -liconv /usr/local/apr-httpd//lib/libapr-1.la -lc
rypt -lz )
/usr/lib/libapr-1.a(time.o): In function `apr_time_now':
/usr/src/httpd-2.2.2/srclib/apr/time/unix/time.c:75: multiple definition of `_apr_time_now'
/usr/local/lib/libsvn_delta-1.dll.a(d000220.o):(.text+0x0): first defined here
/usr/lib/libapr-1.a(apr_pools.o): In function `apr_palloc':
/usr/src/httpd-2.2.2/srclib/apr/memory/unix/apr_pools.c:595: multiple definition of `_apr_palloc'
/usr/local/lib/libsvn_delta-1.dll.a(d000115.o):(.text+0x0): first defined here
/usr/lib/libapr-1.a(apr_pools.o): In function `apr_psprintf':
/usr/src/httpd-2.2.2/srclib/apr/memory/unix/apr_pools.c:1791: multiple definition of `_apr_psprintf'
/usr/local/lib/libsvn_delta-1.dll.a(d000165.o):(.text+0x0): first defined here
/usr/lib/libapr-1.a(apr_pools.o): In function `apr_pool_clear':
/usr/src/httpd-2.2.2/srclib/apr/memory/unix/apr_pools.c:679: multiple definition of `_apr_pool_clear'
/usr/local/lib/libsvn_delta-1.dll.a(d000130.o):(.text+0x0): first defined here
/usr/lib/libapr-1.a(apr_pools.o): In function `apr_pool_destroy':
/usr/src/httpd-2.2.2/srclib/apr/memory/unix/apr_pools.c:716: multiple definition of `_apr_pool_destroy'
/usr/local/lib/libsvn_delta-1.dll.a(d000134.o):(.text+0x0): first defined here
Creating library file: .libs/libsvn_fs_fs-1.dll.a
collect2: ld returned 1 exit status
libtool: install: error: relink `libsvn_fs_fs-1.la' with the above command before installing it
make: *** [install-fsmod-lib] Error 1

Best Regards
Naipaul Ojar
Received on Wed Sep 13 16:44:36 2006

This is an archived mail posted to the Subversion Users mailing list.