You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by vadim <va...@swissonline.ch> on 2005/04/07 12:33:42 UTC

problem with linking libsvnjavahl-1.so

Hallo everybody,

I think there is a problem somewhere in the way libsvnjavahl get's
relinked when making install-javahl. Namely, when relinking, libtool for
whatsoever reasons uses gcc instead of g++. This leads to exception when
trying to load that shared object lib in a java program, which sounds
like "InsufficientLink" or whatsoever,it also complains about "flavours"
of something .... 

It happens because you (re)link C++ program with gcc instead of g++. g++
would link libstdc++ to libsvnjavahl, gcc does not.

The workaround would be setting

LT_CXX_LIBADD = -lstdc++

in Makefile. 

I think I have reported once this problem when 1.1.2 has been released.
Now I have tried 1.1.4, the problem is however still there. 

It would be also nice for configure to find g++. Just by
running ./configure --bla-bla it does not defined value of CXX and
building of javahl fails immidiately, because you do not supply required
argument $(CXX) to libtool.

All of this has been observed on debian sarge.

Best regards, vadim tarassov.
-- 
vadim <va...@swissonline.ch>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: problem with linking libsvnjavahl-1.so

Posted by Patrick Mayweg <ma...@qint.de>.
Hi Max,
it was a missing --enable-javahl flag as he told me in a personal mail. 
Consider it closed.
Patrick

Max Bowsher wrote:

> vadim wrote:
>
>> Hallo everybody,
>>
>> I think there is a problem somewhere in the way libsvnjavahl get's
>> relinked when making install-javahl. Namely, when relinking, libtool for
>> whatsoever reasons uses gcc instead of g++. This leads to exception when
>> trying to load that shared object lib in a java program, which sounds
>> like "InsufficientLink" or whatsoever,it also complains about "flavours"
>> of something ....
>>
>> It happens because you (re)link C++ program with gcc instead of g++. g++
>> would link libstdc++ to libsvnjavahl, gcc does not.
>>
>> The workaround would be setting
>>
>> LT_CXX_LIBADD = -lstdc++
>>
>> in Makefile.
>>
>> I think I have reported once this problem when 1.1.2 has been released.
>> Now I have tried 1.1.4, the problem is however still there.
>>
>> It would be also nice for configure to find g++. Just by
>> running ./configure --bla-bla it does not defined value of CXX and
>> building of javahl fails immidiately, because you do not supply required
>> argument $(CXX) to libtool.
>>
>> All of this has been observed on debian sarge.
>
>
> Could someone with a working JavaHL buildsystem look into this? Or 
> should I IssueZilla it for now?
>
> Max.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: problem with linking libsvnjavahl-1.so

Posted by Max Bowsher <ma...@ukf.net>.
vadim wrote:
> Hallo everybody,
>
> I think there is a problem somewhere in the way libsvnjavahl get's
> relinked when making install-javahl. Namely, when relinking, libtool for
> whatsoever reasons uses gcc instead of g++. This leads to exception when
> trying to load that shared object lib in a java program, which sounds
> like "InsufficientLink" or whatsoever,it also complains about "flavours"
> of something ....
>
> It happens because you (re)link C++ program with gcc instead of g++. g++
> would link libstdc++ to libsvnjavahl, gcc does not.
>
> The workaround would be setting
>
> LT_CXX_LIBADD = -lstdc++
>
> in Makefile.
>
> I think I have reported once this problem when 1.1.2 has been released.
> Now I have tried 1.1.4, the problem is however still there.
>
> It would be also nice for configure to find g++. Just by
> running ./configure --bla-bla it does not defined value of CXX and
> building of javahl fails immidiately, because you do not supply required
> argument $(CXX) to libtool.
>
> All of this has been observed on debian sarge.

Could someone with a working JavaHL buildsystem look into this? Or should I 
IssueZilla it for now?

Max.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org