>>>>> Pierre Heroux writes:
Pierre> I am using jdk1.2 Classic VM (build Linux_JDK_1.2_pre-release-v2
Pierre> glibc2.1, native threads, nojit)on RedHat 5.2.
Pierre> I compile a C++ code which invoke JavaVM.
Pierre> g++ simple.cpp -I/usr/local/jdk1.2/include -ljava
Pierre> I get the following message
Pierre> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
Pierre> reference to `sem_destroy@@GLIBC_2.0'
Pierre> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
Pierre> reference to `sem_post@@GLIBC_2.0'
Pierre> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
Pierre> reference to `sem_wait@@GLIBC_2.0'
Pierre> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
Pierre> reference to `sem_init@@GLIBC_2.0'
Pierre> It looks like if I forgot a library but which one ?
Pierre> Is it an installation problem ?
Do have glibc-2.1 installed? If not, you have the wrong JDK version.
If you have glibc-2.1.2 installed, you've hit one of the bad sides of
symbol versioning: With glibc-2.1.2 it's impossible to link against
the glibc-2.1 JDK :-((
Juergen
--
Juergen Kreileder, Blackdown Java-Linux Porting Team
http://www.blackdown.org/java-linux.html
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]