[DB-SIG] [Help] Choosing right tools for Oracle 7.

Derry Santoso derry@pintunet.com
Thu, 7 Feb 2002 01:16:20 +0700


Hi,

I still can't make the modules. After making minor modification which
suit to the system, this error came up:

# make
[----cut!----]
        ld -b  oci_.o
 /usr/lib/libpthread.a -L/opt/app/oracle/product/7.3.4/lib/libclntsh.sl -o
oci_.sl
ld: Can't open /usr/lib/libpthread.a
ld: No such file or directory
*** Error exit code 1

Stop.

I already search for 'libpthread.a', but I can't found it anywhere on the
system.
What should I do now?

FYI, I also tried another way, which is, following exactly what
the docs said :
- Copy Setup-7.3.2 to Setup
- Copy Makefile.pre.in-1.5 to Makefile.pre.in
- make -f Makefile.pre.in boot
- make
.. And all end up with Buffer.sl and oci_.sl successfully created.

Then i tried to use those modules :
>>> import Buffer, oci_, sys
>>> db=oci_.Connect('user/passwd@sid')
/usr/lib/dld.sl: Unresolved symbol: pthread_mutexattr_default (data)  from
oci_.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_attr_default (data)  from
oci_.sl
/usr/lib/dld.sl: Unresolved module for symbol: sltsrsa (code)  from oci_.sl
Abort(coredump)
#

*sigh* .. well, i know it would happen, may be it just work well
on python-1.5. :-(
Another suggestion?


Best Regards,
Derry Santoso

----- Original Message -----
From: "Eugene V. Dvurechenski" <jno@glasnet.ru>
To: "Derry Santoso" <derry@pintunet.com>
Sent: Wednesday, February 06, 2002 8:17 PM
Subject: Re: [DB-SIG] [Help] Choosing right tools for Oracle 7.


> for the first time, just try to put it into DCOracle/src/ dir
> and make it.
>
> well, you may need to fix ORACLE_HOME (and drived) dirs in the file.
>
> in general, the most problem is to locate proper libs and include them
> proper number of times into the ld command line.
>
> yep, it sounds odd, but oracle libs often need to be incuded more than
> once just because of cross refs...
>
> On Wed, Feb 06, 2002 at 07:06:11PM +0700, Derry Santoso wrote:
> > > check the makefile attached - it's for Python 2.0,
> > > DCOracle 1.3.2, HP-UX B.11.00
> >
> > Can you tell me what should I do with this Makefile?
> >
> > Thx!
> >
> >
> > Derry S.
> >
>
> --
> SY,
> jno (PRIVATE PERSON)      [ http://www.glasnet.ru/~jno ]
> a TeleRoss techie         [ http://www.aviation.ru/    ]
> If God meant man to fly, He'd have given him more money.
>