This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bad patchwork: libgcj.so: undefined reference to `gcj_describe_type_fn'


>>>>> "Martin" == martin  <martin@egholm-nielsen.dk> writes:

Martin> $ blah-blah-nm-blah-grep
Martin>          U gcj_describe_type_fn

Is this in boehm-gc?  It is somewhat odd to have boehm-gc depend on
symbols provided by libgcj -- that is backward.

Martin> and libjava/boehm.o does indeed contain the function (or what):
Martin> libjava/ $ powerpc-405-linux-gnu-nm boehm.o | grep gcj_de
Martin> 00000960 T _Z20gcj_describe_type_fnPvPc

This is the mangled form, whereas the above is not.

This is presumably because you are referencing the symbol from C
code, but the function definition is in C++.  You need an 'extern "C"'
to fix this.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]