Solved

shared libs and bad magic number

Posted on 2000-04-10
5
524 Views
Last Modified: 2013-12-06
what can typically cause a bad magic number on a shared lib ?
0
Comment
Question by:migue
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

751 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