Operating System - HP-UX
1834163 Members
2564 Online
110064 Solutions
New Discussion

Re: libdce problem (swremoved DCE-CORE)

 
Pedro Mansito
Occasional Advisor

libdce problem (swremoved DCE-CORE)

Hi!
by error I swremoved the package DCE-CORE from our system (HP-UX 11.00). Now i can't run any sw* command, therefore i can't reinstall DCE-CORE, nor run SAM (and probably many other commands). I copied the libraries from the CD and this is what i get

# swinstall
/usr/lib/dld.sl: Bad magic number for shared library: /usr/lib/libdce.1
/usr/lib/dld.sl: Exec format error
Abort
# sam
/usr/lib/dld.sl: Bad magic number for shared library: /usr/lib/libdce.2
/usr/lib/dld.sl: Exec format error
/usr/sbin/sam[220]: 4832 Abort
# swremove
/usr/lib/dld.sl: Bad magic number for shared library: /usr/lib/libdce.1
/usr/lib/dld.sl: Exec format error
Abort

This is the output of running file on both libraries:

# file /usr/lib/libdce.1
/usr/lib/libdce.1: lex command text
# file /usr/lib/libdce.2
/usr/lib/libdce.2: awk program text

¿Should I postprocess the libraries?. If so, ¿which tool?.

Best regards
Pe
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: libdce problem (swremoved DCE-CORE)

Pedro,

Have you got a backup available that you can restore from? That's the only way I can see for you to get out of this situation without re-installing from scratch.


Pete

Pete
Pedro Mansito
Occasional Advisor

Re: libdce problem (swremoved DCE-CORE)

Hi Pete, thanks for your reply. Yes, we have a backup, but the backup was made using SAM and SAM also uses DCE:

# sam
/usr/lib/dld.sl: Bad magic number for shared library: /usr/lib/libdce.2
/usr/lib/dld.sl: Exec format error
/usr/sbin/sam[220]: 4832 Abort

Pete Randall
Outstanding Contributor

Re: libdce problem (swremoved DCE-CORE)

Pedro,

I believe the SAM backup just uses fbackup, so you should be able to use frecover.


Pete

Pete
Pedro Mansito
Occasional Advisor

Re: libdce problem (swremoved DCE-CORE)

Oops, it's not a SAM backup tape but a make_recovery tape. We can't boot the tape because the system has the serial port broken (no console); that's why I tried to copy the files from the CD.

Pedro
Robert-Jan Goossens
Honored Contributor

Re: libdce problem (swremoved DCE-CORE)

Hi Pedro,

Does the tar command work ?

Load the ignite tape ( read only )

# mt -t /dev/rmt/0mn rew
# mt -t /dev/rmt/0mn fsf 1
# tar tvf /dev/rmt/0mn

Robert-Jan
Pedro Mansito
Occasional Advisor

Re: libdce problem (swremoved DCE-CORE)

Robert-Jan,
tried yor solution but unfortunately the make_recovery tape hasn't got /usr/lib nor /lib.

Pedro