vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| Vandana Sharma <vandana_sharma@yahoo.com> wrote: > Hi, I am trying to run my application (32-bit) on HP-UX 11.22i > (64-bit) I assume you mean 11.22, aka 11iv1.6 yes? You do know that that release is "EOL" and everyone really should be on 11.23, aka 11iv2 right? > and am getting the above message while dynamically loading Next time it would be good to include the message in the posting text - in some newsreaders, only the first N characters of a subject are visible. > 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. What does "file" say about libdb2.so? Does it say it is a PA-RISC library, or an IPF library? If you are trying to link something on an IPF system (and your running 11.22 implies an IPF system) it has to be an IPF object. rick jones > Has anyone run into this or has any pointers about this vague error > message from dlopen? > Thanks! > -Vandana -- firebug n, the idiot who tosses a lit cigarette out his car window these opinions are mine, all mine; HP might not want them anyway... feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH... |
| |||
| Hi, thanks for your response. Yes, I am actually running 11.23. Here is what "file" says about libdb2.so: libdb2.so: ELF-32 shared object file - IA64 Here is what "file" says about the application binary: DB2_UDB: PA-RISC1.1 shared executable dynamically linked -not stripped dynamically linked |
| |||
| "Vandana Sharma" <vandana_sharma@yahoo.com> writes: > libdb2.so: ELF-32 shared object file - IA64 > DB2_UDB: PA-RISC1.1 shared executable dynamically linked ... Loading IA64 library into PA-RISC main exe and vv. doesn't work. Rebuild your DB2_UDB as IA64, or get PA-RISC libdb2.sl Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. |
| |||
| Vandana Sharma <vandana_sharma@yahoo.com> wrote: > Using 32-bit libdb2.sl does not work. I get this: Under HP-UX something can be either 32-bit or 64-bit and it can be either Itanium (aka IPF or IA64) or PA-RISC. All objects combined into a binary must match both architecture and "bitness." rick jones -- oxymoron n, commuter in a gas-guzzling luxury SUV with an American flag these opinions are mine, all mine; HP might not want them anyway... feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH... |
| ||||
| Vandana Sharma wrote:> Using 32-bit libdb2.sl does not work. I get this:> > dlerror msg: Call to mmap() failed - TEXT libdb2.slcheck the permissions on libdb2.sl, it should be readable and executable. |