- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: copying executable with shared lib
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 12:47 AM
10-29-2002 12:47 AM
copying executable with shared lib
to /tmp and umount /usr.
chatr lvdisplay says :
lvdisplay:
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
shared library list:
dynamic /usr/lib/libc.2
shared library binding:
deferred
global hash table disabled
plabel caching disabled
global hash array size:1103
global hash array nbuckets:3
shared vtable support 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
data page size: D (default)
instruction page size: D (default)
How can I change so that /tmp/lvdisplay uses library /tmp/libc.2 instead of /usr/lib/libc.2
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 12:53 AM
10-29-2002 12:53 AM
Re: copying executable with shared lib
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 01:00 AM
10-29-2002 01:00 AM
Re: copying executable with shared lib
instead of /usr/sbin
take the files from /sbin.
The /sbin versions uses no shared libs.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 01:00 AM
10-29-2002 01:00 AM
Re: copying executable with shared lib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 01:02 AM
10-29-2002 01:02 AM
Re: copying executable with shared lib
You have to take the system down to the single user mode.
Lot of processes use /usr when the system is in the multiuser mode.
I used to re-build my application executables to give a different path of the shared library.
Not sure about OS commands.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 01:05 AM
10-29-2002 01:05 AM
Re: copying executable with shared lib
Use ld
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 01:05 AM
10-29-2002 01:05 AM
Re: copying executable with shared lib
What is the point ?
I would have suggested to boot in lvm maintenance mode.
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 01:10 AM
10-29-2002 01:10 AM
Re: copying executable with shared lib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 01:15 AM
10-29-2002 01:15 AM
Re: copying executable with shared lib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 01:15 AM
10-29-2002 01:15 AM
Re: copying executable with shared lib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 03:44 AM
10-29-2002 03:44 AM
Re: copying executable with shared lib
#chatr +s enable lvdisplay
#export SHLIB_PATH=${SHLIB_PATH}:/tmp

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 03:46 AM
10-29-2002 03:46 AM
Re: copying executable with shared lib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 11:16 AM
10-30-2002 11:16 AM
Re: copying executable with shared lib
% cp /usr/sbin/lvdisplay .
% chmod +w lvdisplay
% chatr -s +s enable lvdisplay
% cp /usr/lib/libc.2 .
% SHLIB_PATH=. tusc -s open lvdisplay
tusc: lvdisplay: No such file or directory
% SHLIB_PATH=. tusc -s open ./lvdisplay
open("/usr/lib/dld.sl", O_RDONLY, 05364) ................. = 3
open("/opt/graphics/OpenGL/lib/libogltls.sl", O_RDONLY, 0) = 3
open("./libc.2", O_RDONLY, 02) ........................... = 3
open("/usr/lib/libdld.2", O_RDONLY, 046437) .............. = 3
open("./libc.2", O_RDONLY, 03) ........................... = 3
open("/usr/lib/nls/loc/locales.2/en_US.iso88591", O_RDONLY, 0) = 3
open("/usr/lib/nls/en/US/iso88591/locale.inf", O_RDONLY, 0) ERR#2 ENOENT
open("/usr/lib/nls/american/iso88591/locale.inf", O_RDONLY, 056) ERR#2 ENOENT
open("/usr/lib/nls/msg/en_US.iso88591/lvm.cat", O_RDONLY, 0177777) ERR#2 ENOENT
open("/usr/lib/nls/en/US/iso88591/lvm.cat", O_RDONLY, 0177777) ERR#2 ENOENT
Usage: lvdisplay
[-v]
[-k]
LogicalVolumePath...
More arguments required.
%
You may need to use "chatr -l library" if some of the libraries have static instead of dynamic paths. You will also have issues if some shared libraries depend on other shared libraries using paths that you don't like.