> From: Brian Jones
> <snip>
>
> c++ -g -O2 -pg -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -Wreturn-type -Wcast-align -pedantic -o
> .libs/japhar japhar.o -Wl,--rpath -Wl,/usr/local/japhar/lib
> ../../lib/libjni/src/.libs/libjni.so -ldl -lpthread -lm -Wl,--rpath
> -Wl,/usr/local/japhar/lib ../../lib/libruntime/.libs/libruntime.so -lz
> -ldl -lpthread -lm -Wl,--rpath -Wl,/usr/local/japhar/lib
> ../../arch/.libs/libarch.so -ldl -lpthread -lm -lSM -lICE
> -L/usr/X11/lib -L/usr/X11R6/lib -lXm -lXt -lSM -lICE -lX11
> -Wl,-rpath,/usr/X11R6/lib -lz -Wl,--rpath -Wl,/usr/local/lib
> ../../lib/libffi/src/.libs/libffi.so -ldl -lpthread -lm -ldl -lpthread
> -lm
> ../../arch/.libs/libarch.so: undefined reference to `sysres_mappings'
> ../../arch/.libs/libarch.so: undefined reference to
> `java_util_mappings'
> ../../arch/.libs/libarch.so: undefined reference to
> `java_util_zip_mappings'
> ../../arch/.libs/libarch.so: undefined reference to
> < ... and so on ... >
>
> Configured like this, fresh CVS, with patches applied from Aaron Renn
> (though I don't think that matters)
>
> ./configure --enable-static=no --enable-profiling=yes
> --enable-debugging=yes --enable-logging=yes --enable-libffi
> --with-sun-jdk=/usr/local/jdk1.1.5
>
> Things compile okay without the "--enable-profiling --enable-debugging
> --enable-logging".
>
Oh yeah, I noticed that problem before ... it's --enable-profiling,
specifically, that causes the errors. The other two switches work fine.
I'm not sure why and never got around to looking into it, and forgot to
submit a report (oops).
If my dim memory serves me, it might have been the combination
of --enable-libffi and --enable-profiling that caused the error, but I'm not
sure about that.
--John