Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / April 2006

Tip: Looking for answers? Try searching our database.

Bad magic number for shared library: libdb2.so

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vandana Sharma - 26 Apr 2006 19:58 GMT
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?

Thanks!

-Vandana
Kiran Nair - 27 Apr 2006 08:29 GMT
Hi,
Did you rebind your application against db2 ?
Or
Is it a CLI or Embedded C program ?
Vandana Sharma - 27 Apr 2006 15:15 GMT
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?

Thanks,
-Vandana
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.