Solved

shared libs and bad magic number

Posted on 2000-04-10
5
508 Views
Last Modified: 2013-12-06
what can typically cause a bad magic number on a shared lib ?
0
Comment
Question by:migue
  • 3
  • 2
5 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2702931
In what context? Typically it would indicate something wrong with the shared lib, but it could also be a problem with how the lib is being examined.
0
 

Author Comment

by:migue
ID: 2709017
need more detailed answer, examples etc....
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2709268
Well, what are you doing when you get "bad magic number" reported?
0
 

Author Comment

by:migue
ID: 2710021
running a script thats loads some procs..to have other procs connect to oracle db on hp-ux.

I don't do anything. I just get the error and then crack open the DBA manuals.....
0
 
LVL 40

Accepted Solution

by:
jlevie earned 40 total points
ID: 2710334
Does it give you a clue as to what shared lib it doesn't like? My suspicion is that there's either a path or filename problem and something is being specified that's not a shared lib, or that one of the shared libs is in fact bogus.

The "magic number" is just that. There's a file somewhere (perhaps in /etc or /usr/share) on your system that defines certain special numbers that will in appear in files of a specific type at a certain location(s) in the file ("man magic" should tell you more). The magic number is always used by the file(1) command when it tells you what a give file type is. Other things might use the same process to determine the validity of a file they've been given for processing, like a dynamic loader.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question