Problem in Shared library file .sl on 64bit HP-UX 11.11


 
Thread Tools Search this Thread
Operating Systems HP-UX Problem in Shared library file .sl on 64bit HP-UX 11.11
# 1  
Old 03-09-2011
Problem in Shared library file .sl on 64bit HP-UX 11.11

We are facing issue with shared library file, we are getting difference in content for same shared file for chatr command Smilie , below are the detail about *.sl file, even we are also getting difference in size of both file. can you please tell me what will be the issue for same. is my new shared library generated properly for 64 bit HP-UX 11.11 machine?

To generate this shared library we have included -fPIC in CC_Flag with gcc.

We have also set all the env variable properly as per our requirement. We need a solution on same.Smilie
------------------------------------------------------------------------------
old library file , generated previously on HP-UX 11.11 system
------------------------------------------------------------------------------
Code:
.# chatr libcgfm_file_management.sl 
libcgfm_file_management.sl:
         64-bit ELF shared library
         shared library dynamic path search:
             LD_LIBRARY_PATH    enabled  first
             SHLIB_PATH         enabled  second
             embedded path      enabled  third  /usr/lib:/usr/lib/pa20_64:/opt/langtools/lib:../../lib:../../ref/lib
         shared library mapped private disabled
         shared vtable support disabled
         explicit unloading enabled
         linkage table protection disabled
         segments:
             index type     address      flags size
                 4 text 4000000000000000 z---c-    D (default)
                 5 data 8000000100000000 ---m--    D (default)
         static branch prediction disabled
         kernel assisted branch prediction enabled
         lazy swap allocation for dynamic segments disabled
         nulptr dereferences trap disabled

------------------------------------------------------------------------------
Newlibrary file , generated Now on HP-UX 11.11 system
------------------------------------------------------------------------------
Code:
#chatr libcgfm_file_management.sl 
libcgfm_file_management.sl:
         shared library
         shared library dynamic path search:
             SHLIB_PATH     disabled  second
             embedded path  disabled  first  Not Defined
         shared vtable support disabled
         explicit unloading enabled
         runtime checks disabled
         static branch prediction disabled
         executable from stack: D (default)
         kernel assisted branch prediction enabled
         lazy swap allocation disabled
         text segment locking disabled
         data segment locking disabled
         third quadrant private data space disabled
         fourth quadrant private data space disabled
         third quadrant global data space disabled
         data page size: D (default)
         instruction page size: D (default)
         nulptr references disabled
         shared library private mapping disabled

------------------------------------------------------------------------
please let me know, if you all need more details on same.

Last edited by pludi; 03-09-2011 at 05:46 AM..
# 2  
Old 03-23-2011
The old library seems to be generated for a 64 bit system but not the new one...did you supply the neccessary flags to gcc for generating a 64 bit shared library. There could be other issues too but 64 bitness seems most likely from the posted output.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Can't open shared library problem

I am getting following error when I am trying access PMCMD utility /usr/lib/dld.sl: Can't open shared library: /home/build3p/PMReleases/Zeus/HP-UX/xml/xerces2_4_0-icu2_6_1_811/lib/libxerces-c.sl.24 /usr/lib/dld.sl: No such file or directory Please help me with this (0 Replies)
Discussion started by: imran_affu
0 Replies

2. AIX

convert 32 bit shared library to 64bit

Hi I have .so & .o files which got compiled in 32bit environment; Is there any way to translate the above files to 64bit ; We are using AIX version 6 Thanks (1 Reply)
Discussion started by: mKarri
1 Replies

3. UNIX for Dummies Questions & Answers

Problem with shared dynamic library files

I am having a major problem. Most of the commands that i am running on my centos 5 system is giving the error of type: <dynamic shared library file>:open failed: No such file or directory For example: libgcc_s.so.1: open failed: No such file or directory How can i solve this? (6 Replies)
Discussion started by: proactiveaditya
6 Replies

4. Shell Programming and Scripting

How to change a Makefile from building static library to shared library?

Hi: I have a library that it only offers Makefile for building static library. It built libxxx.a file. How do I in any way build a shared library? (either changin the Makefile or direct script or command to build shared library) Thanks. (1 Reply)
Discussion started by: cpthk
1 Replies

5. Programming

Shared library versioning problem at runtime

My executable was linked under RedHat using the LessTif GUI shared library. When I try to run it under UBUNTU, I get an error message that the LessTif library cannot be found. The LessTif library is there, but it is a newer VERSION. My executable is looking for the older version it was linked with.... (1 Reply)
Discussion started by: imagtek
1 Replies

6. UNIX for Dummies Questions & Answers

What programs access shared library file

I was curious how to tell which programs are accessing a file (libobjc.A.dylib) in /usr/lib This file seems to be the culprit in a bunch of Safari crashes, and I just wanted to know if and what other programs use it. Also, I was curious what a good way to find out what files are being written... (4 Replies)
Discussion started by: glev2005
4 Replies

7. Linux

how to backtrace a shared library file (.so)

I have a shared library file (.so) and I need to know some information 1. By which GCC version was this .so built? 2. Was this .so built in 32 bits mode or 64 bits mode Any command / tools to backtrace such kind of information? Thanks in advance! (2 Replies)
Discussion started by: princelinux
2 Replies

8. AIX

Shared Object library problem

Hi, When using shared objects on AIX 4.3 i am getting runtime problems. I have a small sample program which links to a shared object libray, oracle and system related libraries. At runtime it fails (gives segmentation fault and coredump ) in one proc file when executing login statement. But... (0 Replies)
Discussion started by: suman_jakkula
0 Replies

9. HP-UX

Shared Library Problem

I have this error when I try to do check on the oracle database... Can you help me figure out whats the problem? Thanks for all the help! /usr/lib/pa20_64/dld.sl: Unable to find library 'libjox8.sl'. /usr/lib/pa20_64/dld.sl: Unable to find library 'libjox8.sl'. ... (1 Reply)
Discussion started by: vinz
1 Replies

10. AIX

How to debug a shared library(.so file) on AIX?

How to debug a shared library(.so file) on AIX? (1 Reply)
Discussion started by: AlbertGao
1 Replies
Login or Register to Ask a Question