Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Message when using pkgadd 1

Status
Not open for further replies.

pauljt

Technical User
Feb 26, 2003
31
GB
When attempting to add a unix patch, we have received the following 'nasty' error message. We now get this every time we run pkgadd. Has anybody come across this before/any ideas how to resolve this problem?

## Executing checkinstall script.
ld.so.1: /usr/sadm/install/bin/pkginstall: fatal: relocation error: file /usr/sadm/install/bin/pkginstall: symbol get_install_root: referenced symbol not found
pkgadd: ERROR: checkinstall script did not complete successfully
Installation of <SUNWsprot.2> failed (internal error).

No changes were made to the system.
 
Dumb answer I know but have you checked the LD_LIBRARY_PATH?

 
What output do you get from this command?

Code:
 $ ldd -r /usr/sadm/install/bin/pkginstall
        libadm.so.1 =>   /usr/lib/libadm.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libelf.so.1 =>   /usr/lib/libelf.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1

Annihilannic.
 
We have had to restore the machine as it would not boot up!

The output we NOW have from that command is:

$ ldd -r /usr/sadm/install/bin/pkginstall
libadm.so.1 => /usr/lib/libadm.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libc.so.1 => /usr/lib/libc.so.1
libelf.so.1 => /usr/lib/libelf.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1

Thanks for all suggestions so far, will take these thoughts into account before trying to re-apply patches.

One possible theory as to the cause of tje problem is that we su'd to root and applied the patches rather than directly logging in as root. Any comments?

 
I was told by the guy who did the reboot it was in single user mode but he didn't sound too convincing to me.
Would this be a likely cause?

 
Are you trying to install a patch with pkgadd?

You want to use patchadd to install patches. pkgadd is used to install packages. A patch and a package are two different things.

Hope this helps.

 
Sam Bones has hit the nail on the head!!! This is definitley the issue here.

Use patchadd(1M) to install patches.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top