OpenCOBOL Forum Index OpenCOBOL
libcob: Cannot find module 'SQLADR' | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| kdsadler | Posted on: 2009/8/6 20:46 |
Just popping in ![]() ![]() Joined: 2009/6/10 From: Posts: 10 |
libcob: Cannot find module 'SQLADR' I am using a precompiled OC-1.0 package on an HP-UX 11.0 server.
I am attempting to compile programs written with embedded SQL statements after they have been pre-compiled with Oracle's procobol. I have linked the Oracle library. My problem is that I keep getting the message: libcob: Cannot find module 'SQLADR'. Anyone have any experience doing such a thing? Thanks, --Karey |
| btiffin | Posted on: 2009/8/7 1:48 |
Home away from home ![]() ![]() Joined: 2008/6/7 From: CANADA Posts: 755 |
Re: libcob: Cannot find module 'SQLADR' Karey; we have a little experience here on oc.o, but if you could post more of the tectonics (build instructions) help might go farther, faster or crash into a wall.
In particular, I'd be curious as to what the -L and -l (little l) options look like. SQLADR may not be in SHLIB_PATH (if I remember the HPUX. It might be LD_LIBRARY_PATH or LIB_PATH or ..., but it's best to leave these env vars alone anyway) And maybe http://opencobol.add1tocobol.com/#what-is-cob-pre-load Here's rooting for you. It'll be cool if 1.0 (or 1.1pre-release for that matter) can compile and run the output from Oracle's preprocessor. Cheers, Brian |
| ska | Posted on: 2009/8/7 12:44 |
Just can't stay away ![]() ![]() Joined: 2008/3/17 From: NYC Posts: 117 |
Re: libcob: Cannot find module 'SQLADR' Quote:
Hi, I'm assuming you doing something like that: cobc -x TEST.cbl ${ORACLE_HOME}/precomp/lib/cobsqlintf.o -L${ORACLE_HOME}/lib -lclntsh You have 2 choices - ether use cobc -x -fstatic-call ... or include ${ORACLE_HOME}/bin in COB_LIBRARY_PATH and use COB_PRE_LOAD=libclntsh.so
|
| malikam | Posted on: 2010/7/28 4:09 |
Just popping in ![]() ![]() Joined: 2010/7/28 From: Posts: 1 |
Re: libcob: Cannot find module 'SQLADR' Pro* COBOL precompiler inserts the call to SQLADR in upper case. You just require to change the the case of SQLADR to all lower case and link the library libsql avaliabe at $ORACLE_HOME/lib.
libsql contains the function "sqladr" in small case. To confirm pls check with command "nm -A libsql8.a |grep -i sqladr" This will surely work....... |
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |








