11-19-2007
Hi Guys
Thanks for the suggestions however as usual my problem was in missing the obvious. It appears that the chatr command was doing its jobs perfectly in stripping the library path, run in a script straight after linking as below
chatr +s enable +b disable -l <librarypath1> -l <librarypath2> <installer_exe>
Unfortunately the second library path I had given it didn't exist and so the command failed with a nice verbal error message which I gobbled up in my script using a grep.
Fixed this and the chatr output on my problem exe changes form this...
HP-C8000 37% chatr install
install:
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
shared library list:
static /sources/my_lib.so
...
...to this ...
HP-C8000 45% chatr install
install:
shared executable
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path disabled second Not Defined
shared library list:
dynamic /sources/mylib.so
...
Thanks again for the help
Ed
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do you get an application to use an alternate library?
Dave:confused: (2 Replies)
Discussion started by: nucca
2 Replies
2. Shell Programming and Scripting
Hi all,
This is probably a basic question. I had installed a stand-alone library called szip in my home directory, as I don't have the necessary root permission.
I tried to set an environment for both include and lib files in my .cshrc script as
setenv /home/szip/lib
setenv... (3 Replies)
Discussion started by: alamcheril
3 Replies
3. UNIX for Advanced & Expert Users
Is there something which is an alternative to the variable LD_LIBRARY_PATH?
The behaviour of this variable is that the path specified here will be checked before checking usual paths. But I want to have some folders checked for shared libraries after the usual paths. i.e usual paths have to... (3 Replies)
Discussion started by: bbala
3 Replies
4. Shell Programming and Scripting
Library path variables.
I need to know the library rnvironment variable in linux. Ie, I install zlib directory in the custom path /usr/local/mylib and give --enable-zlib in the ffmpeg install, ffmpeg should check for the zlib libraries in the path /usr/local/mylib. Currently it checks /usr/lib... (5 Replies)
Discussion started by: anilcliff
5 Replies
5. Shell Programming and Scripting
I don't know how to put this. However here is the problem.
While executing command remotely on a Unix machine i get an error
/usr/lib/hpux32/dld.so: Unable to find library 'libxerces-c.sl.21'.
However when i execute the command on the remote machine locally. it works fine.
Also i have... (2 Replies)
Discussion started by: suraj.sheikh
2 Replies
6. UNIX for Advanced & Expert Users
Hello,
Any inputs about this one?
/usr/lib/dld.sl: Can't find path for shared library: libintl.sl
/usr/lib/dld.sl: No such file or directory
: Core file for 32-bit PA-RISC application
: /tmp/usr/local/bin/git saved to /etc/core.git.
ABORT instruction (core dumped)
bash-4.0# echo... (3 Replies)
Discussion started by: SystemAddict
3 Replies
7. Programming
Hello,
How to set up the path for downloaded C/C++ libraries (or, header files) so that they can be included like system headers (stdio.h or iostream)? The libraries/headers are from a package containing different folders each has different sets of headers and put in... (1 Reply)
Discussion started by: yifangt
1 Replies
8. Programming
I was compiling a downloaded open source pkg. Following the install instruction, I did
$ mkdir build; cd build; cmake ../; make
but got error message:make: *** No rule to make target 'usr/lib64/lib64/libboost_graph-mt.so.5'. needed by ../bin.gam-create. stop
make: *** Error 2
make: *** Error... (1 Reply)
Discussion started by: yifangt
1 Replies
9. Programming
Hello,
I am always confused about adding library path for ./configure when compiling software under Linux Debian based OS. For example the README of the software tells
--with-boost=PATH specify directory for the boost header files
--with-mpi=PATH specify prefix directory for... (4 Replies)
Discussion started by: yifangt
4 Replies
10. AIX
Can somebody help me too identify full path to socket library on AIX? Cannot find anything
Thanks
for contribution (2 Replies)
Discussion started by: digioleg54
2 Replies
ldd_pa(1) General Commands Manual ldd_pa(1)
NAME
ldd_pa: ldd - list dynamic dependencies of executable files or shared libraries on PA-RISC systems
SYNOPSIS
filename...
Remarks
This manpage describes on PA-RISC systems. For on Integrity systems, see ldd_ia(1).
DESCRIPTION
is a command that can list the dynamic dependencies of incomplete executable files or shared libraries.
lists verbose information about dynamic dependencies and symbol references. If the object file is an executable file, lists all shared
libraries that would be loaded as a result of executing the file. If it is a shared library, lists all shared libraries that would be
loaded as a result of loading the library.
uses the same algorithm as the dynamic loader and to locate the shared libraries. See and sections in dld.sl(5) for more information.
Options
recognizes the following options:
PA-RISC 32-bit only.
Used in conjunction with and/or to force to bind all dependent libraries and report unsats. By default the smartbind mechanism
in only binds libraries whose symbols are explicitly referenced.
Check reference to data symbols.
Check reference to data and code symbols.
Display the search path used to locate the shared libraries.
Display all dependency relationships.
EXTERNAL INFLUENCES
Environment Variables
uses the following environment variables to locate shared libraries.
PA-RISC 64-bit mode:
A colon-separated list of path names which defines the search path for shared libraries at runtime. See in dld.sl(5) for more
information.
A colon-separated or space-separated list of libraries which the dynamic
loader implicitly loads first at runtime. See in dld.sl(5) for more information.
A colon-separated list of path names which defines the search path for
shared libraries at runtime. See and in dld.sl(5) for more information.
The following internationalization variables affect the execution of
Determines the locale category for native language, local customs and
coded character set in the absence of and other environment variables. If is not specified or is set to the empty string, a default
of (see lang(5)) is used instead of
Determines the values for all locale categories and has precedence over
and other environment variables.
Determines the locale that should be used to affect the format
and contents of diagnostic messages written to standard error.
Determines the locale category for numeric formatting.
Determines the locale category for character handling functions.
Determines the location of message catalogs for the processing
of
If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to See envi-
ron(5).
DIAGNOSTICS
prints the record of shared library path names to stdout. The optional list of symbol resolution problems are printed to stderr.
returns zero when the operation is successful. A non-zero return code indicates that an error occurred.
EXAMPLES
By default prints a simple dynamic path information. This consists of the dependencies recorded in the executable (or the shared library)
followed by the physical location where these libraries are found.
The option causes to print dependency relationship along with the dynamic path information.
The option causes to analyze all symbol references and print information about unsatisfied code and data symbols.
The option causes to print the dynamic search path lists used to load the libraries in the order that the path lists are referenced:
WARNINGS
does not list shared libraries explicitly loaded using dlopen(3C) or shl_load(3X).
FILES
output file
32-bit PA-RISC dynamic loader
64-bit PA-RISC dynamic loader
32-bit dummy executable loaded to check the dependencies of shared libraries.
64-bit dummy executable loaded to check the dependencies of shared libraries.
message catalog
SEE ALSO
System Tools
ld(1) invoke the link editor
Miscellaneous
a.out(4) assembler, compiler, and linker output
dld.sl(5) PA-RISC dynamic loader
Texts and Tutorials