Can't dlopen() a library containing Thread Local Storage


 
Thread Tools Search this Thread
Top Forums Programming Can't dlopen() a library containing Thread Local Storage
# 1  
Old 03-28-2006
Can't dlopen() a library containing Thread Local Storage

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
# 2  
Old 03-28-2006
It looks like you're trying to run the java virtual machine.

See: http://journals.ecs.soton.ac.uk/java...ting/invo.html
for some information.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Migrate /export/home from storage path to local

I am newbies in solaris, hope u guys can help me, I need to transfer /export/home directory that currently mount at storage and migrate into local disk. may i know the best way to do it? Thanks (6 Replies)
Discussion started by: Deeo
6 Replies

2. Solaris

How to differ local disks from attached from storage ones?

Hello. I have a solaris box with several local disks and several come from SYMMETRIX storage. Is there any way to tell format (or other util) to show only local disks? (6 Replies)
Discussion started by: urello
6 Replies

3. Programming

Thread function local variables

As I know threads share the memory. But, what about the local variables in the thread function? if i call multiple threads would they allocate seperate local variables for themselves? like thread_func() { int i, j; string... } Are the above local variables defined for each of... (1 Reply)
Discussion started by: saman_glorious
1 Replies

4. Programming

dlopen failing on library with statically linked dependencies

I am attempting to port a program from OS X to Linux. It's C++ & Qt Creator and I did the original Windows to OS X port, so I tried to make it as POSIX-compliant as possible; the OS X port works well, and the Linux port builds and starts (it's on Ubuntu 9.10) but has some issues running. The... (2 Replies)
Discussion started by: Hodapp87
2 Replies

5. Programming

Dynamic library load with dlopen

Hi, I created two library libsum.so and libproduct.so. In the libproduct.so is defined function "product" that use function "sum" defined in libsum.so. So libproduct depends on libsum. In main function I called product function by a dlopen request. Unfortunaly, when I execute program I have an... (5 Replies)
Discussion started by: shade82
5 Replies

6. Shell Programming and Scripting

crontab; copy most recent *.mpg file from local machine to smb storage device

Hello, I've been searching your forum for an answer to the following question and whilst I've seen several which may help I'm afraid my inexperience with UNIX systems has got the better of me and I'm incapable of piecing your considerable expertise together. Problem: I have a linux box which... (5 Replies)
Discussion started by: julezsht
5 Replies

7. Programming

Thread local storage on ancient AIX

What I'm given: Pure C code in one file that has to compile on Windows, SunOS, and AIX. My task is making minimal changes to the code to make it thread safe. I'm not in control of threads - they are created elsewhere. The code has a function invoked externally. The first call to this function is... (1 Reply)
Discussion started by: vkleban
1 Replies

8. Programming

About Native POSIX Thread Library (NPTL)

Is there anybody has documents about NPTL I wanna study about it , but can't find the documents.... anyone help appreciate :) :) :) (1 Reply)
Discussion started by: alan.zhao
1 Replies

9. Programming

Multi threading using posix thread library

hi all, can anyone tell me some good site for the mutithreading tutorials, its application, and some code examples. -sushil (2 Replies)
Discussion started by: shushilmore
2 Replies
Login or Register to Ask a Question