469,285 Members | 2,553 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,285 developers. It's quick & easy.

Bad magic number for shared library: libdb2.so

Hi, I am trying to run my application (32-bit) on HP-UX 11.22i (64-bit)
and am getting the above message while dynamically loading libdb2.so
from my application. I am using dlopen as follows:

dlopen(libName, RTLD_NOW);

I have looked up notes from DB2 that say that as long as I link with
32-bit DB2 libs, the application should work. I have made sure I have
32-bit DB2 libs in the SHLIB_PATH and also made sure that my
application is built with +s ld flag.

Has anyone run into this or has any pointers about this vague error
message from dlopen?



Apr 26 '06 #1
2 3463
Did you rebind your application against db2 ?
Is it a CLI or Embedded C program ?

Apr 27 '06 #2

Hi, thanks for your response.

It's a embedded C program that utilizes some of DB2 CLI and API calls
to attach to instance, connect to database etc. Since dlopen is
failing, I don't know whether it's a dlopen implementation issue or
whether libdb2.so is built differently on 64-bit and that is causing
the problem. What do you think might be happening here?


Apr 27 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Adman | last post: by
19 posts views Thread by youpak2000 | last post: by
reply views Thread by Vandana Sharma | last post: by
reply views Thread by KronicDeth | last post: by
16 posts views Thread by per9000 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.