Library file error while running command


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Library file error while running command
# 8  
Old 11-27-2013
Type crle at the command prompt. I'm curious the output.
I'd try running the command with the list of paths in LD_LIBRARY_PATH first.. something like:

Code:
 LD_LIBRARY_PATH=/usr/openwin/lib:/lib:/usr/lib mwcontrol

Before bothering to change it permanently (which you'll want to read man crle as to how)
# 9  
Old 11-29-2013
Please run the following diagnostic commands:
Code:
uname -sr
pkginfo -l SUNWxi18n
nm /usr/openwin/lib/locale/common/xlibi18n.so.2 | grep XlcAddUtf8
showrev -p | grep -w SUNWxi18n

# 10  
Old 11-29-2013
Code:
/# uname -sr
SunOS 5.10
/# pkginfo -l SUNWxi18n
   PKGINST:  SUNWxi18n
      NAME:  X Window System Internationalization Common Package
  CATEGORY:  system
      ARCH:  sparc
   VERSION:  4.2,REV=2.0.73
   BASEDIR:  /usr
    VENDOR:  Sun Microsystems, Inc.
      DESC:  Run time library loaded by libX11.so, and  provides input and output capability for internationalized X Window applications.
    PSTAMP:  sparc-build20041129101917
  INSTDATE:  Aug 29 2011 00:14
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed
     FILES:       10 installed pathnames
                   8 partially installed pathnames
                   5 shared pathnames
                   6 directories
                   8 executables
                1940 blocks used (approx)
 /# nm /usr/openwin/lib/locale/common/xlibi18n.so.2 | grep XlcAddUtf8
[84]    |         0|       0|FUNC |GLOB |0    |UNDEF  |_XlcAddUtf8Converters
/# showrev -p | grep -w SUNWxi18n
Patch: 120410-28 Obsoletes:  Requires: 119254-13, 121975-01, 119059-24 Incompatibles:  Packages: SUNWxi18n, SUNWxim, SUNWiiimr, SUNWiiimu
Patch: 120410-30 Obsoletes:  Requires: 119254-13, 121975-01, 119059-24 Incompatibles:  Packages: SUNWxi18n, SUNWxim, SUNWiiimr, SUNWiiimu
Patch: 120410-33 Obsoletes:  Requires: 119254-13, 121975-01, 119059-24 Incompatibles:  Packages: SUNWxi18n, SUNWxim, SUNWiiimr, SUNWiiimu
/#

# 11  
Old 11-29-2013
That's okay.
neutronscott said it already: the Solaris-10 /usr/openwin/lib/locale/common/xlibi18n.so.2
needs the correct libX11.so to resolve the symbol.
Ensure that these are linked (share the same inode), and that it contains the symbol
Code:
ls -lLi /usr/openwin/lib/libX11* /usr/lib/libX11*
nm /usr/lib/libX11.so.4 | grep XlcAddUtf8

Further check your application to not set LD_LIBRARY_PATH (often done in a start script) to a directory with a libX11.so that does not contain the symbol.
# 12  
Old 12-03-2013
Code:
# : > LD_LIBRARY_PATH=/usr/openwin/lib:/lib:/usr/lib mwcontrol
ld.so.1: mwcontrol: fatal: libmwfolder.so: open failed: No such file or directory
Killed
# : > ls -lLi /usr/openwin/lib/libX11* /usr/lib/libX11*
      9341 -rwxr-xr-x   1 root     bin      1471036 Jan 19  2011 /usr/lib/libX11.so
      9341 -rwxr-xr-x   1 root     bin      1471036 Jan 19  2011 /usr/lib/libX11.so.4
      9341 -rwxr-xr-x   1 root     bin      1471036 Jan 19  2011 /usr/lib/libX11.so.5
      9341 -rwxr-xr-x   1 root     bin      1471036 Jan 19  2011 /usr/openwin/lib/libX11.so
      9341 -rwxr-xr-x   1 root     bin      1471036 Jan 19  2011 /usr/openwin/lib/libX11.so.4
# : > nm /usr/lib/libX11.so.4 | grep XlcAddUtf8
[4040]  |    597028|     100|FUNC |GLOB |0    |10     |_XlcAddUtf8Converters
# : >

Before running this mwcontrol, there is a environment script which runs while login. Here is what if I grep LD_LIBRARY
Code:
# : >  cat siebenv.sh | grep LD_LIBRARY
if [ a${LD_LIBRARY_PATH} = ${LD_LIBRARY_PATH}a ]
then LD_LIBRARY_PATH=${SIEBEL_ROOT}/lib:${SIEBEL_ROOT}/lib/odbc/merant:${MWHOME}/lib:${SQLANY}/lib:/usr/lib:/ccq/apps/oracle/product/11.2.0/client_1/lib:/opt/IBM/ldap/V6.0/lib
else LD_LIBRARY_PATH=${SIEBEL_ROOT}/lib:${SIEBEL_ROOT}/lib/odbc/merant:${MWHOME}/lib:${SQLANY}/lib:/usr/lib:${LD_LIBRARY_PATH}:/ccq/apps/oracle/product/11.2.0/client_1/lib:/opt/IBM/ldap/V6.0/lib
export LD_LIBRARY_PATH
# : >

# 13  
Old 12-03-2013
Your Solaris 10 box is okay.
The "siebenv.sh" sets own application directories before the system /usr/lib/.
Application libraries will replace system libraries with the same name, that is a risk for the application and especially several other applications that run with this LD_LIBRARY_PATH.
Please do
Code:
. siebenv.sh
ldd /usr/openwin/lib/locale/common/xlibi18n.so.2

Is a library (e.g. libX11.so) redirected to an application library?
# 14  
Old 12-03-2013
Yes, there is different. if I run with application user -->
Code:
# : > . ./siebenv.sh
# : > ldd /usr/openwin/lib/locale/common/xlibi18n.so.2
        libX11.so.4 =>   /ccq/apps/siebel81/sieb81/siebsrvr/mw/lib/libX11.so.4
        libc.so.1 =>     /usr/lib/libc.so.1
        libXext.so.0 =>  /ccq/apps/siebel81/sieb81/siebsrvr/mw/lib/libXext.so.0
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libdga.so.1 =>   /usr/openwin/lib/libdga.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        libmd.so.1 =>    /usr/lib/libmd.so.1
        libscf.so.1 =>   /usr/lib/libscf.so.1
        libdoor.so.1 =>  /usr/lib/libdoor.so.1
        libuutil.so.1 =>         /usr/lib/libuutil.so.1
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libm.so.2 =>     /usr/lib/libm.so.2
        /lib/libm/libm_hwcap1.so.2
        /platform/SUNW,SPARC-Enterprise/lib/libc_psr.so.1
# : >

If I do it with root (without setting env with siebenv.sh)
Code:
# : > ldd /usr/openwin/lib/locale/common/xlibi18n.so.2
        libX11.so.4 =>   /usr/openwin/lib/libX11.so.4
        libc.so.1 =>     /lib/libc.so.1
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libXext.so.0 =>  /usr/openwin/lib/libXext.so.0
        libmp.so.2 =>    /lib/libmp.so.2
        libmd.so.1 =>    /lib/libmd.so.1
        libscf.so.1 =>   /lib/libscf.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        libm.so.2 =>     /lib/libm.so.2
        /lib/libm/libm_hwcap1.so.2
        /platform/SUNW,SPARC-Enterprise/lib/libc_psr.so.1

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

I'm facing problem with rpm command, when running the command and appears this error:

exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors: 0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1). 0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded. 0509-152 Member... (4 Replies)
Discussion started by: Ohmkar
4 Replies

