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

Re: Java undefined symbols

From: Sancho Neves-Graca <sancho_at_neves-graca.name>
Date: 2004-10-05 03:00:02 CEST

Hello Patrick,

I searched for online resources about building Subversion with javahl
bindings on Mac OS X but was surprised not to find the problem I am
encountering elsewhere.

I thought of calling glibtoolize followed by /autogen.sh to see if the
reference to libstdc++ could be corrected:

$ glibtoolize --force

$ ./autogen.sh

$ cp /usr/share/aclocal/libtool.m4 aclocal.m4:

$ ./configure --with-apxs=/opt/apache2/bin/apxs
--with-berkeley-db=/usr/local/BerkeleyDB.4.2 --with-ssl --with-dbm=db42
--enable-javahl --with-jikes=no

$ make

$ mkdir subversion/bindings/java/javahl/classes

$ make javahl

But on make javahl I get many warnings about private external
definitions followed by an error:

...
ld: multiple definitions of symbol ___cxa_dyn_string_substring
/usr/lib/gcc/darwin/3.3/libstdc++.a(dyn-string.o) private external
definition of ___cxa_dyn_string_substring in section (__TEXT,__text)
/usr/lib/gcc/darwin/3.3/libstdc++.a(dyn-string.o) private external
definition of ___cxa_dyn_string_substring in section (__TEXT,__text)
/usr/bin/libtool: internal link edit command failed
make: *** [subversion/bindings/java/javahl/native/libsvnjavahl-1.la]
Error 1

I interpret this as the libstdc++ library having been found but now
there are duplicate library references. Do you have any suggestions?

Regards, Sancho

On Oct 4, 2004, at 7:42 AM, Patrick Mayweg wrote:

> Hi Sancho,
> the second warning is the important one for your problem. Your are
> missing the standard c++ library or at least the linker does not find
> it. Since the javahl binding is written in c++, it needs this library.
> Patrick
>
> Sancho Neves-Graca wrote:
>
>> I have built and installed Subversion /1.1.0 (r11180) /with javahl
>> bindings on Mac OS X Server 10.3.5. When starting svn-up 0.8.0 I get
>> dyld: java undefined symbols errors. If someone has an idea about
>> what is the cause of the error, please help.
>>
>> This is the command I use to start svn-up:
>>
>> java -cp /usr/local/lib/svn-javahl/svn-javahl.jar:svnup-0.8.0.jar
>> org.svnup.gui.Main
>> dyld: java Undefined symbols:
>> __ZNSs20_S_empty_rep_storageE
>> __ZNSs4_Rep11_S_max_sizeE
>> __ZNSs4_Rep11_S_terminalE
>> __ZNSt24__default_alloc_templateILb1ELi0EE12_S_force_newE
>> __ZNSt24__default_alloc_templateILb1ELi0EE12_S_free_listE
>> __ZNSt24__default_alloc_templateILb1ELi0EE22_S_node_allocator_lockE
>> __ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
>> __ZTTSt14basic_ofstreamIcSt11char_traitsIcEE
>> __ZTVN10__cxxabiv117__class_type_infoE
>> __ZTVN10__cxxabiv120__si_class_type_infoE
>> __ZTVSt13basic_filebufIcSt11char_traitsIcEE
>> __ZTVSt14basic_ofstreamIcSt11char_traitsIcEE
>> __ZTVSt15basic_streambufIcSt11char_traitsIcEE
>> __ZTVSt9basic_iosIcSt11char_traitsIcEE
>> ___gxx_personality_v0
>> Trace/BPT trap
>>
>> Subversion was built with the following sequence of commands.
>>
>> $ ./configure --with-apxs=/opt/apache2/bin/apxs
>> --with-berkeley-db=/usr/local/BerkeleyDB.4.2 --with-ssl
>> --with-dbm=db42 --enable-javahl --with-jikes=no
>>
>> $ make
>>
>> $ mkdir subversion/bindings/java/javahl/classes
>>
>> $ make javahl
>>
>> Here two warnings are given:
>>
>> This system can not link to static lib archive
>> /Users/sng/src/subversion-1.1.0/neon/src/libneon.la.
>> *** I have the capability to make that library automatically link in
>> when
>> *** you link to this library. But I can only do this if you have a
>> *** shared version of the library, which you do not appear to have.
>>
>> *** Warning: linker path does not have real file for library -lstdc++.
>> *** I have the capability to make that library automatically link in
>> when
>> *** you link to this library. But I can only do this if you have a
>> *** shared version of the library, which you do not appear to have
>> *** because I did check the linker path looking for a file starting
>> *** with libstdc++ and none of the candidates passed a file format
>> test
>> *** using a file magic. Last file checked:
>> /usr/lib/gcc/darwin/default/libstdc++.a
>> *** The inter-library dependencies that have been dropped here will be
>> *** automatically added whenever a program is linked with this library
>> *** or is declared to -dlopen it.
>>
>> $ sudo make install
>>
>> $ sudo make install-javahl
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@svnup.tigris.org
> For additional commands, e-mail: dev-help@svnup.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 5 06:31:46 2004

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.