Re: Problems building Oracle::OCI 0.03 against Oracle 8.1.7 Linux

[email protected] (Stephen Clouse) Wed, 11 Jul 2001 16:28:11 -0500
Newsgroups perl.dbi.oracle-oci
Message-ID <[email protected]>
msg.pgp (text/plain, 1.9 KB)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Jul 11, 2001 at 10:31:37AM +0100, Tim Bunce wrote:
> Odd.
> Was the DBD::Oracle built on that system?

Yep, it builds fine.

> What was the LIBS it was trying to use?

Something ludicrously long.  I think DBD::Oracle just tries linking to
everything it finds in OH/lib.  It really only needs libclntsh and libwtc8 (at
least that's what ldd claims).

> Can you find a more generic fix to the underlying problem?

Yes, this just puts DBD::Oracle's LIBS value into the mix.

- --- Oracle-OCI-0.03/boot        Sat Jul  7 21:05:10 2001
+++ Oracle-OCI-0.03-fixed/boot  Wed Jul 11 16:22:19 2001
@@ -105,8 +106,11 @@
     #  the generated Makefile of a *working* DBD::Oracle that
     #  has been *built recently on the same platform*:
 
+    LIBS => $::dbd_oracle_mm_opts->{LIBS},
+
     dynamic_lib => $::dbd_oracle_mm_opts->{dynamic_lib}
        || die "DBD::Oracle::mk module doesn't define dynamic_lib",
+
 );
 
 
@@ -294,6 +298,7 @@
     }
     local $Data::Dumper::Terse = 1;
     my $dynamic_lib = Dumper($config{dynamic_lib});
+    my $libs = Dumper($config{LIBS});
     print $new_mk qq{
        sub wmf_config {
            return {
@@ -301,6 +306,7 @@
                OBJECT  => q{\$(BASEEXT)\$(OBJ_EXT) utility.o},
                TYPEMAPS => ['h2xs.typemap'], # ./typemap implicitly last
                OPTIMIZE => '-g',
+               LIBS => $libs,
                dynamic_lib => $dynamic_lib,
            };
        }

__END__

> Do you have any time to play with it further?

I can fiddle with it in the evenings.  I copied Oracle to my home machine to do
some development.

- -- 
Stephen Clouse <[email protected]>
Senior Programmer, IQ Coordinator Project Lead
The IQ Group, Inc. <http://www.theiqgroup.com/>

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQA/AwUBO0zE6wOGqGs0PadnEQLpkgCgzZYKfvn8uXsE1fBVKmRtExUL3BEAn2R0
hI/WgBxM/FU59Zhi3P17NSh/
=ecHB
-----END PGP SIGNATURE-----