2. Red Hat

FATAL: Error running install command for binfmt_0000

Hi, Firstly, I want to say hello to all of you guys. My first post here... I have issue with CentOS and I hope that there is someone who can help or even explain what could cause this kind of situation. I have installed CentOS 5.7 x86_64 into Hyper-V (Windows Server 2012 R2) environment. After... (0 Replies)
Discussion started by: gigolos
0 Replies

3. Windows & DOS: Issues & Discussions

Help required for Running SQLPLUS command from Bat file

Hello All, Good Afternoon. I am new to this platform and I need one small help regarding running a SQL file from Bat file. Below is what I am doing, 1. I placed the below command in one Bat file. start putty.exe -ssh user@host -pw pwd -m C:\2.txt 2. In 2.txt, I have below command. ... (3 Replies)
Discussion started by: PavanPatil
3 Replies

4. Shell Programming and Scripting

Getting syntax error while running awk command

Hello Gurus, I am firing the below command : df -g | grep -v var| awk '{ (if $4 > 90% ) print "Filesystem", $NF,"over sized";}' But I am getting the below error:- ====== syntax error The source line is 1. The error context is {if ($4 > >>> 90%) <<< awk: The... (9 Replies)
Discussion started by: pokhraj_d
9 Replies

5. Solaris

Error during running sqlplus command from shell script in Solaris

I am using following code to connect to oracle database from solaris shell script. which will try thrice to connect the database ...at the 4rth atempt it will exir=t. count=0 while ; do sqlplus -s $usrname/$password@dbSID <<-EOF | tee $logfile WHENEVER OSERROR EXIT 9; WHENEVER SQLERROR... (4 Replies)
Discussion started by: millan
4 Replies

6. Shell Programming and Scripting

Logging in and running an update file from command

I am trying to upgrade many installations of a gallery script called coppermine through the commandline. I've copied the latest files of the script to each account. Then, I need to run a file gallery/update.php which requires I log in I can create an admin user for myself for each... (2 Replies)
Discussion started by: vanessafan99
2 Replies

7. UNIX for Dummies Questions & Answers

error while running nm command

I am running nm for a file. the command is nm -f libC.a but it gives below error nm: libC.a: 0654-203 Specify an XCOFF object module. any solution ? Please use and tags when posting code, data or logs etc. to preserve formatting and enhance readability, thanks. (2 Replies)
Discussion started by: yatrik007
2 Replies

8. AIX

Error running the history command

When I try to run the history command from the prompt i get the following error: $ history ksh: cd: 0403-011 The specified substitution is not valid for this command. ON running history with a parameter I get the following $ history -10 ksh: cd: 0403-008 The number of parameters... (6 Replies)
Discussion started by: meetzap
6 Replies

9. Shell Programming and Scripting

Cron job giving error while running SSH command

Hi All, The script which i am using to SSH to remote server is working fine when i run is using ./ but when cron runs it it gives error that "ssh: not found" please help!!! (3 Replies)
Discussion started by: visingha
3 Replies

10. UNIX for Advanced & Expert Users

Error when running the make command

Hi, Not really sure whether this question should go to this forum but am giving it a shot. I have compiled a simple C program test.c. #include <stdio.h> #include <stdlib.h> #include <string.h> static int a; int test() { a=a+1; return a; } When I run a make command, I get this: ... (2 Replies)
Discussion started by: nattynatty
2 Replies
Login or Register to Ask a Question