Operating System - HP-UX
1751968 Members
4732 Online
108783 Solutions
New Discussion

Re: symbol not found for nagios library executable

 
SOLVED
Go to solution
Juan M Leon
Trusted Contributor

symbol not found for nagios library executable

Hello, I have a HPUX 11.31 server and I recently installed nagios from the iexpress package. however after configuring the required parameters. I get a symbol not found error

 

/usr/ccs/bin/ldd  -r    /opt/iexpress/nagios/libexec/check_users

/opt/iexpress/nagios/libexec/check_users:
        libintl.so.8 => /usr/lib/hpux32/libintl.so.8
        libpthread.so.1 =>      /usr/lib/hpux32/libpthread.so.1
        libdl.so.1 =>   /usr/lib/hpux32/libdl.so.1
        libunwind.so.1 =>       /usr/lib/hpux32/libunwind.so.1
        libc.so.1 =>    /usr/lib/hpux32/libc.so.1
        libuca.so.1 =>  /usr/lib/hpux32/libuca.so.1
        libdl.so.1 =>   /usr/lib/hpux32/libdl.so.1
        symbol not found: libintl_textdomain    (/opt/iexpress/nagios/libexec/check_users)
        symbol not found: libintl_bindtextdomain        (/opt/iexpress/nagios/libexec/check_users)
        symbol not found: libintl_gettext       (/opt/iexpress/nagios/libexec/check_users)

 

 

However if I export LD_LIBRARY_PATH=/usr/local/lib/hpux32/ then i dont get the error.

I have another server that was build before my time. check the settings to find where was the LD_LIBRARY or SHLIB path configured but found nothing.

 

Can anyone help me solve this without the need to export LD_LIBRARY_PATH=/usr/local/lib/hpux32

 

Thank you

 

 

P.S. This thread has been moevd from general to HP-UX > languages. - Hp forum Moderator

4 REPLIES 4
Dennis Handly
Acclaimed Contributor
Solution

Re: symbol not found for nagios library executable

>symbol not found: libintl_textdomain libintl_bindtextdomain libintl_gettext

 

These look like libintl unsats.
 
>check the settings to find where was the LD_LIBRARY or SHLIB path configured but found nothing.

 

Have you used chatr(1) and ldd(1) search?  Looked at /etc/SHLIB_PATH?

Perhaps libintl.so is in /usr/lib/hpux32/?

>Can anyone help me solve this without the need to export LD_LIBRARY_PATH=/usr/local/lib/hpux32

 

Create a symlink from /usr/local/lib/hpux32/libintl.so (whatever) to /usr/lib/hpux32/?

Juan M Leon
Trusted Contributor

Re: symbol not found for nagios library executable

Dennis,

 

thank you for your reply, yes I checked ldd to find location for the needed libraries. I found that there were missing files under /usr/lib/hpux32 so I copied files and created corrsponding links.

 

one thing I noticed between between a working nagios client server and this new server is that he working server uses libiconv where as the one I just installed nagios agent does not seem to have the reference for libiconv (both servers are using the same nagios version and depot package software install)

 

here is output of chatr and ldd

 

 /usr/ccs/bin/ldd  -v   /opt/iexpress/nagios/libexec/check_users

/opt/iexpress/nagios/libexec/check_users:

  find library=libintl.so.8; required by /opt/iexpress/nagios/libexec/check_users
        libintl.so.8 => /usr/lib/hpux32/libintl.so.8

  find library=libpthread.so.1; required by /opt/iexpress/nagios/libexec/check_users
        libpthread.so.1 =>      /usr/lib/hpux32/libpthread.so.1

  find library=libdl.so.1; required by /opt/iexpress/nagios/libexec/check_users
        libdl.so.1 =>   /usr/lib/hpux32/libdl.so.1

  find library=libunwind.so.1; required by /opt/iexpress/nagios/libexec/check_users
        libunwind.so.1 =>       /usr/lib/hpux32/libunwind.so.1

  find library=libc.so.1; required by /opt/iexpress/nagios/libexec/check_users
        libc.so.1 =>    /usr/lib/hpux32/libc.so.1

  find library=libuca.so.1; required by /usr/lib/hpux32/libunwind.so.1
        libuca.so.1 =>  /usr/lib/hpux32/libuca.so.1

  find library=libdl.so.1; required by /usr/lib/hpux32/libc.so.1
        libdl.so.1 =>   /usr/lib/hpux32/libdl.so.1

 

 

 

