[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-devtools
Subject:    RE: HPUX-DEVTOOLS: libogltls message
From:       "BENNETT,ANDY (HP-Unitedkingdom,ex1)" <andy_bennett () hp ! com>
Date:       2003-02-21 8:58:09
[Download RAW message or body]

Checking symbolic links may be relevant; there is no denying that the
program is trying to load libogltls.2 at the point it fails. The point about
checking the symbolic links is that for it to hang together dld.sl must be
trying to load exactly the same library file for it to ignore it the second
time and not produce the error. If, for some reason,
/opt/graphics/OpenGL/lib/pa20_64/libogltls.sl is not a symbolic or hard link
it will be a different file and hence dld.sl will try to load it again when
thread local storage is no longer allowed. The failure instance will be due
to a sub dependency from something like libGL.sl:

$ chatr libGL.sl
libGL.sl: 
         shared library 
         shared library dynamic path search:
             SHLIB_PATH     disabled  second 
             embedded path  enabled   first
/opt/graphics/OpenGL/lib:/usr/lib/X11R6
         internal name:
             libGL.2
         shared library list:
             static    /opt/graphics/OpenGL/lib/libogltls.2
             static    /usr/lib/X11R6/libXhp11.3

...

> -----Original Message-----
> From: Karl Schultz [mailto:kschultz@rsinc.com]
> Sent: 20 February 2003 21:58
> To: 'Mike Stroyan'
> Cc: 'hpux-devtools@cxx.cup.hp.com'
> Subject: RE: HPUX-DEVTOOLS: libogltls message
> 
> 
> > -----Original Message-----
> > From: Mike Stroyan [mailto:stroyan@hpstryn.fc.hp.com]
> > Sent: Thursday, February 20, 2003 2:00 PM
> > To: Karl Schultz
> > Cc: 'hpux-devtools@cxx.cup.hp.com'
> > Subject: Re: HPUX-DEVTOOLS: libogltls message
> > 
> > 
> > On Thu, Feb 20, 2003 at 11:20:47AM -0700, Karl Schultz wrote:
> > > My customer is seeing the error message:
> > > 
> > > /usr/lib/pa20_64/dld.sl: Cannot dlopen load module
> > > '/opt/graphics/OpenGL/lib/pa20_64/libogltls.2' because it 
> > contains thread
> > > specific data. 
> > > 
> > > on HPUX 11.  I run the same application on my machine 
> > without seeing the
> > > message.  Both machines are HPUX 11 but may have different patches
> > > installed.
> > > 
> > > My application uses shl_load to load a shared lib that 
> > makes OpenGL calls.
> > > The shared lib dynamically links the OpenGL libs (libGLU 
> > and libGL) and does
> > > NOT explicitly link libogltls.  My understanding is that 
> > this is OK and
> > > correct since libdld has been modified to automatically 
> > link in libogltls to
> > > get the GL thread local strorage in case a program uses OpenGL.
> > 
> > % strings -a /usr/lib/pa20_64/dld.sl | grep ogltls
> > /opt/graphics/OpenGL/lib/pa20_64/libogltls.sl
> > % ls -l /opt/graphics/OpenGL/lib/pa20_64/libogltls.sl
> > lrwxr-xr-x   1 root       sys             44 Apr 10  2002 
> > /opt/graphics/OpenGL/lib/pa20_64/libogltls.sl -> 
> > /opt/graphics/OpenGL/lib/pa20_64/libogltls.2
> > 
> >   So the dld.sl is looking for libogltls.sl instead of libogltls.2.
> > The OpenGL runtime should have libogltls.sl as a symbolic link to 
> > libogltls.2.  Perhaps it is missing.
> 
> This is worth checking out, but I don't think that is the problem.
> 
> The dld.sl refers to the lib with the string "libogltls.sl" 
> as you have
> shown above.  The error message I quoted above calls out 
> "libogltls.2", so I
> think that the symlink is present and working.  The error 
> message also says
> that it cannot load libogltls.2 because it has 
> thread-specific data, and
> that tells me that it not only found the file, but read 
> enough of it to
> discover the thread-specific data and then throw the warning message.
>  _________________________________________________________________
>  To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
>     with the message UNSUBSCRIBE hpux-devtools
>  _________________________________________________________________
> 
 _________________________________________________________________
 To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
    with the message UNSUBSCRIBE hpux-devtools
 _________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic