Hi,
I have a small test c program which tries to dlopen a shared library(libjvm.sl).
But i get error as "Can't dlopen() a library containing Thread Local Storage"
My program is as below
Quote:
#include <stdio.h>
#include <errno.h>
#include <dlfcn.h>
void main(void)
{
void *handle;
handle = dlopen("/opt/weblogic810sp3/jdk142_03/jre/lib/PA_RISC/server/libjvm.sl", RTLD_LAZY);
if( handle == NULL )
{
printf("errno[%d], errmsg[%s]\n", errno, dlerror());
return;
}
else
{
printf("\nJVM loaded successfully");
}
dlclose(handle);
}
when i run the program i get error
Quote:
$ testjvm
errno[0], errmsg[Can't dlopen() a library containing Thread Local Storage: /opt/weblogic810sp3/jdk142_03/jre/lib/PA_RISC/server/libjvm.sl]
$
any pointers why the error??
I am using hp-ux . The same program run well on solaris.
thanks in advance.
-Ashish