chatr /opt/iexpress/nagios/libexec/check_users
/opt/iexpress/nagios/libexec/check_users:
         32-bit ELF executable
         shared library dynamic path search:
             LD_LIBRARY_PATH    enabled  first
             SHLIB_PATH         enabled  second
             embedded path      enabled  third  Not Defined
         shared library list:
             libintl.so.8
             libpthread.so.1
             libdl.so.1
             libunwind.so.1
             libc.so.1
         shared library binding:
             deferred
         global hash table disabled
         global hash table size 1103
         shared library mapped private disabled
         runtime checks disabled
         shared library segment merging disabled
         shared vtable support disabled
         explicit unloading disabled
         linkage table protection disabled
         segments:
             index type     address      flags size
                 8 text     04000000     z---c-    D (default)
                 9 data     40010000     ---m--    D (default)
         executable from stack: D (default)
         kernel assisted branch prediction enabled
         lazy swap allocation for dynamic segments disabled
         nulptr dereferences trap enabled
         address space model: default
         caliper dynamic instrumentation disabled

 

 

Working server output is the following:

 

 

  /usr/ccs/bin/ldd  -v   /opt/iexpress/nagios/libexec/check_users

/opt/iexpress/nagios/libexec/check_users:

  find library=libintl.so.8; required by /opt/iexpress/nagios/libexec/check_users
        libintl.so.8 => /usr/lib/hpux32/libintl.so.8

  find library=libpthread.so.1; required by /opt/iexpress/nagios/libexec/check_users
        libpthread.so.1 =>      /usr/lib/hpux32/libpthread.so.1

  find library=libdl.so.1; required by /opt/iexpress/nagios/libexec/check_users
        libdl.so.1 =>   /usr/lib/hpux32/libdl.so.1

  find library=libunwind.so.1; required by /opt/iexpress/nagios/libexec/check_users
        libunwind.so.1 =>       /usr/lib/hpux32/libunwind.so.1

  find library=libc.so.1; required by /opt/iexpress/nagios/libexec/check_users
        libc.so.1 =>    /usr/lib/hpux32/libc.so.1

  find library=libiconv.so; required by /usr/lib/hpux32/libintl.so.8
        libiconv.so =>  /usr/local/lib/hpux32/libiconv.so

  find library=libuca.so.1; required by /usr/lib/hpux32/libunwind.so.1
        libuca.so.1 =>  /usr/lib/hpux32/libuca.so.1

  find library=libdl.so.1; required by /usr/lib/hpux32/libc.so.1
        libdl.so.1 =>   /usr/lib/hpux32/libdl.so.1

  find library=libc.so.1; required by /usr/local/lib/hpux32/libiconv.so
        libc.so.1 =>    /usr/lib/hpux32/libc.so.1

 

 

chatr /opt/iexpress/nagios/libexec/check_users
/opt/iexpress/nagios/libexec/check_users:
         32-bit ELF executable
         shared library dynamic path search:
             LD_LIBRARY_PATH    enabled  first
             SHLIB_PATH         enabled  second
             embedded path      enabled  third  Not Defined
         shared library list:
             libintl.so.8
             libpthread.so.1
             libdl.so.1
             libunwind.so.1
             libc.so.1
         shared library binding:
             deferred
         global hash table disabled
         global hash table size 1103
         shared library mapped private disabled
         runtime checks disabled
         shared library segment merging disabled
         shared vtable support disabled
         explicit unloading disabled
         linkage table protection disabled
         segments:
             index type     address      flags size
                 8 text     04000000     z---c-    D (default)
                 9 data     40010000     ---m--    D (default)
         executable from stack: D (default)
         kernel assisted branch prediction enabled
         lazy swap allocation for dynamic segments disabled
         nulptr dereferences trap enabled
         address space model: default
         caliper dynamic instrumentation disabled

 

 

 

 

Dennis Handly
Acclaimed Contributor

Re: symbol not found for nagios library executable

>Working server output is the following:

>find library=libiconv.so; required by /usr/lib/hpux32/libintl.so.8

 

This indicates the difference is in libintl.so.8.

Juan M Leon
Trusted Contributor

Re: symbol not found for nagios library executable

Dennis,

 

Thank you I think initially I copied files from source to other libraries where the ,so file was missing instead of creating links. I removed the files and created links and all my nagios checks are working.

 

The following are the new links

 

#> ln -s /usr/local/lib/hpux32/libintl.so    /usr/local/lib/hpux32/libintl.so.8
#> ln -s /usr/local/lib/hpux32/libintl.so    /usr/lib/hpux32/libintl.so.8
#> ln -s /usr/local/lib/hpux32/libintl.so    /usr/lib/hpux32/libintl.so

 

thansk again