On Tue, 21 Sep 1999, Pierre Heroux wrote:
> I am using jdk1.2 Classic VM (build Linux_JDK_1.2_pre-release-v2
> glibc2.1, native threads, nojit)on RedHat 5.2.
>
> I compile a C++ code which invoke JavaVM.
> g++ simple.cpp -I/usr/local/jdk1.2/include -ljava
>
> I get the following message
>
> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
> reference to `sem_destroy@@GLIBC_2.0'
> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
> reference to `sem_post@@GLIBC_2.0'
> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
> reference to `sem_wait@@GLIBC_2.0'
> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
> reference to `sem_init@@GLIBC_2.0'
>
> It looks like if I forgot a library but which one ?
> Is it an installation problem ?
I think, you'll need a glibc 2.0 version of the JDK. I suppose RH5.2 is
based on glibc 2.0 not glibc 2.1.
Harri
Harri Sunila
Research assistant
Helsinki University of Technology
Telecommunications Software and Multimedia Laboratory
URL: http://www.tcm.hut.fi/~harri
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]