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

Re: build for 1.5.6 fails on solaris-10: java-hl

From: thurner rupert <rupert.thurner_at_gmail.com>
Date: Mon, 23 Mar 2009 10:52:06 -0700 (PDT)

hi,

allow me to forward a message from the opencsw maintainers list,
dieter dirkes, on how he solved this:

In /subversion/bindings/javahl/native/Pool.h you find this:
APR_INLINE
apr_pool_t *Pool::pool () const
{
  return m_pool;
}

APR_INLINE
void Pool::clear() const
{
  svn_pool_clear(m_pool);
}

This leads the SUN compiler to include the 2 methods in all files (=>
multiply defined).

Solution
==========
remove the code above from Pool.h and put it into the file
/subversion/bindings/javahl/native/Pool.cpp
and remove the APR_INLINEs about the methods.

Afterwards you can use dmake to compile subversion including javahl
using the Sun Studio compiler.

On 1 mar, 19:02, rupert THURNER <rup..._at_opencsw.org> wrote:
> with the following error:
>
> cd subversion/bindings/javahl/native && /bin/bash /home/rupert/mgar/pkg/subversion/trunk/work/build-isa-sparcv8/subversion-1.­5.6/libtool --tag=CXX --silent --mode=link /opt/studio/SOS11/SUNWspro/bin/CC  -xO3 -xarch=v8 -I/opt/csw/bdb44/include -I/opt/csw/apache2/include -I/opt/csw/include  -xarch=v8 -L/opt/csw/lib -R/opt/csw/lib/\\\$ISALIST -R/opt/csw/lib -L/opt/csw/bdb44/lib -R/opt/csw/bdb44/lib/\\\$ISALIST -R/opt/csw/bdb44/lib -L/opt/csw/lib/svn -R/opt/csw/lib/svn/\\\$ISALIST -R/opt/csw/lib/svn -L/opt/csw/apache2/lib -R/opt/csw/apache2/lib/\\\$ISALIST -R/opt/csw/apache2/lib -lintl -liconv    -L/opt/csw/bdb44/lib -L/opt/csw/lib -L/opt/csw/lib -L/opt/csw/lib   -rpath /opt/csw/lib/svn -o libsvnjavahl-1.la  BlameCallback.lo ChangelistCallback.lo CommitMessage.lo ConflictResolverCallback.lo CopySources.lo DiffSummaryReceiver.lo EnumMapper.lo InfoCallback.lo Inputer.lo JNIByteArray.lo JNICriticalSection.lo JNIMutex.lo JNIStackElement.lo JNIStringHolder.lo JNIThreadData.lo JNIUtil.lo ListCallback.lo LogM
essageCallback.lo MessageReceiver.lo Notify.lo Notify2.lo Outputer.lo Path.lo Pool.lo ProgressListener.lo Prompter.lo ProplistCallback.lo Revision.lo RevisionRange.lo RevpropTable.lo SVNAdmin.lo SVNBase.lo SVNClient.lo StatusCallback.lo StringArray.lo Targets.lo libsvnjavahl.la.lo org_tigris_subversion_javahl_NativeResources.lo org_tigris_subversion_javahl_Path.lo org_tigris_subversion_javahl_SVNAdmin.lo org_tigris_subversion_javahl_SVNClient.lo org_tigris_subversion_javahl_Version.lo ../../../../subversion/libsvn_repos/libsvn_repos-1.la ../../../../subversion/libsvn_client/libsvn_client-1.la ../../../../subversion/libsvn_wc/libsvn_wc-1.la ../../../../subversion/libsvn_ra/libsvn_ra-1.la ../../../../subversion/libsvn_delta/libsvn_delta-1.la ../../../../subversion/libsvn_diff/libsvn_diff-1.la ../../../../subversion/libsvn_subr/libsvn_subr-1.la ../../../../subversion/libsvn_fs/libsvn_fs-1.la -laprutil-1 -lldap -llber -ldb-4.4 -lexpat -liconv -lapr-1 -luuid -lsendfile -lrt -lsocket  -lpthread -ldl -lneon -lsock
et  -lCrun -lCstd
> ld: fatal: symbol `apr_pool_t*Pool::pool()const' is multiply-defined:
>         (file .libs/CopySources.o type=FUNC; file .libs/Inputer.o type=FUNC);
> ld: fatal: symbol `void Pool::clear()const' is multiply-defined:
>         (file .libs/CopySources.o type=FUNC; file .libs/Inputer.o type=FUNC);
> ld: fatal: symbol `apr_pool_t*Pool::pool()const' is multiply-defined:
>         (file .libs/CopySources.o type=FUNC; file .libs/JNIUtil.o type=FUNC);
> ld: fatal: symbol `void Pool::clear()const' is multiply-defined:
>         (file .libs/CopySources.o type=FUNC; file .libs/JNIUtil.o type=FUNC);
> ld: fatal: symbol `apr_pool_t*Pool::pool()const' is multiply-defined:
>         (file .libs/CopySources.o type=FUNC; file .libs/Outputer.o type=FUNC);
> ld: fatal: symbol `void Pool::clear()const' is multiply-defined:
>         (file .libs/CopySources.o type=FUNC; file .libs/Outputer.o type=FUNC);
> ld: fatal: symbol `apr_pool_t*Pool::pool()const' is multiply-defined:
>
> any idea how to fix this?
>
> ------------------------------------------------------http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessag...

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1391182
Received on 2009-03-23 18:57:26 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.