Hello.

Has anyone run into this before? I tried to link to libjava_g.so with
my JNI app, but it seems that there is a missing symbol "fstat".
I am using JDK 1.1.7 v3 on a Red Hat 5.2 box.

When linking to -ljava_g with JDK 1.1.7 I get this error!

couldn't load file 
"/home/mo/project/tcljava/unix/tclblend_debug/libtclblend_g.so": 
/usr/local/blkjdk/lib/i386/native_threads/libjava_g.so: undefined symbol: 
fstat

The symbol fstat is not defined in libjava_g.so

nm --demangle libjava_g.so | grep U | grep fstat
         U fstat

But it is defined in libjava.so

nm --demangle libjava.so | grep U | grep fstat

I came up with a really hackey way to get around this error, I added this
file compiled as a .o to my shared lib.  It worked but it is really ugly!

#include <sys/stat.h>
#include <unistd.h>

extern int fstat(int filedes, struct stat *buf) {
  return fstat(filedes, buf);
}

Is this a known problem? Has it been fixed in a newer release?

Also, the JDK 1.2 release from blackdown does not seem to come
with a -ljava_g shared lib. Any thoughts on that?

thanks
Mo Dejong
Red Hat Inc.


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to