Received: from punt.demon.co.uk by oink with SMTP (PP) id <22169-3@oink>;
          Tue, 21 May 1996 00:13:26 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832632744:28189:1; Mon, 20 May 96 23:52:24 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa27566; 20 May 96 23:52 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id MAA15992 for dbi-users-real; Mon, 20 May 1996 12:09:17 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id MAA15988 
          for <dbi-users@fugue.com>; Mon, 20 May 1996 12:09:09 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id aa06054; 20 May 96 19:24 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa10339; 20 May 96 19:24 +0100
Received: from toad by oink with SMTP (PP) id <14739-0@oink>;
          Mon, 20 May 1996 18:13:25 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA00482;
          Mon, 20 May 1996 18:12:52 +0000
Date: Mon, 20 May 1996 18:12:52 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605201712.AA00482@toad.ig.co.uk>
To: dbi-users@fugue.com, smferri0@wcc.com
Subject: Re: Oracle DBD. Cant find loadable object.
X-Sun-Charset: US-ASCII
content-length: 1177
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Shawn M Ferris <smferri0@wcc.com>
> 
> I used the test script at:
> http://www.hermetica.com/technologia/DBI/examples/ex2.html
> with modifications to connect to my DB and get the following:
> 
> install_driver(Oracle) failed: Can't find loadable object for module
> DBD::Oracle in @INC (/usr/lib/perl5/PA-RISC1.1/5.002 /usr/lib/perl5
> /usr/lib/perl5/site_perl/PA-RISC1.1 /usr/lib/perl5/site_perl .) at
> /usr/lib/perl5/DBD/Oracle.pm line 20
> 
>         DBI::install_driver called at ./test.pl line 7
> 
> I know Im overlooking something stupid. On another machine I have set 
> up an mSQL DBD and it works great. What am I missing? Which file is 
> it looking for? 8) Need more info I'll give the README Specifics. BTW: 
> This is running on an HP/G30 running HPUX 9.04, 128mb ram, oracle 
> 7.0.16. Perl 5.002b3, DBI 0.69, Oracle-DBD 0.29. Any and all help will 
> be greatly appreciated.

DBD::Oracle on HPUX _9_ has to be built using static linking (I'm told).
Read the README (as instructed) and the log of the Makefile.PL for details.

Basically you need to install the new perl binary that got built
(it has the DBD::Oracle modules embedded within it).

Tim.
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <22234-0@oink>;
          Tue, 21 May 1996 00:16:48 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832634184:13801:3; Tue, 21 May 96 00:16:24 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa13257; 21 May 96 0:15 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id LAA15614 for dbi-users-real; Mon, 20 May 1996 11:16:34 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mail.Clark.Net (mail.clark.net [168.143.0.10]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id LAA15602 
          for <dbi-users@fugue.com>; Mon, 20 May 1996 11:16:33 -0700
Received: from clark.net (root@clark.net [168.143.0.7]) 
          by mail.Clark.Net (8.7.3/8.6.5) with ESMTP id OAA17250;
          Mon, 20 May 1996 14:06:15 -0400 (EDT)
Received: from JPOSNER (jposner.pcy.mci.net [206.128.186.112]) 
          by clark.net (8.7.1/8.7.1) with SMTP id OAA14510;
          Mon, 20 May 1996 14:06:11 -0400 (EDT)
Message-ID: <31A0B47D.32CF@clark.net>
Date: Mon, 20 May 1996 14:05:49 -0400
From: Jeff Posner <jposner@clark.net>
Organization: MCI
X-Mailer: Mozilla 2.01Gold (WinNT; I)
MIME-Version: 1.0
To: Brian Golden <bgolden@netscape.com>, DBI Users <dbi-users@fugue.com>
CC: Pari Shanmugam <spari@ix.netcom.com>, Mike Conger <0004914989@mcimail.com>
Subject: Another memory leak??
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Can someone confirm this memory leak and provide a fix.  I just
don't know dbd/dbi at this level :-(.  The leak is approximately one
memory page per 8 cyles and only happens with ora_titles, ora_lengths or
ora_types is called.

Thanks, 
Jeff

perl 5.002
DBI-69
DBD-29
GCC 2.7.2
Solaris 2.4


#!/usr/local/bin/perl
use Oraperl;
 
$hDB = ora_login('your_db', 'your_user/your_pw', '') || die ;
 
while (1) {
    $csr=ora_open($hDB, 'select * from demand where ded_id=-1');
    @titles=ora_titles($csr);  # THIS CAUSES A LEAK
    printf "%d\n", $i++;
}
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <23722-6@oink>;
          Tue, 21 May 1996 07:06:30 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832642717:18748:3; Tue, 21 May 96 02:38:37 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa18663; 21 May 96 2:38 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id SAA17218 for dbi-users-real; Mon, 20 May 1996 18:22:14 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from elm.ncs.com.sg (elm.ncs.com.sg [203.116.16.17]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id SAA17214 
          for <dbi-users@fugue.com>; Mon, 20 May 1996 18:22:12 -0700
Received: (from appatr@localhost) by elm.ncs.com.sg (8.7.3/8.7.3) id JAA09351;
          Tue, 21 May 1996 09:17:07 +0800 (SGT)
Date: Tue, 21 May 1996 09:17:07 +0800 (SGT)
From: Appat Ramesh <appatr@ncs.com.sg>
To: dbi-users@fugue.com
Subject: Problem!!
Message-ID: <Pine.SOL.3.91.960521091259.8886A-100000@elm>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


Hello,

I have successfully installed the DBI and DBD in the oracle server but it 
seems to give a small problem.

When I do "make test" it does everything properly except in the end it 
gives "Bus error (Core dump)". 

I wrote a sample program which just installs the driver, connects to the 
server database, disconnets and exists.

It gives the same problem here too.

Can I send the "server" name as the first parameter to the data base 
"connect" cuntion?

If you can help me regarding this problem it will be very helpful for me.

Thanking you.

A. Ramesh
National Computer Systems Pvt Ltd,
Singapore

Res:-
Block 804, #02-4303,
Yishun Ring Road,
Singapore - 760804
Phone number :- 7593642



---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <23722-10@oink>;
          Tue, 21 May 1996 07:07:27 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832650697:02750:1; Tue, 21 May 96 04:51:37 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa02174; 21 May 96 4:50 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id UAA18046 for dbi-announce-real; Mon, 20 May 1996 20:42:31 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gw.home.vix.com (gw.home.vix.com [192.5.5.1]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id UAA18037;
          Mon, 20 May 1996 20:40:58 -0700
Received: by gw.home.vix.com id UAA16265; Mon, 20 May 1996 20:40:53 -0700
X-btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id aa02725; 21 May 96 0:58 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa10389; 21 May 96 0:58 +0100
Received: from toad by oink with SMTP (PP) id <22675-0@oink>;
          Tue, 21 May 1996 00:57:35 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA03271;
          Tue, 21 May 1996 00:57:17 +0000
Date: Tue, 21 May 1996 00:57:17 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605202357.AA03271@toad.ig.co.uk>
To: dbi-announce@fugue.com
Subject: Announce: DBD-Oracle-0.31 (including Oraperl 1.25)
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424

This release mainly consolidates some patches.

Changes in DBD::Oracle 0.31 (Oraperl 1.25), 20th May 1996

    Makefile.PL for HP-UX now defaults to dynamic for hpux >= 10.

    execute (ora_bind/ora_do) now returns undef on error or the
    number of rows affected (0 is returned as 0E0, hence true, for
    okay but no rows affected or no row count available/applicable).
    This matches the oraperl version 2.4 behaviour.

    Made an attempt at supporting Oracle 7.3 (e.g. include's in proc.mk)
    Please let me know if it works (else supply patches to fix it :-)

    Fixed small memory leak in ora_titles etc functions.

Uploaded to ftp.demon.co.uk. May take a day or so to get to PAUSE+CPAN.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <23723-15@oink>;
          Tue, 21 May 1996 07:13:04 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832641479:10957:0; Tue, 21 May 96 02:17:59 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa10676; 21 May 96 2:17 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa24249; 21 May 96 2:16 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id QAA16832 for dbi-users-real; Mon, 20 May 1996 16:02:02 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id QAA16828 
          for <dbi-users@fugue.com>; Mon, 20 May 1996 16:01:56 -0700
Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) 
          id XAA12629 for dbi-users@fugue.com; Mon, 20 May 1996 23:53:47 +0100
From: Alligator Descartes <descarte@hermetica.com>
Message-Id: <199605202253.XAA12629@fruitbat.mcqueen.com>
Subject: Hermetica WWW site moving!
To: dbi-users@fugue.com
Date: Mon, 20 May 1996 23:53:47 +0100 (BST)
X-Pants: ** The return address of this email should be: descarte@hermetica.com
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 534


A warning! The Hermetica pages will be in transit on either Tuesday or
Wednesday ( 21-22/05/96 ). There's a mailing list archive backlog waiting
to get added, which'll get done once the move is complete.

So!

If you get any weirder than normal messages about stuff gone missing, don't
worry unduly and try again a wee while later.

A.

-- 
Alligator Descartes	|       Nexus - Multi-User Virtual Reality 
Anathematician		|         http://www.hermetica.com/nexus
descarte@hermetica.com	| Muse of the Day: "Juliette" - Marquis de Sade
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <23867-0@oink>;
          Tue, 21 May 1996 07:15:40 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832650514:28464:1; Tue, 21 May 96 04:48:34 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa28364; 21 May 96 4:48 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa14869; 21 May 96 4:48 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id UAA18041 for dbi-users-real; Mon, 20 May 1996 20:41:01 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gw.home.vix.com (gw.home.vix.com [192.5.5.1]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id UAA18037;
          Mon, 20 May 1996 20:40:58 -0700
Received: by gw.home.vix.com id UAA16265; Mon, 20 May 1996 20:40:53 -0700
X-btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id aa02725; 21 May 96 0:58 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa10389; 21 May 96 0:58 +0100
Received: from toad by oink with SMTP (PP) id <22675-0@oink>;
          Tue, 21 May 1996 00:57:35 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA03271;
          Tue, 21 May 1996 00:57:17 +0000
Date: Tue, 21 May 1996 00:57:17 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605202357.AA03271@toad.ig.co.uk>
To: dbi-announce@fugue.com
Subject: Announce: DBD-Oracle-0.31 (including Oraperl 1.25)
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424

This release mainly consolidates some patches.

Changes in DBD::Oracle 0.31 (Oraperl 1.25), 20th May 1996

    Makefile.PL for HP-UX now defaults to dynamic for hpux >= 10.

    execute (ora_bind/ora_do) now returns undef on error or the
    number of rows affected (0 is returned as 0E0, hence true, for
    okay but no rows affected or no row count available/applicable).
    This matches the oraperl version 2.4 behaviour.

    Made an attempt at supporting Oracle 7.3 (e.g. include's in proc.mk)
    Please let me know if it works (else supply patches to fix it :-)

    Fixed small memory leak in ora_titles etc functions.

Uploaded to ftp.demon.co.uk. May take a day or so to get to PAUSE+CPAN.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <23792-17@oink>;
          Tue, 21 May 1996 07:16:05 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832650954:00652:2; Tue, 21 May 96 04:55:54 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa00188; 21 May 96 4:54 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id UAA18122 for dbi-users-real; Mon, 20 May 1996 20:52:10 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id UAA18117 
          for <dbi-users@fugue.com>; Mon, 20 May 1996 20:51:56 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ac01832; 21 May 96 0:50 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa09313; 21 May 96 0:49 +0100
Received: from toad by oink with SMTP (PP) id <22584-0@oink>;
          Tue, 21 May 1996 00:49:02 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA03089;
          Tue, 21 May 1996 00:48:38 +0000
Date: Tue, 21 May 1996 00:48:38 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605202348.AA03089@toad.ig.co.uk>
To: bgolden@netscape.com, dbi-users@fugue.com, jposner@clark.net
Subject: Re: Another memory leak??
Cc: spari@ix.netcom.com, 0004914989@mcimail.com
X-Sun-Charset: US-ASCII
content-length: 1606
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Jeff Posner <jposner@clark.net>
> 
> Can someone confirm this memory leak and provide a fix.

Once instant confirmation and fix coming up...

> I just
> don't know dbd/dbi at this level :-(.  The leak is approximately one
> memory page per 8 cyles and only happens with ora_titles, ora_lengths or
> ora_types is called.
> 
> Thanks, 
> Jeff
> 
> perl 5.002
> DBI-69
> DBD-29
> GCC 2.7.2
> Solaris 2.4
> 
> #!/usr/local/bin/perl
> use Oraperl;
>  
> $hDB = ora_login('your_db', 'your_user/your_pw', '') || die ;
>  
> while (1) {
>     $csr=ora_open($hDB, 'select * from demand where ded_id=-1');
>     @titles=ora_titles($csr);  # THIS CAUSES A LEAK
>     printf "%d\n", $i++;
> }

Thanks for the clear message and simple test case.

Here's the patch... *just* in time for DBD::Oracle 0.31.

*** 1.16	1996/05/20 21:29:58
--- dbdimp.c	1996/05/20 23:35:20
***************
*** 903,909 ****
  	return Nullsv;
      }
      if (cacheit) { /* cache for next time (via DBI quick_FETCH)	*/
! 	hv_store((HV*)SvRV(sth), key, kl, retsv, 0);
  	(void)SvREFCNT_inc(retsv);	/* so sv_2mortal won't free it	*/
      }
      return sv_2mortal(retsv);
--- 903,911 ----
  	return Nullsv;
      }
      if (cacheit) { /* cache for next time (via DBI quick_FETCH)	*/
! 	SV **svp = hv_fetch((HV*)SvRV(sth), key, kl, 1);
! 	sv_free(*svp);
! 	*svp = retsv;
  	(void)SvREFCNT_inc(retsv);	/* so sv_2mortal won't free it	*/
      }
      return sv_2mortal(retsv);

Phew! 30 minute turn around from leak report to patch. Must be a record.

(I'd forgotten that hv_store doesn't increment the refcount of the stored SV.)

Tim.
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <26249-1@oink>;
          Tue, 21 May 1996 08:06:02 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832662198:13288:1; Tue, 21 May 96 08:03:18 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa12986; 21 May 96 8:02 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id XAA18940 for dbi-users-real; Mon, 20 May 1996 23:56:46 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from auspex-gw.auspex.com (auspex-gw.auspex.com [144.48.1.1]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id XAA18936 
          for <dbi-users@fugue.com>; Mon, 20 May 1996 23:56:46 -0700
Received: from nova.auspex.fr ([194.2.216.2]) 
          by auspex-gw.auspex.com (8.6.12/8.6.12) with ESMTP id XAA24795;
          Mon, 20 May 1996 23:56:39 -0700
Received: (from kstock@localhost) by nova.auspex.fr (8.6.9/8.6.9) id IAA00809;
          Tue, 21 May 1996 08:56:50 +0200
Date: Tue, 21 May 1996 08:56:50 +0200
Message-Id: <199605210656.IAA00809@nova.auspex.fr>
To: chawla@NIEHS.NIH.GOV
Subject: Re: Oraperl on Windows95
Cc: dbi-users@fugue.com
From: KStock@auspex.com (Kevin Stock)
Organisation: Auspex Systems European Technical Support Centre
Phone: +33 1 46 29 99 37
Reply-To: KStock@auspex.com

Hello Harpreet,

>         A while ago you had answered my question. Thank you so much for that.
> I could not download Oraperl before, I am trying to do it now. I am sure now
> there are ample of choices on Unix -- Perl5, DBD, DBI, etc. But the problem is
> I am using Oracle7 on Windows 95. I could successfully install and test Perl32,
> which is probably Perl4 for windows.
>         After significant search I am reaching to a conclusion that Oraperl 
> is NOT
> available for Windows95. Do you think it is a correct conclusion?
>         Secondly, do you think Perl5 route has a solution to access Oracle7
> on Windows95?

I don't know of an implementation of either Oraperl or DBI/DBD for Win95.
I believe that Oraperl has been compiled under Windows NT, but I don't
know where it's available. If you can't find it in ftp.demon.co.uk, then
it probably doesn't exist.

I'll CC this to the DBI users' list in case someone knows of a solution.

	Kevin
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26688-0@oink>;
          Tue, 21 May 1996 09:16:57 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832664646:29042:1; Tue, 21 May 96 08:44:06 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa28008; 21 May 96 8:42 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id AAA18989 for dbi-users-real; Tue, 21 May 1996 00:35:09 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from flood.xnet.com (flood.xnet.com [198.147.221.35]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id AAA18985 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 00:35:08 -0700
Received: from tidalwave.xnet.com by flood.xnet.com (8.7/XNet-1.4R) with SMTP 
          id CAA06284 for <dbi-users@fugue.com>;
          Tue, 21 May 1996 02:32:24 -0500 (CDT)
Received: by tidalwave.xnet.com (SMI-8.6/SMI-SVR4) id CAA04347;
          Tue, 21 May 1996 02:31:32 -0500
From: brianv@xnet.com (Brian Vargyas)
Message-Id: <199605210731.CAA04347@tidalwave.xnet.com>
Subject: DBD Informix Problems
To: dbi-users@fugue.com
Date: Tue, 21 May 1996 02:31:32 -0500 (CDT)
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

I've been trying to get DBD-Informix to work with unsuccessful results.  I
can't seem to get past the compilation stage.  Perl 5.002 works fine, DBI
compiles and seems to be okay, but DBD-Informix, no go.  Here is a little
debug output:

----- START DEBUG -----
tidalwave:/usr/local/gnu/src/perl/DBD-Informix-0.20pl1# perl test.pl
DynaLoader.pm loaded (../../lib ./lib /usr/local/gnu/lib/perl5/sun4-solaris/5.00
2 /usr/local/gnu/lib/perl5 /usr/local/gnu/lib/perl5/site_perl/sun4-solaris /usr/
local/gnu/lib/perl5/site_perl /usr/local/gnu/lib/perl5/sun4-solaris ., /usr/loca
l/lib /lib /usr/lib /usr/ccs/lib)
DynaLoader::bootstrap for DBI (auto/DBI/DBI.so)
DynaLoader::bootstrap for DBD::Informix (auto/DBD/Informix/Informix.so)
install_driver(Informix) failed: Can't load '/usr/local/gnu/lib/perl5/site_perl/
sun4-solaris/auto/DBD/Informix/Informix.so' for module DBD::Informix: ld.so.1: p
erl: fatal: relocation error: symbol not found: get_protocol_tab: referenced in
/usr/local/gnu/lib/perl5/site_perl/sun4-solaris/auto/DBD/Informix/Informix.so at
 /usr/local/gnu/lib/perl5/DynaLoader.pm line 140.

 at /usr/local/gnu/lib/perl5/site_perl/DBD/Informix.pm line 18
        DBI::install_driver called at test.pl line 10
Testing: DBI->install_driver( 'Informix' ): tidalwave:/usr/local/gnu/src/perl/DB
D-Informix-0.20pl1#
------ END DEBUG -------

Any ideas on this one?

Looks to be a problem with a symbol not being found.

I've used SUN's Pro C compiler to do all the perl compiles.

- Brian
-- 
Brian Vargyas                  | XNet Information Systems
Network Operations Engineer    | A Full Service Internet Provider
brianv@xnet.com                | For Information, Email info@xnet.com
(708) 983-6064 (Voice)         | http://www.xnet.com/~brianv   
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26912-4@oink>;
          Tue, 21 May 1996 09:48:02 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832667388:25919:5; Tue, 21 May 96 09:29:48 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25578; 21 May 96 9:29 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id BAA19047 for dbi-users-real; Tue, 21 May 1996 01:25:35 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from elm.ncs.com.sg (elm.ncs.com.sg [203.116.16.17]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id BAA19043 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 01:25:33 -0700
Received: (from appatr@localhost) by elm.ncs.com.sg (8.7.3/8.7.3) id QAA21684;
          Tue, 21 May 1996 16:20:26 +0800 (SGT)
Date: Tue, 21 May 1996 16:20:26 +0800 (SGT)
From: Appat Ramesh <appatr@ncs.com.sg>
To: dbi-users@fugue.com
Subject: Problem with compiling "DBD::Makefile"
Message-ID: <Pine.SOL.3.91.960521161418.21494A-100000@elm>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


Hello !

I am having some problem in compiling the DBD-> Makefile.PL.
There is absolutely no problem with the DBI installation.

When I say "perl Makefile.PL", I am getting the following messages :-

----------------------------------------------------------------------

Configuring DBD::Oracle ...

        Remember to actually read the README file!

Using Oracle in /usr/local/oracle
Oracle sysliblist: -lsocket -lnsl -lm -ldl -laio
Unable to locate proc.mk (use -m /path/to/proc.mk to specify)
======================================================================

Is there any restriction on the version of Oracle. We are using Oracle 
7.0 and I searched for this "proc.mk" and it was not found.

Will this fault in compilation lead to core dump or bus error?

Because, I was able to compile Makefile.PL using some other alternative 
but the "make test.pl" gives a core dump at the end before the Perl 
program exits.

Can u please find what the problem is let me know of the version of 
Oracle I am supposed to use with DBI v0.69 and DBD v0.29?

Thanking U all.


------------------------------------------------------------------------




A. Ramesh
National Computer Systems Pvt Ltd,
Singapore

Res:-
Block 804, #02-4303,
Yishun Ring Road,
Singapore - 760804
Phone number :- 7593642



---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27489-0@oink>;
          Tue, 21 May 1996 10:49:55 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832670737:29118:1; Tue, 21 May 96 10:25:37 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa28256; 21 May 96 10:24 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id CAA19103 for dbi-users-real; Tue, 21 May 1996 02:20:13 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from elm.ncs.com.sg (elm.ncs.com.sg [203.116.16.17]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id CAA19099 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 02:20:11 -0700
Received: from ncsgw.ncs.com.sg ([203.116.16.23]) 
          by elm.ncs.com.sg (8.7.3/8.7.3) with SMTP id RAA23465;
          Tue, 21 May 1996 17:15:10 +0800 (SGT)
Received: by ncsgw.ncs.com.sg with Microsoft Mail 
          id <31A25F3A@ncsgw.ncs.com.sg>; Tue, 21 May 96 17:26:34 PDT
From: APPAT RAMESH SWC NCS <appatr@ncspo2.ncs.com.sg>
To: "'chawla@NIEHS.NIH.GOV'" <chawla@NIEHS.NIH.GOV>
Cc: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: Problem with DBD : Makefile.PL
Date: Tue, 21 May 96 17:16:00 PDT
Message-ID: <31A25F3A@ncsgw.ncs.com.sg>
Encoding: 28 TEXT
X-Mailer: Microsoft Mail V3.0


Hello,

I just started working on the Perl Interface just couple of days back. I   
downloaded the software (Interface and the driver) from the site and   
installed it. I didn't have any problem installing the DBI modules and   
the things were absolutely smooth but DBD : Makefile.PL seems to be   
giving problems.

Is there any constraint in using the version of Oracle for DBI ver 0.69   
and DBD 0.29. Because the Makefile.PL searches for a particular file   
called "proc.mk" in the Oracle path and its not getting it. I am using   
Oracle 7.0.

Moreover, I tried some other alternative and installed DBD to the server   
but then the "make test" fails giving a "Bus error (core dump)".

The interface functions are properly called in the Perl script but just   
before the exit function it gives a core dump.

If u have any suggestion or solution to this problem u are welcome.

Thanking u in anticipation.

Ramesh



---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28168-2@oink>;
          Tue, 21 May 1996 12:12:50 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832676372:26186:2; Tue, 21 May 96 11:59:32 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25084; 21 May 96 11:58 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id DAA19270 for dbi-users-real; Tue, 21 May 1996 03:52:55 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from otto.bf.rmit.edu.au (orafaq@otto.bf.rmit.edu.au [131.170.195.1]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id DAA19266 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 03:52:52 -0700
Received: (from orafaq@localhost) by otto.bf.rmit.edu.au (8.7.1/8.7.1) 
          id UAA00604 for dbi-users@fugue.com;
          Tue, 21 May 1996 20:52:39 +1000 (EST)
From: Oracle FAQ <orafaq@bf.rmit.edu.au>
Message-Id: <199605211052.UAA00604@otto.bf.rmit.edu.au>
Subject: Re: Oraperl on Windows95 / NT
To: dbi-users@fugue.com
Date: Tue, 21 May 1996 20:52:38 +1000 (EST)
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Forwarded message:
> Subject: Re: Oraperl on Windows95
> Cc: dbi-users@fugue.com
> From: KStock@auspex.com (Kevin Stock)
> Organisation: Auspex Systems European Technical Support Centre
> Phone: +33 1 46 29 99 37
> 
> I don't know of an implementation of either Oraperl or DBI/DBD for Win95.
> I believe that Oraperl has been compiled under Windows NT, but I don't
> know where it's available. If you can't find it in ftp.demon.co.uk, then
> it probably doesn't exist.
> 
> I'll CC this to the DBI users' list in case someone knows of a solution.
> 
> 	Kevin
A version of Oraperl (perl 4.036 for NT) patched for Oracle 7.x, which
I have successfully used against Oracle 7.2 on NT is available in the
Oracle FAQ archives.  You can get it from:
	ftp://ftp.bf.rmit.edu.au/pub/Oracle/OS/MS/NT/ntoraperl.zip

I am expecting someone to send a perl5/DBI Oracle to me to the archives,
but he has had some personal problems.

If anyone has made up a copy of oraperl for 95, or DBI/Oracle/perl5 for
NT or 95, could you please send them to me and I can make them available
in the archives as well.  I'm flat out working at my REAL job, preparing
for another major rework of the FAQ (http://www.bf.rmit.edu.au/OracleFAQ),
and have Buckley's of making up a version for you all - mainly because
I won't be getting a recent MSVC--.

You can place them in ftp://ftp.bf.rmit.edu.au/incoming/oracle and
mail me to let me know its coming.  Alternatively, mail it in uuencoded
form.

My mail address (for Oracle FAQ stuff) is orafaq@bf.rmit.edu.au

I've also put a quick cut of a CGI script I find useful using oraperl
and hip perl-32 to document tables:

ftp://ftp.bf.rmit.edu.au/pub/Oracle/sources/web/scripts/tbldef.zip

I'm no perl guru, but it works even with EMWAC https.

Regards
David T. Bath
orafaq@bf.rmit.edu.au
.


---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <28460-0@oink>;
          Tue, 21 May 1996 12:53:29 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832677922:16442:3; Tue, 21 May 96 12:25:22 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa15856; 21 May 96 12:24 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id EAA19359 for dbi-users-real; Tue, 21 May 1996 04:21:53 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id EAA19355 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 04:21:47 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ac10252; 21 May 96 12:19 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ac20886; 21 May 96 12:13 +0100
Received: from toad by oink with SMTP (PP) id <28100-0@oink>;
          Tue, 21 May 1996 11:48:32 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA05838;
          Tue, 21 May 1996 11:48:22 +0000
Date: Tue, 21 May 1996 11:48:22 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605211048.AA05838@toad.ig.co.uk>
To: dbi-users@fugue.com, appatr@ncs.com.sg
Subject: Re: Problem with compiling "DBD::Makefile"
X-Sun-Charset: US-ASCII
content-length: 1001
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Appat Ramesh <appatr@ncs.com.sg>
> 
> Using Oracle in /usr/local/oracle
> Oracle sysliblist: -lsocket -lnsl -lm -ldl -laio
> Unable to locate proc.mk (use -m /path/to/proc.mk to specify)
> ======================================================================
> 
> Is there any restriction on the version of Oracle. We are using Oracle 
> 7.0 and I searched for this "proc.mk" and it was not found.

Try giving the full patch to oracle.mk (I forget which directory it's in).
No promises.

> Will this fault in compilation lead to core dump or bus error?
> 
> Because, I was able to compile Makefile.PL using some other alternative 
> but the "make test.pl" gives a core dump at the end before the Perl 
> program exits.

"some other alternative" means nothing to me so I can't comment.

> Can u please find what the problem is let me know of the version of 
> Oracle I am supposed to use with DBI v0.69 and DBD v0.29?

Oracle 7.0 is _very_ old and fairly buggy. Oracle's up to 7.3 now.

Tim.
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <28484-0@oink>;
          Tue, 21 May 1996 12:58:22 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832679658:03824:2; Tue, 21 May 96 12:54:18 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa03483; 21 May 96 12:53 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id EAA19431 for dbi-users-real; Tue, 21 May 1996 04:45:51 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id EAA19427 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 04:45:47 -0700
Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) 
          id MAA18828; Tue, 21 May 1996 12:38:32 +0100
From: Alligator Descartes <descarte@hermetica.com>
Message-Id: <199605211138.MAA18828@fruitbat.mcqueen.com>
Subject: Re: DBD Informix Problems
To: brianv@xnet.com (Brian Vargyas)
Date: Tue, 21 May 1996 12:38:31 +0100 (BST)
Cc: dbi-users@fugue.com
In-Reply-To: <199605210731.CAA04347@tidalwave.xnet.com> from "Brian Vargyas" at May 21, 96 02:31:32 am
X-Pants: ** The return address of this email should be: descarte@hermetica.com
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 1968


> I've been trying to get DBD-Informix to work with unsuccessful results.  I
> can't seem to get past the compilation stage.  Perl 5.002 works fine, DBI
> compiles and seems to be okay, but DBD-Informix, no go.  Here is a little
> debug output:
> 
> ----- START DEBUG -----
> tidalwave:/usr/local/gnu/src/perl/DBD-Informix-0.20pl1# perl test.pl
> DynaLoader.pm loaded (../../lib ./lib /usr/local/gnu/lib/perl5/sun4-solaris/5.00
> 2 /usr/local/gnu/lib/perl5 /usr/local/gnu/lib/perl5/site_perl/sun4-solaris /usr/
> local/gnu/lib/perl5/site_perl /usr/local/gnu/lib/perl5/sun4-solaris ., /usr/loca
> l/lib /lib /usr/lib /usr/ccs/lib)
> DynaLoader::bootstrap for DBI (auto/DBI/DBI.so)
> DynaLoader::bootstrap for DBD::Informix (auto/DBD/Informix/Informix.so)
> install_driver(Informix) failed: Can't load '/usr/local/gnu/lib/perl5/site_perl/
> sun4-solaris/auto/DBD/Informix/Informix.so' for module DBD::Informix: ld.so.1: p
> erl: fatal: relocation error: symbol not found: get_protocol_tab: referenced in
> /usr/local/gnu/lib/perl5/site_perl/sun4-solaris/auto/DBD/Informix/Informix.so at
>  /usr/local/gnu/lib/perl5/DynaLoader.pm line 140.
> 
>  at /usr/local/gnu/lib/perl5/site_perl/DBD/Informix.pm line 18
>         DBI::install_driver called at test.pl line 10
> Testing: DBI->install_driver( 'Informix' ): tidalwave:/usr/local/gnu/src/perl/DB
> D-Informix-0.20pl1#
> ------ END DEBUG -------
> 
> Any ideas on this one?
> 
> Looks to be a problem with a symbol not being found.
> 
> I've used SUN's Pro C compiler to do all the perl compiles.

What version of Informix are you running?

Have you tried setting INFORMIXC to point at your C compiler? 

Failing that, run 'nm' over your Informix libraries and let me know where
'get_protocol_tab' is mentioned.

> - Brian

-- 
Alligator Descartes	|       Nexus - Multi-User Virtual Reality 
Anathematician		|         http://www.hermetica.com/nexus
descarte@hermetica.com	| Muse of the Day: "Juliette" - Marquis de Sade
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28607-0@oink>;
          Tue, 21 May 1996 13:04:35 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832680029:04180:2; Tue, 21 May 96 13:00:29 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa03574; 21 May 96 13:00 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id EAA19451 for dbi-users-real; Tue, 21 May 1996 04:54:22 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id EAA19447 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 04:54:17 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ab13665; 21 May 96 12:53 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa00235; 21 May 96 12:53 +0100
Received: from toad by oink with SMTP (PP) id <28390-0@oink>;
          Tue, 21 May 1996 12:33:49 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA05962;
          Tue, 21 May 1996 12:33:41 +0000
Date: Tue, 21 May 1996 12:33:41 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605211133.AA05962@toad.ig.co.uk>
To: dbi-users@fugue.com, orafaq@bf.rmit.edu.au
Subject: Re: Oraperl on Windows95 / NT
Cc: descarte@hermetica.com
X-Sun-Charset: US-ASCII
content-length: 1773
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Oracle FAQ <orafaq@bf.rmit.edu.au>
> 
> > From: KStock@auspex.com (Kevin Stock)
> > 
> > I don't know of an implementation of either Oraperl or DBI/DBD for Win95.
> > I believe that Oraperl has been compiled under Windows NT, but I don't
> > know where it's available. If you can't find it in ftp.demon.co.uk, then
> > it probably doesn't exist.

> A version of Oraperl (perl 4.036 for NT) patched for Oracle 7.x, which
> I have successfully used against Oracle 7.2 on NT is available in the
> Oracle FAQ archives.  You can get it from:
> 	ftp://ftp.bf.rmit.edu.au/pub/Oracle/OS/MS/NT/ntoraperl.zip
> 
> I am expecting someone to send a perl5/DBI Oracle to me to the archives,
> but he has had some personal problems.
> 
> If anyone has made up a copy of oraperl for 95, or DBI/Oracle/perl5 for
> NT or 95, could you please send them to me and I can make them available
> in the archives as well.  I'm flat out working at my REAL job, preparing
> for another major rework of the FAQ (http://www.bf.rmit.edu.au/OracleFAQ),
> and have Buckley's of making up a version for you all - mainly because
> I won't be getting a recent MSVC--.
> 
> You can place them in ftp://ftp.bf.rmit.edu.au/incoming/oracle and
> mail me to let me know its coming.  Alternatively, mail it in uuencoded
> form.
> 
> My mail address (for Oracle FAQ stuff) is orafaq@bf.rmit.edu.au
> 
> I've also put a quick cut of a CGI script I find useful using oraperl
> and hip perl-32 to document tables:
> 
> ftp://ftp.bf.rmit.edu.au/pub/Oracle/sources/web/scripts/tbldef.zip

Thanks for the info! (I wish I'd been collecting all this info over the
last few months but I've not had the time. I'm really glad you have.)

Alligator, can you add this information and links to your DBI web pages?

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28901-2@oink>;
          Tue, 21 May 1996 14:34:24 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832684206:17536:3; Tue, 21 May 96 14:10:06 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa15073; 21 May 96 14:09 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id FAA19644 for dbi-users-real; Tue, 21 May 1996 05:58:36 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from elmer.tsc.com (elmer.tsc.com [149.97.1.25]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id FAA19640 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 05:58:33 -0700
Message-Id: <199605211258.FAA19640@toccata.fugue.com>
Received: from localhost by elmer.tsc.com with SMTP (1.37.109.16/16.2) 
          id AA294763578; Tue, 21 May 1996 07:59:38 -0500
To: dbi-users@fugue.com
Subject: Oracle DBD works great on HP-UX 9.x
Date: Tue, 21 May 96 07:59:38 -0400
From: Glenn Goldstein <goldy@elmer.tsc.com>

Just a quick thanks to Tim and the other contributors for the
perl5/Oracle interface.  I think it's a great way to prototype apps that
we build using embedded SQL from C.

I hope that we can convert these C apps to Perl once DBI/DBD is past the
alpha/beta-release stage.

BTW, I originally had trouble installing Oracle DBD.  I'm not certain if
the install finally worked because of improvements to the latest
versions of DBI and DBD, or because gcc was installed shortly before our
successful DBD installation.

We use Perl/Oracle for WEB apps.  This allows us to quickly build WEB
sites which use an Oracle database.  They're not amazingly fast, but
they scale quite well.  Now, if we only had 'stateful' HTTP sessions so we only had
to do one Oracle login per session, instead of one per page <sigh>.

Thanks for the great work!



 ____________________________GLENN GOLDSTEIN_____________________________
|                     Technology Service Corporation                     |
|  ggoldstein@tsc.com                     http://www.tsc.com/~goldy      |
|_ Voice:__(812) 336-7576_________________Fax:__(812) 336-7735___________|
relax             breath           feel the ground        do nothing extra
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28952-0@oink>;
          Tue, 21 May 1996 14:44:46 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832686167:07960:2; Tue, 21 May 96 14:42:47 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa05717; 21 May 96 14:42 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id GAA19762 for dbi-users-real; Tue, 21 May 1996 06:34:53 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from tom.compulink.co.uk (tom.compulink.co.uk [194.153.0.51]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id GAA19758 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 06:34:49 -0700
Received: (from root@localhost) by tom.compulink.co.uk (8.6.9/8.6.9) 
          id OAA27712 for dbi-users@fugue.com; Tue, 21 May 1996 14:34:15 +0100
Date: Tue, 21 May 96 14:33 BST-1
From: richardd@cix.compulink.co.uk (Richard Donkin)
Subject: Re: Oraperl on Windows95
To: KStock@auspex.com, chawla@NIEHS.NIH.GOV
Cc: richardd@cix.compulink.co.uk, dbi-users@fugue.com
Reply-To: richardd@cix.compulink.co.uk
Message-Id: <memo.550220@cix.compulink.co.uk>

In-Reply-To: <199605210656.IAA00809@nova.auspex.fr>
> Hello Harpreet,
> 
> >         A while ago you had answered my question. Thank you so much 
> > for that.
> > I could not download Oraperl before, I am trying to do it now. I am 
> > sure now
> > there are ample of choices on Unix -- Perl5, DBD, DBI, etc. But the 
> > problem is
> > I am using Oracle7 on Windows 95. I could successfully install and 
> > test Perl32,
> > which is probably Perl4 for windows.
> >         After significant search I am reaching to a conclusion that 
> > Oraperl is NOT
> > available for Windows95. Do you think it is a correct conclusion?
> >         Secondly, do you think Perl5 route has a solution to access 
> > Oracle7
> > on Windows95?
> 
> I don't know of an implementation of either Oraperl or DBI/DBD for 
> Win95.
> I believe that Oraperl has been compiled under Windows NT, but I don't
> know where it's available. If you can't find it in ftp.demon.co.uk, then
> it probably doesn't exist.
> 
> I'll CC this to the DBI users' list in case someone knows of a solution.
> 
>       Kevin

I recently had a look  at this in the context of Sybase on NT - it turns 
out that the only currently available solution I could find is ODBC.pm, 
file called ntodbc*.zip on CPAN under dbperl somewhere.   As long as you 
use 32 bit drivers for ODBC you should be OK with this.  I haven't used 
DBI/DBD so I can't comment on how it compares in API and functionality, 
but it does let you retrieve and manipulate arbitrary tables quite easily.

There is also a package called iodbc-wwwtools which creates a separate 
process for each ODBC request, which is likely to be somewhat slow.

Richard
--
richardd@cix.compulink.co.uk | PGP key: pgp-public-keys@keys.pgp.net
Inside Edge Consultancy Ltd  | Web: http://www.inside-edge.co.uk/

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28985-0@oink>;
          Tue, 21 May 1996 14:55:18 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832686623:12658:1; Tue, 21 May 96 14:50:23 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa11606; 21 May 96 14:49 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id GAA19783 for dbi-users-real; Tue, 21 May 1996 06:42:01 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id GAA19778 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 06:40:29 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id ag02002; 21 May 96 13:39 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa25601; 21 May 96 14:38 +0100
Received: from toad by oink with SMTP (PP) id <28924-0@oink>;
          Tue, 21 May 1996 14:37:58 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA06334;
          Tue, 21 May 1996 14:37:50 +0000
Date: Tue, 21 May 1996 14:37:50 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605211337.AA06334@toad.ig.co.uk>
To: dbi-users@fugue.com, appatr@ncs.com.sg
Subject: Re: Problem with compiling "DBD::Makefile"
X-Sun-Charset: US-ASCII
content-length: 436
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Tim Bunce <Tim.Bunce@ig.co.uk>
> 
> > From: Appat Ramesh <appatr@ncs.com.sg>
> > 
> > Unable to locate proc.mk (use -m /path/to/proc.mk to specify)
> > 
> > Is there any restriction on the version of Oracle. We are using Oracle 
> > 7.0 and I searched for this "proc.mk" and it was not found.
> 
> Try giving the full patch to oracle.mk (I forget which directory it's in).
> No promises.

Ooops, s/full patch/full path/;

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00281-5@oink>;
          Tue, 21 May 1996 17:03:12 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832691824:06976:0; Tue, 21 May 96 16:17:04 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa06285; 21 May 96 16:15 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa04721; 21 May 96 16:14 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id IAA19955 for dbi-users-real; Tue, 21 May 1996 08:09:00 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bdm.com (firewall-user@bdmgate.bdm.com [158.114.228.10]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id IAA19951 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 08:08:58 -0700
Received: by bdm.com; id KAA05150; Tue, 21 May 1996 10:36:12 -0400
Received: from lan.mcl.bdm.com(158.114.17.254) by bdmgate.bdm.com 
          via smap (V3.1) id xma005110; Tue, 21 May 96 10:35:57 -0400
Received: from BDM-Message_Server by lan.mcl.bdm.com with Novell_GroupWise;
          Tue, 21 May 1996 11:10:05 -0500
Message-Id: <s1a1a48d.025@lan.mcl.bdm.com>
X-Mailer: Novell GroupWise 4.1
Date: Tue, 21 May 1996 11:09:27 -0500
From: Hoa Nguyenkhoa <HNguyenk@bdm.com>
To: dbi-users@fugue.com
Cc: tim.bunce@ig.co.uk
Subject: ORAPERL 2-4, PERL5, HP-UX 10.01, DBI-69, DBD-30, and ORacle 7.2 
         -Forwarded

Hi,
Try to resend the message.

If you got it, pleased disregard it.

Thanks,

HOA

Date: Tue, 21 May 1996 09:57:38 -0500
From: Hoa Nguyenkhoa <HNguyenk@lan.mcl.bdm.com>
To: dbi-user@fugue.com
Cc: Tim.Bunce@ig.co.uk
Subject: ORAPERL 2-4, PERL5, HP-UX 10.01, DBI-69, DBD-30, and ORacle
	7.2

Hi,

I still could not install oraperl or DBperl for HP-UX 10.01 with Oracle 7.2.

I got the message from Mr. T. Bunce to modify Makefile.PL.  Which
Makefile.PL is required to modify.  There are several Makefile.PL for
DBperl, Perl5, DBI, and Oraperl.  

Please help me tofollow  which sequence I need to install either DBperl
or Oraperl for HP-UX 10.01 and Oracle 7.2.

Thank you very much,

HOA

PS:
I can access to www, but I am restricted to talk on www (company
policy) for sending message to newsgroup.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00325-0@oink>;
          Tue, 21 May 1996 17:06:31 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832694502:05445:7; Tue, 21 May 96 17:01:42 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa05250; 21 May 96 17:01 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa11676; 21 May 96 16:59 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id IAA20095 for dbi-users-real; Tue, 21 May 1996 08:48:06 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from uucp-1.csn.net (uucp-1.csn.net [199.117.27.26]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id IAA20091 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 08:48:03 -0700
Received: from bigbtu.UUCP (uucp@localhost) by uucp-1.csn.net (8.7.5/8.7.3) 
          with UUCP id JAA17192 for dbi-users@fugue.com;
          Tue, 21 May 1996 09:47:57 -0600 (MDT)
Received: from intrepid.resdata.com by resdata.com (4.1/SMI-4.1) id AA02071;
          Tue, 21 May 96 08:14:17 GMT
Received: from INTREPID/SpoolDir by intrepid.resdata.com (Mercury 1.21);
          21 May 96 08:50:03 MST
Received: from SpoolDir by INTREPID (Mercury 1.21); 21 May 96 08:49:40 MST
Received: from jlien by intrepid.resdata.com (Mercury 1.21);
          21 May 96 08:49:31 MST
Received: by jlien with Microsoft Mail id <01BB46F2.6B90C3E0@jlien>;
          Tue, 21 May 1996 08:49:28 -0600
Message-Id: <01BB46F2.6B90C3E0@jlien>
From: John K Lien <jlien@intrepid.resdata.com>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: examples and doc for DBD-Oracle
Date: Tue, 21 May 1996 08:49:17 -0600
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Recently we successfully downloaded, complied and installed Perl 5.002, =
DBD-Oracle 0.29 and DBI 0.69.  We have simple scripts working just fine. =
 We'd like to figure out the full potential of the Oracle-Perl =
interface, but I'm having problems locating substantial examples and =
documentation.  My apologies if the following questions have been asked, =
but after searching the hermetica web site, the above distributions, and =
perusing the archive logs for this list, I've not found what I'm after.  =
If someone could direct me to sites that might offer answers to the =
following, I would greatly appreciate it.

1)  I have used and learned from the examples Tim Bunce put in the =
oraperl.ex directory of the DBD-Oracle-0.29 distribution.  Is there a =
site that has additional, more complicated examples?

2) The web page, =
http://www.hermetica.com/technologia/DBI/doc/dbispec/index.html, says =
that  the spec it illustrates (DBI v0.6) is out of date.  Where can I =
locate a current spec?  Or perhaps a complete list of available =
functions for oraperl or DBI?

3) I've seen the following items mentioned - oraperl, oraperl emulation =
layer, DBI, Tim's "New Directions" announcement and I've been trying to =
sort them out.  Are all of these in use and progressing or are some on =
their way out?  How similar (or different) are (or will be) the database =
function calls in a Perl script between these items?
=20
Thanks.------------------------------------------------------------------=
-------------
John K. Lien
Systems Services=20
Resource Data International
Boulder, CO, USA
Tel: 303.444.7788
Fax: 303.444.1286
jlien@resdata.com
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00417-0@oink>;
          Tue, 21 May 1996 17:12:26 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832695058:11166:2; Tue, 21 May 96 17:10:58 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa11028; 21 May 96 17:10 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id JAA20178 for dbi-users-real; Tue, 21 May 1996 09:03:29 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from colossus.cse.psu.edu (root@colossus.cse.psu.edu [130.203.1.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id JAA20174 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 09:03:26 -0700
Received: from localhost by colossus.cse.psu.edu with SMTP id <79021>;
          Tue, 21 May 1996 12:03:17 -0400
X-Mailer: exmh version 1.6.5 12/11/95
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Glenn Goldstein <goldy@elmer.tsc.com>
cc: dbi-users@fugue.com
Subject: Re: Oracle DBD works great on HP-UX 9.x
In-reply-to: Your message of "Tue, 21 May 1996 07:59:38 EDT." <199605211258.FAA19640@toccata.fugue.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 21 May 1996 12:01:34 -0400
From: John D Groenveld <groenvel@cse.psu.edu>
Message-Id: <96May21.120317edt.79021@colossus.cse.psu.edu>

> We use Perl/Oracle for WEB apps.  This allows us to quickly build WEB
> sites which use an Oracle database.  They're not amazingly fast, but
> they scale quite well.  Now, if we only had 'stateful' HTTP sessions so we only had
> to do one Oracle login per session, instead of one per page <sigh>.

Use scott/tiger to create a public database user. Create a daemon for scott to keep a connection open with database and accept statements from your CGI/DB apps.
Is this what you envision? Its coming soon to a server near you!
John

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02469-0@oink>;
          Wed, 22 May 1996 07:06:06 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832696366:24992:6; Tue, 21 May 96 17:32:46 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa24850; 21 May 96 17:32 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id FAA19534 for dbi-users-real; Tue, 21 May 1996 05:20:16 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id FAA19530 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 05:20:10 -0700
Received: by relay-4.mail.demon.net id ab19775; 21 May 96 12:18 GMT
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id ae08312; 21 May 96 11:13 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa20886; 21 May 96 12:12 +0100
Received: from toad by oink with SMTP (PP) id <28060-0@oink>;
          Tue, 21 May 1996 11:32:24 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA05770;
          Tue, 21 May 1996 11:32:15 +0000
Date: Tue, 21 May 1996 11:32:15 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605211032.AA05770@toad.ig.co.uk>
To: dbi-users@fugue.com, appatr@ncs.com.sg
Subject: Re: Problem!!
X-Sun-Charset: US-ASCII
content-length: 521
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Appat Ramesh <appatr@ncs.com.sg>
> 
> Hello,
> 
> I have successfully installed the DBI and DBD in the oracle server but it 
> seems to give a small problem.
> 
> When I do "make test" it does everything properly except in the end it 
> gives "Bus error (Core dump)". 
> 
> I wrote a sample program which just installs the driver, connects to the 
> server database, disconnets and exists.
> 
> It gives the same problem here too.

Please read the README and do what it says. (That's what it's there for!)

Tim.
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <02471-1@oink>;
          Wed, 22 May 1996 07:06:16 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832695755:24435:3; Tue, 21 May 96 17:22:35 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa23831; 21 May 96 17:21 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id JAA20264 for dbi-users-real; Tue, 21 May 1996 09:17:20 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from ben.britain.eu.net (ben.Britain.EU.net [192.91.199.254]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id JAA20257 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 09:17:03 -0700
Received: from fennel.compnews.co.uk by ben.britain.eu.net via UKIP 
          with SMTP (PP) id <sg.28128-0@ben.britain.eu.net>;
          Tue, 21 May 1996 17:16:35 +0100
Received: from cardamom.compnews.co.uk by fennel.compnews.co.uk;
          Tue, 21 May 96 17:16:13 BST
Received: from hamlet.slk.press.net by cardamom.compnews.co.uk;
          Tue, 21 May 96 17:16:09 BST
Received: from lear (lear.slk.press.net) by hamlet.slk.press.net;
          Tue, 21 May 96 17:16:05 BST
Message-Id: <31A1EC43.48A9@pasport.press.net>
Date: Tue, 21 May 1996 17:16:03 +0100
From: Paul Denny <pauld@slk.press.net>
Organization: Press Association Sport
X-Mailer: Mozilla 3.0b3 (X11; I; SunOS 5.4 sun4m)
Mime-Version: 1.0
To: Alligator Descartes <descarte@hermetica.com>
Cc: dbi-users@fugue.com
Subject: Re: DBD Informix Problems (Solaris 2.4 - Informix 7.12 UC1 - Perl 
         5.002)
References: <199605211138.MAA18828@fruitbat.mcqueen.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Same sort of problem as Brian Vargyas ? But ASF_SigSwitch is the symbol not found.  

System: perl5.002 sunos lear 5.4 generic_101945-34 sun4m sparc  sun4-solaris dl_dlopen.xs Informix 7.12 UC1

INFORMIXC=gcc

nm finds :

Symbols from /usr/informix/lib/netlib.a[spipe.o]:
[77]    |      3728|     172|FUNC |GLOB |0    |2      |ASF_SigSwitch

Symbols from /usr/informix/lib/libasf.a[asfinit.o]:
[86]    |      4232|     208|FUNC |GLOB |0    |2      |ASF_SigSwitch

Symbols from /usr/informix/lib/esql/libsql.a[iqconnct.o]:
[111]   |         0|       0|NOTY |GLOB |0    |UNDEF  |ASF_SigSwitch

----- START DEBUG ------
PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib -I/usr/local/lib/perl5/sun4-solaris/5.002 -I/usr/local/lib/perl5 test.pl
install_driver(Informix) failed: Can't load './blib/arch/auto/DBD/Informix/Informix.so' for module DBD::Informix: ld.so.1:
/usr/bin/perl: fatal: relocation error: symbol not found: ASF_SigSwitch: referenced in ./blib/arch/auto/DBD/Informix/Informix.so at
/usr/local/lib/perl5/DynaLoader.pm line 140.
 
 at blib/lib/DBD/Informix.pm line 18
        DBI::install_driver called at test.pl line 10
Testing: DBI->install_driver( 'Informix' ): *** Error code 2
make: Fatal error: Command failed for target `test_dynamic'
------ END DEBUG -------

Any suggestions ?

======================================================================

 Paul Denny, IT, Press Association Sport ( Leeds, UK ).

 Bleeper:	+44 941 109233

 Work:   	+44 113 272 4993
        	pauld@pasport.press.net
 
======================================================================
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02469-9@oink>;
          Wed, 22 May 1996 07:06:57 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832699028:23202:2; Tue, 21 May 96 18:17:08 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa23137; 21 May 96 18:16 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa24528; 21 May 96 18:16 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id KAA20590 for dbi-users-real; Tue, 21 May 1996 10:06:47 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mailbox.osf.org (mailbox.osf.org [130.105.1.8]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id KAA20586 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 10:06:45 -0700
Received: from gandalf (gandalf [130.105.3.186]) 
          by mailbox.osf.org (8.6.12/8.6.x) with SMTP id NAA25550;
          Tue, 21 May 1996 13:04:43 -0400
Date: Tue, 21 May 1996 13:04:43 -0400
Message-Id: <199605211704.NAA25550@mailbox.osf.org>
X-Sender: dougm@postman.osf.org
X-Mailer: Windows Eudora Version 2.0.3
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: Glenn Goldstein <goldy@elmer.tsc.com>, dbi-users@fugue.com
From: Doug MacEachern <dougm@osf.org>
Subject: Re: Oracle DBD works great on HP-UX 9.x

At 07:59 AM 5/21/96 -0400, Glenn Goldstein wrote:
>We use Perl/Oracle for WEB apps.  This allows us to quickly build WEB
>sites which use an Oracle database.  They're not amazingly fast, but
>they scale quite well.  Now, if we only had 'stateful' HTTP sessions so we
only had
>to do one Oracle login per session, instead of one per page <sigh>.

You can do this (one Oracle login per session) if you are using the apache
server.  Check out:
http://www.osf.org/~dougm/apache/mod_perl-0.60a1.tar.gz

-Doug


---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <02504-0@oink>;
          Wed, 22 May 1996 07:07:05 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832697888:16956:1; Tue, 21 May 96 17:58:08 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa13993; 21 May 96 17:56 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id JAA20422 for dbi-users-real; Tue, 21 May 1996 09:46:36 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from utsi.com (server.utsi.com [199.99.226.3]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id JAA20418 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 09:46:33 -0700
Received: (from jwk@localhost) by utsi.com (8.7.5/8.6.11) id LAA13142 
          for dbi-users@fugue.com; Tue, 21 May 1996 11:48:31 -0500
Date: Tue, 21 May 1996 11:48:31 -0500
From: John Keener <jwk@utsi.com>
Message-Id: <199605211648.LAA13142@utsi.com>
To: dbi-users@fugue.com
Subject: Error reporting in DBD-Oracle

  I have noticed a problem with truncation reporting in Oracle.  Once 
the value of a long field is truncated, ora_fetch will thereafter *always* 
report that the field was truncated as the following output shows.  
"length" is the size of the long field "value".  The perl/oraperl script 
follows as does perl -V.This output is from DBD-Oracle-0.31 but it was 
in 0.30 also. Has anyone else noticed this?

						John Keener


------------------------------------------------------------------------

% list mcdn/igs

Oraperl Emulation Interface version 1.25 
Oracle Driver 0.31
DBI-0.69 Switch by Tim Bunce, version 0.69

id: 5     length = 500     value :
This is line     1 of lines that contain 50 chars
This is line     2 of lines that contain 50 chars
This is line     3 of lines that contain 50 chars
This is line     4 of lines that contain 50 chars
This is line     5 of lines that contain 50 chars
This is line     6 of lines that contain 50 chars
This is line     7 of lines that contain 50 chars
This is line     8 of lines that contain 50 chars
This is line     9 of lines that contain 50 chars
This is line    10 of lines that contain 50 chars


($ora_errno: 1406)
id: 4     length = 1000     value :
This is line     1 of lines that contain 50 chars
This is line     2 of lines that contain 50 chars
This is line     3 of lines that contain 50 chars
This is line     4 of lines that contain 50 chars
This is line     5 of lines that contain 50 chars
This is line     6 of lines that contain 50 chars
This is line     7 of lines that contain 50 chars
This is line     8 of lines that contain 50 chars
This is line     9 of lines that contain 50 chars
This is line    10 of lines that contain 50 chars
This is line    11 of lines that contain 50 chars
This is line    12 of lines that contain 50 chars
This is line    13 of lines that contain 50 chars
This is line    14 of lines that contain 50 chars
T

($ora_errno: 1406)
id: 2     length = 100     value :
This is line     1 of lines that contain 50 chars
This is line     2 of lines that contain 50 chars


($ora_errno: 1406)
id: 1     length = 50     value :
This is line     1 of lines that contain 50 chars

------------------------------------------------------------------------
% cat list
#!/usr/IGS/bin/perl

eval 'use Oraperl; 1' || die $@ if $] >= 5;

$ora_debug = shift if $ARGV[0] =~ /^-#/;

$USER = shift || die "user/password not specified\n";

$query = "select id,length,string from long_table order by id desc"; 

&ora_version;

$ora_long = 700;
$ora_trunc = 1;

$lda = &ora_login($db, $USER, '') || die "$ora_errstr\n";
$csr = &ora_open($lda, "$query") || die "$ora_errstr\n";

while (($id,$len,$str) = &ora_fetch($csr)){
    warn "(\$ora_errno: $ora_errno)$ora_errstr\n" if ($ora_errno != 0);					
    print "id: $id     length = $len     value :\n";
    print "$str\n\n";
}
warn "($ora_errno) $ora_errstr\n" if ($ora_errno != 0);


# finish off neatly

do ora_close($csr);
do ora_logoff($lda);

------------------------------------------------------------------------
% perl -V
Summary of my perl5 (5.0 patchlevel 2) configuration:
  Platform:
    osname=solaris, osver=2.4, archname=sun4-solaris
    uname='sunos hea 5.4 generic_101945-23 sun4m sparc '
    hint=recommended, useposix=true 
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.7.0
    cppflags='-I/usr/local/include -I/opt/local/include'
    ccflags ='-I/usr/local/include -I/opt/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib -L/opt/local/lib'
    libpth=/usr/local/lib /opt/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-fpic', lddlflags='-G -L/usr/local/lib -L/opt/local/lib'

@INC: /u02/utsi/oraperl/lib/sun4-solaris/5.002 /u02/utsi/oraperl/lib /u02/utsi/oraperl/lib/site_perl/sun4-solaris /u02/utsi/oraperl/lib/site_perl .
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <02520-3@oink>;
          Wed, 22 May 1996 07:08:37 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832705273:13640:2; Tue, 21 May 96 20:01:13 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa11413; 21 May 96 19:58 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id HAA19880 for dbi-users-real; Tue, 21 May 1996 07:18:50 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from ccnet.ccnet.com (root@ccnet.ccnet.com [192.215.96.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id HAA19876 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 07:18:49 -0700
Received: from rmh (h96-177.ccnet.com [192.215.96.177]) 
          by ccnet.ccnet.com (8.6.12/8.6.12) with SMTP id HAA14506 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 07:13:50 -0700
Message-ID: <31A1D000.4FA4@www.ccnet.com>
Date: Tue, 21 May 1996 07:15:28 -0700
From: Rich Holoch <holoch@ccnet4.ccnet.com>
Organization: Pathfinder Solutions
X-Mailer: Mozilla 2.01 (Win95; U)
MIME-Version: 1.0
Newsgroups: comp.lang.perl.misc
CC: dbi-users@fugue.com
Subject: Perl5 Screen Refreshing Problem
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I have started to hack on an application that will will put up a simple
character screen to monitor an Oracle database and our application
background processes.  Here's the code - it works ok, EXCEPT that screen 
data doesn't refresh (the time doesn't increment,  etc) until you hit a 
carriage return.  Strange - I thought just having the while() loop would 
refresh the screen until I hit an "x":


#!/usr/bin/perl
#
#
# By Rich Holoch 5/20/96

sub getdata{
$mhst=`hostname`;
$msid=$ENV{ORACLE_SID};
$musr=$ENV{LOGNAME};
$mpid=$$;
chop $mhst;
}

sub runoscmd{
open(OS, "$oscmd|") || die "can't run $oscmd: $!";
print <OS>;
}

sub putscn{
system clear;
print "HOST: $mhst\t SID: $msid\t USER: $musr\t PID: $mpid\n\n";
$oscmd="ps -ef | grep dbwr";
print <OS>;
&runoscmd;
$oscmd="date";
&runoscmd;
print "\n===> (m)ail    e(x)it: ";
}

while () {
        &getdata;
        &putscn;
        $ans = <STDIN>;
        chop($ans);
        if ($ans eq "x") {exit};
        }

****************************************************
Any ideas?
Rich
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02469-30@oink>;
          Wed, 22 May 1996 07:09:01 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832707471:24416:1; Tue, 21 May 96 20:37:51 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa22798; 21 May 96 20:36 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id MAA21422 for dbi-users-real; Tue, 21 May 1996 12:28:34 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mail.Clark.Net (mail.clark.net [168.143.0.10]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id MAA21418 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 12:28:31 -0700
Received: from clark.net (root@clark.net [168.143.0.7]) 
          by mail.Clark.Net (8.7.3/8.6.5) with ESMTP id PAA12623 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 15:28:20 -0400 (EDT)
Received: from JPOSNER (jposner.pcy.mci.net [206.128.186.112]) 
          by clark.net (8.7.1/8.7.1) with SMTP id PAA28948 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 15:28:15 -0400 (EDT)
Message-ID: <31A21937.4E3A@clark.net>
Date: Tue, 21 May 1996 15:27:51 -0400
From: Jeff Posner <jposner@clark.net>
Organization: MCI
X-Mailer: Mozilla 2.01Gold (WinNT; I)
MIME-Version: 1.0
To: DBI Users <dbi-users@fugue.com>
Subject: [Fwd: Re: Another memory leak??]
Content-Type: multipart/mixed; boundary="------------59297FB3325C"

This is a multi-part message in MIME format.

--------------59297FB3325C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Tim, I downloaded and installed DBD-31 and still have the memory
leak.  Any news?

Jeff

--------------59297FB3325C
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) by mail.Clark.Net (8.7.3/8.6.5) with SMTP id XAA27201 for <jposner@clark.net>; Mon, 20 May 1996 23:35:22 -0400 (EDT)
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net
          id ac01832; 21 May 96 0:50 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net
          id aa09313; 21 May 96 0:49 +0100
Received: from toad by oink with SMTP (PP) id <22584-0@oink>;
          Tue, 21 May 1996 00:49:02 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA03089;
          Tue, 21 May 1996 00:48:38 +0000
Date: Tue, 21 May 1996 00:48:38 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605202348.AA03089@toad.ig.co.uk>
To: bgolden@netscape.com, dbi-users@fugue.com, jposner@clark.net
Subject: Re: Another memory leak??
Cc: spari@ix.netcom.com, 0004914989@mcimail.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424
Content-Type: text
X-Mozilla-Status: 0011


> From: Jeff Posner <jposner@clark.net>
> 
> Can someone confirm this memory leak and provide a fix.

Once instant confirmation and fix coming up...

> I just
> don't know dbd/dbi at this level :-(.  The leak is approximately one
> memory page per 8 cyles and only happens with ora_titles, ora_lengths or
> ora_types is called.
> 
> Thanks, 
> Jeff
> 
> perl 5.002
> DBI-69
> DBD-29
> GCC 2.7.2
> Solaris 2.4
> 
> #!/usr/local/bin/perl
> use Oraperl;
>  
> $hDB = ora_login('your_db', 'your_user/your_pw', '') || die ;
>  
> while (1) {
>     $csr=ora_open($hDB, 'select * from demand where ded_id=-1');
>     @titles=ora_titles($csr);  # THIS CAUSES A LEAK
>     printf "%d\n", $i++;
> }

Thanks for the clear message and simple test case.

Here's the patch... *just* in time for DBD::Oracle 0.31.

*** 1.16	1996/05/20 21:29:58
--- dbdimp.c	1996/05/20 23:35:20
***************
*** 903,909 ****
  	return Nullsv;
      }
      if (cacheit) { /* cache for next time (via DBI quick_FETCH)	*/
! 	hv_store((HV*)SvRV(sth), key, kl, retsv, 0);
  	(void)SvREFCNT_inc(retsv);	/* so sv_2mortal won't free it	*/
      }
      return sv_2mortal(retsv);
--- 903,911 ----
  	return Nullsv;
      }
      if (cacheit) { /* cache for next time (via DBI quick_FETCH)	*/
! 	SV **svp = hv_fetch((HV*)SvRV(sth), key, kl, 1);
! 	sv_free(*svp);
! 	*svp = retsv;
  	(void)SvREFCNT_inc(retsv);	/* so sv_2mortal won't free it	*/
      }
      return sv_2mortal(retsv);

Phew! 30 minute turn around from leak report to patch. Must be a record.

(I'd forgotten that hv_store doesn't increment the refcount of the stored SV.)

Tim.


--------------59297FB3325C--

---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <02574-7@oink>;
          Wed, 22 May 1996 07:11:42 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832736034:12800:3; Wed, 22 May 96 04:33:54 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa12684; 22 May 96 4:33 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id UAA23534 for dbi-users-real; Tue, 21 May 1996 20:19:01 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from elm.ncs.com.sg (elm.ncs.com.sg [203.116.16.17]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id UAA23530 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 20:19:00 -0700
Received: from ncsgw.ncs.com.sg ([203.116.16.23]) 
          by elm.ncs.com.sg (8.7.3/8.7.3) with SMTP id LAA05618 
          for <dbi-users@fugue.com>; Wed, 22 May 1996 11:13:48 +0800 (SGT)
Received: by ncsgw.ncs.com.sg with Microsoft Mail 
          id <31A35C1F@ncsgw.ncs.com.sg>; Wed, 22 May 96 11:25:35 PDT
From: APPAT RAMESH SWC NCS <appatr@ncspo2.ncs.com.sg>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: DBD Makefile.PL problem!!
Date: Wed, 22 May 96 11:08:00 PDT
Message-ID: <31A35C1F@ncsgw.ncs.com.sg>
Encoding: 32 TEXT
X-Mailer: Microsoft Mail V3.0


Hello!

I was successfully able to install the DB interface (v0.69) module   
without any problem but I have some problem installing the DB drivers.

When I say "perl Makefile.PL" (DBD) is used to get an error message :-
cannot find proc.mk..or smething...
Then I used the "-m and the path name" option at the command line and it   
compiles fine.
After that the "make" also works fine.

The problem is with the compilation of the "test.pl".....
It gives this problem :-
This is the list of output as a result of using "make test" :-

Test complete (1 seconds).
*** Error code 138
make : Fatal error : Command failed for target 'test_dynamic'

and it core dumps too...

I am using DBI (v0.69), DBD (v0.29), Oracle 7.1.6, Solaris 2.4 and Perl   
5.002

Can anybody please help me on fixing this problem?

Thanking you.

regards
Ramesh

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02469-60@oink>;
          Wed, 22 May 1996 07:12:57 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832725546:28663:1; Wed, 22 May 96 01:39:06 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa28421; 22 May 96 1:38 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa19189; 22 May 96 1:35 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id NAA21890 for dbi-users-real; Tue, 21 May 1996 13:43:58 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from ccnet.ccnet.com (root@ccnet.ccnet.com [192.215.96.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id NAA21886 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 13:43:57 -0700
Received: from rmh (h96-184.ccnet.com [192.215.96.184]) 
          by ccnet.ccnet.com (8.6.12/8.6.12) with SMTP id NAA12813;
          Tue, 21 May 1996 13:38:17 -0700
Message-ID: <31A22A10.662E@www.ccnet.com>
Date: Tue, 21 May 1996 13:39:44 -0700
From: Rich Holoch <holoch@ccnet4.ccnet.com>
Organization: Pathfinder Solutions
X-Mailer: Mozilla 2.01 (Win95; U)
MIME-Version: 1.0
Newsgroups: comp.databases.oracle
To: Rich Holoch <holoch@ccnet4.ccnet.com>
CC: dbi-users@fugue.com
Subject: Re: Perl5 Oracle DB Monitor?
References: <31A1D78A.1CE5@www.ccnet.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Rich Holoch wrote:
>
> I have started to hack on an application that will will put up a simple
> character screen to monitor an Oracle database and our application
> background processes.  [snip]
> while () {
>         &getdata;
>         &putscn;
>         $ans = <STDIN>;               --------
>         chop($ans);                           >  This caused the problem.
>         if ($ans eq "x") {exit};      --------
>         }[snip]

*********************

In hind-sight,  (duh - embarassed,  but learning and thankful for a bunch of great
suggestions).  Sure,  stopping to look for input has a definite affect on the while
loop!  I now use a single arg to the program to set a sleep rate in the while loop,
which works great.  ctrl-c breaks the program,  but I certainly need to look up signals
and tty processing.  I am now on my way,  and will try to replace the <OS> ps -ef
command processing with something better.  I will also see if I can grab some ideas from
the zap program in the Camel book (page 329) - looks promising.

Thanks all!

Rich
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02577-31@oink>;
          Wed, 22 May 1996 07:14:19 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832737935:27888:2; Wed, 22 May 96 05:05:35 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa27148; 22 May 96 5:03 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id QAA22632 for dbi-users-real; Tue, 21 May 1996 16:51:34 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from lynx.csn.net (lynx.csn.net [199.117.160.129]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id QAA22628 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 16:51:33 -0700
Received: from wcc.com (sunspot.wcc.com [144.207.1.50]) 
          by lynx.csn.net (8.6.12/8.6.12) with SMTP id RAA12879 
          for <dbi-users@fugue.com>; Tue, 21 May 1996 17:50:33 -0600
Received: from den3960.wcc.com (smferris.wcc.com) by wcc.com (4.1/SMI-4.1) 
          id AA12785; Tue, 21 May 96 17:49:58 MDT
Message-Id: <9605212349.AA12785@wcc.com>
Comments: Authenticated sender is <smferri0@corp890>
From: Shawn M Ferris <smferri0@wcc.com>
Organization: Woodward-Clyde
To: dbi-users@fugue.com
Date: Tue, 21 May 1996 16:48:57 +0000
Subject: Re: Oracle DBD. Cant find loadable object.
Priority: normal
X-Mailer: Pegasus Mail for Win32 (v2.31)

> Date:          Mon, 20 May 1996 18:12:52 +0000
> From:          Tim Bunce <Tim.Bunce@ig.co.uk>
> To:            dbi-users@fugue.com, smferri0@wcc.com
> Subject:       Re: Oracle DBD. Cant find loadable object.
> Organization:  Paul Ingram Group, Software Systems, +44 1 483 424424

> 
> > From: Shawn M Ferris <smferri0@wcc.com>
> > 
> > I used the test script at:
> > http://www.hermetica.com/technologia/DBI/examples/ex2.html
> > with modifications to connect to my DB and get the following:
> > 
> > install_driver(Oracle) failed: Can't find loadable object for module
> > DBD::Oracle in @INC (/usr/lib/perl5/PA-RISC1.1/5.002 /usr/lib/perl5
> > /usr/lib/perl5/site_perl/PA-RISC1.1 /usr/lib/perl5/site_perl .) at
> > /usr/lib/perl5/DBD/Oracle.pm line 20
> > 
> >         DBI::install_driver called at ./test.pl line 7
> > 
> > I know Im overlooking something stupid. On another machine I have set 
> > up an mSQL DBD and it works great. What am I missing? Which file is 
> > it looking for? 8) Need more info I'll give the README Specifics. BTW: 
> > This is running on an HP/G30 running HPUX 9.04, 128mb ram, oracle 
> > 7.0.16. Perl 5.002b3, DBI 0.69, Oracle-DBD 0.29. Any and all help will 
> > be greatly appreciated.
> 
> DBD::Oracle on HPUX _9_ has to be built using static linking (I'm told).
> Read the README (as instructed) and the log of the Makefile.PL for details.
> 
> Basically you need to install the new perl binary that got built
> (it has the DBD::Oracle modules embedded within it).
> 
> Tim.
> 
>
Thanks for the help. I did actually build it static and did make 
install, but did not notice it didn't actually install the newly 
created perl exec. As soon as I copied that over , everything worked 
great!!! 

KUDOS
SMF 
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <06471-0@oink>;
          Wed, 22 May 1996 09:33:32 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832749236:19308:1; Wed, 22 May 96 08:13:56 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa18778; 22 May 96 8:12 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id AAA24654 for dbi-users-real; Wed, 22 May 1996 00:06:40 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id AAA24649 
          for <dbi-users@fugue.com>; Wed, 22 May 1996 00:06:34 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id ag10021; 22 May 96 7:06 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa11169; 22 May 96 7:06 +0100
Received: from toad by oink with SMTP (PP) id <00900-0@oink>;
          Tue, 21 May 1996 17:27:18 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA06966;
          Tue, 21 May 1996 17:27:10 +0000
Date: Tue, 21 May 1996 17:27:10 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605211627.AA06966@toad.ig.co.uk>
To: dbi-users@fugue.com, jlien@intrepid.resdata.com
Subject: Re: examples and doc for DBD-Oracle
X-Sun-Charset: US-ASCII
content-length: 1498
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: John K Lien <jlien@intrepid.resdata.com>
 
> 1)  I have used and learned from the examples Tim Bunce put in the oraperl.ex directory of the DBD-Oracle-0.29 distribution.

Actually those are oraperl examples from Kevin Stock (the author of the
original oraperl).

> Is there a site that has additional, more complicated examples?

Not that I know of.


> 2) The web page, http://www.hermetica.com/technologia/DBI/doc/dbispec/index.html, says that  the spec it illustrates (DBI v0.6) is out of date.  Where can I locate a current spec?

There isn't one.

> Or perhaps a complete list of available functions for oraperl or DBI?

Just do 'perldoc Oraperl' from the command line.
 
> 3) I've seen the following items mentioned - oraperl, oraperl emulation layer, DBI, Tim's "New Directions" announcement and I've been trying to sort them out.  Are all of these in use and progressing or are some on their way out?  How similar (or different) are (or will be) the database function calls in a Perl script between these items?

Oraperl is perl4 only. No maintenance and almost no support.

Oraperl emulation layer is the recommended way to talk to oracle for perl5.

The DBI API is unstable and will change as perl the New Directions message.
The DBI API is very different to Oraperl. See the text at the end of DBI.pm.

Those databases that don't have an old perl4 interface to emulate are
using the DBI API. I hope that not much will change for ODBC support but
some things are bound to.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06470-12@oink>;
          Wed, 22 May 1996 09:34:21 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832753574:05727:2; Wed, 22 May 96 09:26:14 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa05441; 22 May 96 9:25 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id BAA25229 for dbi-users-real; Wed, 22 May 1996 01:21:05 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from auspex-gw.auspex.com (auspex-gw.auspex.com [144.48.1.1]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id BAA25225 
          for <dbi-users@fugue.com>; Wed, 22 May 1996 01:21:04 -0700
Received: from nova.auspex.fr ([194.2.216.2]) 
          by auspex-gw.auspex.com (8.6.12/8.6.12) with ESMTP id BAA21154;
          Wed, 22 May 1996 01:20:58 -0700
Received: (from kstock@localhost) by nova.auspex.fr (8.6.9/8.6.9) id KAA01061;
          Wed, 22 May 1996 10:21:09 +0200
Date: Wed, 22 May 1996 10:21:09 +0200
Message-Id: <199605220821.KAA01061@nova.auspex.fr>
To: dbi-users@fugue.com, jlien@intrepid.resdata.com
Subject: Re: examples and doc for DBD-Oracle
From: KStock@auspex.com (Kevin Stock)
Organisation: Auspex Systems European Technical Support Centre
Phone: +33 1 46 29 99 37
Reply-To: KStock@auspex.com

Hello John,

> 3) I've seen the following items mentioned - oraperl, oraperl emulation =
> layer, DBI, Tim's "New Directions" announcement and I've been trying to =
> sort them out.  Are all of these in use and progressing or are some on =
> their way out?  How similar (or different) are (or will be) the database =
> function calls in a Perl script between these items?

I'll start, and Tim can take over...

Oraperl was first released in 1991. At the time, I believed it to
be the only database interface for Perl; I later discovered that Ted
Lemon had already released sqlperl for (I believe) Ingres. I continued
development of Oraperl until June 1993, when I lost my job and with it,
my access to Oracle. The last version of Oraperl (2.4) works with Perl
v3 and v4 only.  It was written with Oracle v6, but also works well with
Oracle v7 (there are a few minor glitches due to changes in Oracle).

During this time, other database interfaces for Perl were produced.
Each used a different interface, so it was not possible to migrate an
application from one database to another without rewriting. Towards the
end on 1992, Buzz Moschetti started the DBPerl project, whose aim was
to design a common API which all the interfaces would support.

Obviously, when I lost my job, I also had to drop out of the
project. Over time, DBPerl developed to become:

	DBI	DataBase Interface
	DBD	DataBase Driver

The DBI is in essence a database API for Perl, on which are built the
individual DBDs - one for each supported database. DBI/DBD are heavily
integrated into the Perl v5 methodology.

Tim is working on DBI and on DBD:Oracle; other people are working on
DBDs for other databases. Whether or not people like the interface (Hi
Alligator :-) there are a lot of Oraperl scripts out there, so Tim has
included an Oraperl emulation which runs on top of DBD:Oracle.

My fifteen minutes of fame (tm) are over now - the original Oraperl is
on its way out, and I think that once Tim gets the emulation to run as
fast as the original, someone will give it a final kick and slam the
door. I still try to answer questions from time to time, but even if
I get access to Oracle again, I will not continue developing it.

	Kevin
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <07321-0@oink>;
          Wed, 22 May 1996 12:02:27 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832762815:06824:1; Wed, 22 May 96 12:00:15 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa05985; 22 May 96 11:59 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id DAA25989 for dbi-users-real; Wed, 22 May 1996 03:52:14 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from auspex-gw.auspex.com (auspex-gw.auspex.com [144.48.1.1]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id DAA25985 
          for <dbi-users@fugue.com>; Wed, 22 May 1996 03:52:13 -0700
Received: from nova.auspex.fr ([194.2.216.2]) 
          by auspex-gw.auspex.com (8.6.12/8.6.12) with ESMTP id DAA23016;
          Wed, 22 May 1996 03:52:11 -0700
Received: (from kstock@localhost) by nova.auspex.fr (8.6.9/8.6.9) id MAA01114;
          Wed, 22 May 1996 12:51:08 +0200
Date: Wed, 22 May 1996 12:51:08 +0200
Message-Id: <199605221051.MAA01114@nova.auspex.fr>
To: dbi-users@fugue.com, jlien@intrepid.resdata.com
Subject: Re: examples and doc for DBD-Oracle
From: KStock@auspex.com (Kevin Stock)
Organisation: Auspex Systems European Technical Support Centre
Phone: +33 1 46 29 99 37
Reply-To: KStock@auspex.com

> Is there a site that has additional, more complicated examples?

I just remembered an old message:

        host:   ftp.ml.csiro.au
        IP:     192.67.12.100
        dir:    /software/jstander/perllib
 
No guarantees that it's still available, but this contained a lot of
tools and routines.

	Kevin
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <07589-1@oink>;
          Wed, 22 May 1996 14:32:04 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832766037:27654:1; Wed, 22 May 96 12:53:57 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa27107; 22 May 96 12:53 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id EAA26141 for dbi-users-real; Wed, 22 May 1996 04:49:07 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id EAA26137 
          for <dbi-users@fugue.com>; Wed, 22 May 1996 04:48:55 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ad18618; 22 May 96 12:48 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ag24519; 22 May 96 11:58 +0100
Received: from toad by oink with SMTP (PP) id <07170-0@oink>;
          Wed, 22 May 1996 11:30:59 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA10033;
          Wed, 22 May 1996 11:30:52 +0000
Date: Wed, 22 May 1996 11:30:52 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605221030.AA10033@toad.ig.co.uk>
To: dbi-users@fugue.com, appatr@ncspo2.ncs.com.sg
Subject: Re: DBD Makefile.PL problem!!
X-Sun-Charset: US-ASCII
content-length: 371
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: APPAT RAMESH SWC NCS <appatr@ncspo2.ncs.com.sg>
> 
> When I say "perl Makefile.PL" (DBD) is used to get an error message :-
> cannot find proc.mk..or smething...
> Then I used the "-m and the path name" option at the command line and it   
> compiles fine.
> After that the "make" also works fine.

Please read the README and post the details it asks for.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <07590-4@oink>;
          Wed, 22 May 1996 14:32:16 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832765224:29945:0; Wed, 22 May 96 12:40:24 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa29428; 22 May 96 12:39 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa24711; 22 May 96 12:39 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id EAA26038 for dbi-users-real; Wed, 22 May 1996 04:28:17 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id EAA26034 
          for <dbi-users@fugue.com>; Wed, 22 May 1996 04:28:13 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ad16957; 22 May 96 12:27 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aj24519; 22 May 96 11:58 +0100
Received: from toad by oink with SMTP (PP) id <07259-0@oink>;
          Wed, 22 May 1996 11:52:10 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA10519;
          Wed, 22 May 1996 11:52:01 +0000
Date: Wed, 22 May 1996 11:52:01 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605221052.AA10519@toad.ig.co.uk>
To: dbi-users@fugue.com, jposner@clark.net
Subject: Re: [Fwd: Re: Another memory leak??]
X-Sun-Charset: US-ASCII
content-length: 362
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Jeff Posner <jposner@clark.net>
> 
> Tim, I downloaded and installed DBD-31 and still have the memory
> leak.  Any news?

Umm, my testing shows no leak after 300,000 calls to ora_titles.

On the other hand a login/open/fetch/ora_titles/close/logoff loop
does show a small leak, but I've no time to isolate it.

Could you try to isolate it for me?

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08802-0@oink>;
          Wed, 22 May 1996 17:01:01 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832777528:02193:3; Wed, 22 May 96 16:05:28 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa01926; 22 May 96 16:04 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id HAA26681 for dbi-users-real; Wed, 22 May 1996 07:55:58 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id HAA26677 
          for <dbi-users@fugue.com>; Wed, 22 May 1996 07:55:57 -0700
Received: by mercury.Sun.COM (Sun.COM) id HAA19239;
          Wed, 22 May 1996 07:55:19 -0700
Received: from camsun (camsun.UK.Sun.COM) 
          by UK.Sun.COM (5.x/SMI-SVR4-sd.fkk200) id AA04652;
          Wed, 22 May 1996 15:56:46 +0100
Received: from camc by camsun (5.0/SMI-SVR4-se.fkk201) id AA17180;
          Wed, 22 May 1996 15:56:43 +0100
Received: from buzzard.uk.sun.com by camc (SMI-8.6/SMI-SVR4-su.fkk202) 
          id PAA17607; Wed, 22 May 1996 15:57:25 +0100
Received: from buzzard by buzzard.uk.sun.com (SMI-8.6/SMI-SVR4) id PAA16785;
          Wed, 22 May 1996 15:56:41 +0100
Message-Id: <199605221456.PAA16785@buzzard.uk.sun.com>
Date: Wed, 22 May 96 15:56:41 0100
From: Mark Robinson <mark.robinson@Sun.COM>
Organization: Sun Microsystems
X-Mailer: Mozilla 1.12SUN (X11; I; SunOS 5.5 sun4m)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: DBI, DBD::Oracle and SQL*Net
X-Url: http://www.hermetica.com/technologia/DBI/DBD/index.html#Oracle
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii

hi

i am trying to use DBD::Oracle with SQL*Net v2 but cannot connect to the
database.  i have seen some other items on the web about this but no solutions.  

so, does anyone know of a solution?  has anyone used DBD::Oracle with SQL*Net?
(i'm pretty sure my Oracle setup is OK because i can use sqlplus to connect).

your reply is greatly appreciated.

cheers
mark

p.s.  on the off chance that this may mean something, i include a dump of `make
test' from the DBD::Oracle distribution...


[3]buzzard:/home/markro/DBD-Oracle-0.29 > !!
make test
PERL_DL_NONLAZY=1 /home/markro/bin/perl -I./blib/arch -I./blib/lib
-I/home/markro/lib/perl5/sun4-solaris/5.002 -I/home/markro/lib/perl5 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
t/main..............ok
All tests successful.
Files=2,  Tests=6,  3 secs ( 1.52 cusr  0.68 csys =  2.20 cpu)
PERL_DL_NONLAZY=1 /home/markro/bin/perl -I./blib/arch -I./blib/lib
-I/home/markro/lib/perl5/sun4-solaris/5.002 -I/home/markro/lib/perl5 test.pl
Oraperl test application $Revision: 1.20 $
 
Oraperl Emulation Interface version 1.23 
Oracle Driver 0.29
DBI-0.68 Switch by Tim Bunce, version 0.68
 
 
Connecting
 to 'ora1' (from command line, else uses ORACLE_SID/TWO_TASK)
 as 'mark/mark@nortel' (via ORACLE_USERID environment var or default)
ora_login: 12203: Error while trying to retrieve text for error ORA-12203 (DBD:
login failed)
 
Could not connect to database. Test aborted.
*** Error code 2
make: Fatal error: Command failed for target `test_dynamic'


---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <11296-3@oink>;
          Thu, 23 May 1996 07:06:12 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832800979:13504:1; Wed, 22 May 96 22:36:19 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa12588; 22 May 96 22:35 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id OAA28446 for dbi-users-real; Wed, 22 May 1996 14:31:33 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from aurora.itre.ncsu.edu (root@aurora.itre.ncsu.edu [152.1.171.62]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id OAA28442 
          for <dbi-users@fugue.com>; Wed, 22 May 1996 14:31:30 -0700
Received: from aurora (localhost) by aurora.itre.ncsu.edu (5.x/SMI-SVR4) 
          id AA20993; Wed, 22 May 1996 17:30:39 -0400
Message-Id: <31A3877D.5C48@itre.ncsu.edu>
Date: Wed, 22 May 1996 17:30:37 -0400
From: Jay Novello <jay@itre.itre.ncsu.edu>
X-Mailer: Mozilla 3.0b4 (X11; I; SunOS 5.4 sun4m)
Mime-Version: 1.0
To: descarte@hermetica.com, dbi-users@fugue.com
Subject: DBD-mSQL-0.60pl10 Makefile failure
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Al,

This is probably due to the combination of MakeMaker (5.32) and Perl (5.002)
I'm using, but I can't even get off the ground with DBD-mSQL-0.60pl10...

aurora:/a1/tank/DBD-mSQL-0.60pl10 $ perl Makefile.PL
"%att" is not exported by the ExtUtils::MakeMaker module at
/usr/local/lib/perl5/Exporter.pm line 95
        Exporter::export called at /usr/local/lib/perl5/Exporter.pm line 149
        Exporter::import called at Makefile.PL line 12
        main::BEGIN called at /usr/local/lib/perl5/ExtUtils/MakeMaker.pm line 0
        eval {...} called at /usr/local/lib/perl5/ExtUtils/MakeMaker.pm line 0
Can't continue after import errors at Makefile.PL line 12
BEGIN failed--compilation aborted at Makefile.PL line 12.

aurora:/a1/tank/DBD-mSQL-0.60pl10 $ perl -e 'use Config; print Config::myconfig()'
Summary of my perl5 (5.0 patchlevel 2) configuration:
  Platform:
    osname=solaris, osver=2.4, archname=sun4-solaris
    uname='sunos aurora 5.4 generic_101945-38 sun4m sparc '
    hint=recommended, useposix=true 
  Compiler:
    cc='cc', optimize='-O', gccversion=2.7.0
    cppflags='-I/usr/local/include'
    ccflags ='-I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib -L/opt/gnu/lib'
    libpth=/usr/local/lib /opt/gnu/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -lgdbm -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-fpic', lddlflags='-G -L/usr/local/lib -L/opt/gnu/lib'

Thanks
Jay
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <11296-5@oink>;
          Thu, 23 May 1996 07:06:25 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832801816:23242:1; Wed, 22 May 96 22:50:16 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa19561; 22 May 96 22:46 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id JAA26923 for dbi-users-real; Wed, 22 May 1996 09:58:59 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mail.Clark.Net (mail.clark.net [168.143.0.10]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id JAA26919 
          for <dbi-users@fugue.com>; Wed, 22 May 1996 09:58:57 -0700
Received: from clark.net (root@clark.net [168.143.0.7]) 
          by mail.Clark.Net (8.7.3/8.6.5) with ESMTP id MAA13787;
          Wed, 22 May 1996 12:58:54 -0400 (EDT)
Received: from JPOSNER (jposner.pcy.mci.net [206.128.186.112]) 
          by clark.net (8.7.1/8.7.1) with SMTP id MAA04985;
          Wed, 22 May 1996 12:58:53 -0400 (EDT)
Message-ID: <31A347B4.6652@clark.net>
Date: Wed, 22 May 1996 12:58:28 -0400
From: Jeff Posner <jposner@clark.net>
Organization: MCI
X-Mailer: Mozilla 2.01Gold (WinNT; I)
MIME-Version: 1.0
To: Mark Robinson <mark.robinson@Sun.COM>
CC: dbi-users@fugue.com
Subject: Re: DBI, DBD::Oracle and SQL*Net
References: <199605221456.PAA16785@buzzard.uk.sun.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Mark,

we use sqlnet v2 all the time.  You have to change the way you
use ora_login to: 

$l = ora_login('', 'user/pw@service_name', '') ;

If you want to run the tests included with the DBD distribution, edit
test.pl and change line 25 to $dbname=''; and set your ORACLE_USERID
to 'user/pw@service_name'.

Jeff

PS, I suppose there are other combinations of args 
that might  work such as relacing '' with undef, etc.  


Mark Robinson wrote:
> 
> hi
> 
> i am trying to use DBD::Oracle with SQL*Net v2 but cannot connect to the
> database.  i have seen some other items on the web about this but no solutions.
> 
> so, does anyone know of a solution?  has anyone used DBD::Oracle with SQL*Net?
> (i'm pretty sure my Oracle setup is OK because i can use sqlplus to connect).
> 
> your reply is greatly appreciated.
> 
> cheers
> mark
> 
> p.s.  on the off chance that this may mean something, i include a dump of `make
> test' from the DBD::Oracle distribution...
> 
> [3]buzzard:/home/markro/DBD-Oracle-0.29 > !!
> make test
> PERL_DL_NONLAZY=1 /home/markro/bin/perl -I./blib/arch -I./blib/lib
> -I/home/markro/lib/perl5/sun4-solaris/5.002 -I/home/markro/lib/perl5 -e 'use
> Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
> t/base..............ok
> t/main..............ok
> All tests successful.
> Files=2,  Tests=6,  3 secs ( 1.52 cusr  0.68 csys =  2.20 cpu)
> PERL_DL_NONLAZY=1 /home/markro/bin/perl -I./blib/arch -I./blib/lib
> -I/home/markro/lib/perl5/sun4-solaris/5.002 -I/home/markro/lib/perl5 test.pl
> Oraperl test application $Revision: 1.20 $
> 
> Oraperl Emulation Interface version 1.23
> Oracle Driver 0.29
> DBI-0.68 Switch by Tim Bunce, version 0.68
> 
> 
> Connecting
>  to 'ora1' (from command line, else uses ORACLE_SID/TWO_TASK)
>  as 'mark/mark@nortel' (via ORACLE_USERID environment var or default)
> ora_login: 12203: Error while trying to retrieve text for error ORA-12203 (DBD:
> login failed)
> 
> Could not connect to database. Test aborted.
> *** Error code 2
> make: Fatal error: Command failed for target `test_dynamic'
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <11296-11@oink>;
          Thu, 23 May 1996 07:07:17 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832806037:09505:4; Thu, 23 May 96 00:00:37 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa06497; 23 May 96 0:00 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id JAA26885 for dbi-users-real; Wed, 22 May 1996 09:40:04 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from pt.Cyanamid.COM (igate.cyanamid.com [141.173.63.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id JAA26878 
          for <dbi-users@fugue.com>; Wed, 22 May 1996 09:39:58 -0700
Received: from jmsun.Cyanamid.COM by apbr1.pt.Cyanamid.COM (4.1/SMI-4.1) 
          id AA23140; Wed, 22 May 96 12:39:20 EDT
Received: by jmsun.Cyanamid.COM (SMI-8.6/SMI-SVR4) id MAA10434;
          Wed, 22 May 1996 12:39:19 -0400
Date: Wed, 22 May 1996 12:39:19 -0400
From: meekj@pt.Cyanamid.COM (Jon Meek)
Message-Id: <199605221639.MAA10434@jmsun.Cyanamid.COM>
To: dbi-users@fugue.com, mark.robinson@Sun.COM
Subject: Re: DBI, DBD::Oracle and SQL*Net
X-Sun-Charset: US-ASCII

I stumbled a bit on this last week during my conversion from
Perl4/Oraperl with SQL*Net v1.

In the Perl script I use:

#!/usr/local/bin/perl

$ENV{'ORACLE_HOME'} = '/usr/local/lib/oracle';

use Oraperl;

$lda = &ora_login('PROD7','SCOTT','TIGER') || die $ora_errstr;

...

/usr/local/lib/oracle/network/admin contains two files:

-rw-r--r--   1 meekj    apbr         309 May 16 11:56 sqlnet.ora
-rw-r--r--   1 meekj    apbr        1989 May 16 12:11 tnsnames.ora

tnsnames.ora Contains data describing the Oracle instance 'PROD7'

Hope this helps.

Jon


Jon Meek
American Cyanamid Company
PO Box 400 / Clarksville Road
Princeton, NJ 08543-0400

Voice: 609-716-2504
meekj@pt.Cyanamid.COM

> 
> i am trying to use DBD::Oracle with SQL*Net v2 but cannot connect to the
> database.  i have seen some other items on the web about this but no solutions.  
> 
> so, does anyone know of a solution?  has anyone used DBD::Oracle with SQL*Net?
> (i'm pretty sure my Oracle setup is OK because i can use sqlplus to connect).
> 
> your reply is greatly appreciated.
> 
> cheers
> mark
> 
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11401-3@oink>;
          Thu, 23 May 1996 07:11:20 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832814102:18214:0; Thu, 23 May 96 02:15:02 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa17961; 23 May 96 2:14 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa21193; 23 May 96 2:12 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id OAA28294 for dbi-users-real; Wed, 22 May 1996 14:13:12 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from colossus.cse.psu.edu (root@colossus.cse.psu.edu [130.203.1.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id OAA28290 
          for <dbi-users@fugue.com>; Wed, 22 May 1996 14:13:08 -0700
Received: from localhost by colossus.cse.psu.edu with SMTP id <79276>;
          Wed, 22 May 1996 17:12:36 -0400
X-Mailer: exmh version 1.6.5 12/11/95
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: dbi-users@fugue.com
Subject: DBD-Oracle return row length limit?
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 22 May 1996 17:05:26 -0400
From: John D Groenveld <groenvel@cse.psu.edu>
Message-Id: <96May22.171236edt.79276@colossus.cse.psu.edu>

Is there a hard limit on the length of a returned row (OCI limitation?) or 
have I reached a bug with DBD-Oracle-0.31? I am joining a few tables (with no 
BLOBs) and while ora_fetch does not complain, @row is returned empty.
John 

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15342-5@oink>;
          Thu, 23 May 1996 11:39:30 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832844208:25394:0; Thu, 23 May 96 10:36:48 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa25024; 23 May 96 10:35 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa08999; 23 May 96 10:35 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id WAA00495 for dbi-users-real; Wed, 22 May 1996 22:17:58 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from idiom.com (0@idiom.com [140.174.82.4]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id WAA00491 
          for <dbi-users@fugue.com>; Wed, 22 May 1996 22:17:57 -0700
Received: from localhost (355@localhost [127.0.0.1]) 
          by idiom.com (8.6.12/8.6.12) with SMTP id WAA11095 
          for <dbi-users@fugue.com>; Wed, 22 May 1996 22:16:45 -0700
Message-Id: <199605230516.WAA11095@idiom.com>
X-Authentication-Warning: idiom.com: Host localhost didn't use HELO protocol
To: dbi-users@fugue.com
Subject: Is there a generic way of determining the number of rows returned
Date: Wed, 22 May 1996 22:16:45 -0700
From: Jason Venner <jason@idiom.com>


from a select?

---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <15829-0@oink>;
          Thu, 23 May 1996 14:18:13 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832848568:06343:1; Thu, 23 May 96 11:49:28 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa05885; 23 May 96 11:48 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id DAA01054 for dbi-users-real; Thu, 23 May 1996 03:42:02 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id DAA01050 
          for <dbi-users@fugue.com>; Thu, 23 May 1996 03:42:01 -0700
Received: by mercury.Sun.COM (Sun.COM) id DAA26503;
          Thu, 23 May 1996 03:37:14 -0700
Received: from camsun (camsun.UK.Sun.COM) 
          by UK.Sun.COM (5.x/SMI-SVR4-sd.fkk200) id AA13425;
          Thu, 23 May 1996 11:38:28 +0100
Received: from camc by camsun (5.0/SMI-SVR4-se.fkk201) id AA06707;
          Thu, 23 May 1996 10:38:02 +0100
Received: from buzzard.uk.sun.com by camc (SMI-8.6/SMI-SVR4-su.fkk202) 
          id KAA07432; Thu, 23 May 1996 10:38:45 +0100
Received: by buzzard.uk.sun.com (SMI-8.6/SMI-SVR4) id KAA18719;
          Thu, 23 May 1996 10:38:00 +0100
Date: Thu, 23 May 1996 10:38:00 +0100
From: Mark.Robinson@uk.sun.com (Mark Robinson - Project Engineer - SunIntegration)
Message-Id: <199605230938.KAA18719@buzzard.uk.sun.com>
To: groenvel@cse.psu.edu, jposner@clark.net, meekj@pt.cyanamid.com, 
    descarte@hermetica.com
Subject: Re: DBI, DBD::Oracle and SQL*Net
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII

howdy

thanks to all who replied so promptly.

for the record, the requirements for remote access using DBI,
DBD::Oracle and SQL*NetV2 is to have an alias set in `tnsnames.ora' and
to use it in ora_login as follows:

	$lda = ora_login('', 'scott/tiger@alias', '');
	
cheers
mark
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <15829-2@oink>;
          Thu, 23 May 1996 14:18:21 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832848712:07619:1; Thu, 23 May 96 11:51:52 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa06446; 23 May 96 11:50 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id DAA01060 for dbi-users-real; Thu, 23 May 1996 03:43:58 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from altern1. ([204.91.84.79]) by toccata.fugue.com (8.6.12/8.6.11) 
          with ESMTP id DAA01056 for <dbi-users@fugue.com>;
          Thu, 23 May 1996 03:43:57 -0700
Received: from Tsp by altern1. (SMI-8.6/SMI-SVR4) id KAA01583;
          Thu, 23 May 1996 10:44:31 GMT
Message-ID: <319B0713.661@altern.com>
Date: Thu, 16 May 1996 12:44:35 +0200
From: Kickwind <pact@altern.com>
X-Mailer: Mozilla 2.01 (Win95; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: pact@altern.com
Subject: How to get Perl
X-URL: http://www.rosat.mpe-garching.mpg.de/mailing-lists/PerlDB-Interest/9602/msg00044.html
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi, Camlmac on the e-mail. I hope you're fine and you'll receive my 
message. Well i'm a new programmer on Perl, and I would like to download 
all the files I need to be able to programm correcty on this 
revolutionnary programming language. May you tell me how to download the 
freeware as quickly as possible, and how to get the best CGI libraries.

Kamel Alias CamlmaC (ex caml Light 96)

Best regards. 

e-mail : pact@altern.com

E-Mail you soon 	Bye and have a nice day or evening
			(it depends on the time you'll read this 
			message)

I'm waiting for your answer guy !...

one of the WWW sites I designed : http://www.altern.com/pact
(sorry only french version is readable, but there will be an american 
version next)
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <15829-4@oink>;
          Thu, 23 May 1996 14:18:29 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832850637:25592:2; Thu, 23 May 96 12:23:57 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa23448; 23 May 96 12:23 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id EAA01158 for dbi-users-real; Thu, 23 May 1996 04:15:07 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id EAA01154 
          for <dbi-users@fugue.com>; Thu, 23 May 1996 04:15:04 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id ac27324; 23 May 96 11:12 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ad18972; 23 May 96 11:38 +0100
Received: from toad by oink with SMTP (PP) id <15222-0@oink>;
          Thu, 23 May 1996 10:46:46 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA14938;
          Thu, 23 May 1996 10:46:39 +0000
Date: Thu, 23 May 1996 10:46:39 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605230946.AA14938@toad.ig.co.uk>
To: dbi-users@fugue.com, groenvel@cse.psu.edu
Subject: Re: DBD-Oracle return row length limit?
X-Sun-Charset: US-ASCII
content-length: 365
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: John D Groenveld <groenvel@cse.psu.edu>
> 
> Is there a hard limit on the length of a returned row (OCI limitation?) or 
> have I reached a bug with DBD-Oracle-0.31? I am joining a few tables (with no 
> BLOBs) and while ora_fetch does not complain, @row is returned empty.
> John 

Not that I know of. I'd guess that your join is returning no rows.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15868-0@oink>;
          Thu, 23 May 1996 14:22:32 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832857638:03059:3; Thu, 23 May 96 14:20:38 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa02917; 23 May 96 14:20 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id GAA01549 for dbi-users-real; Thu, 23 May 1996 06:11:50 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id GAA01545 
          for <dbi-users@fugue.com>; Thu, 23 May 1996 06:11:13 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ah22525; 23 May 96 13:52 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa18972; 23 May 96 11:38 +0100
Received: from toad by oink with SMTP (PP) id <14921-0@oink>;
          Thu, 23 May 1996 10:08:44 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA14858;
          Thu, 23 May 1996 10:08:21 +0000
Date: Thu, 23 May 1996 10:08:21 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605230908.AA14858@toad.ig.co.uk>
To: dbi-users@fugue.com, mark.robinson@sun.com, meekj@pt.cyanamid.com
Subject: Re: DBI, DBD::Oracle and SQL*Net
X-Sun-Charset: US-ASCII
content-length: 525
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: meekj@pt.Cyanamid.COM (Jon Meek)
> 
> I stumbled a bit on this last week during my conversion from
> Perl4/Oraperl with SQL*Net v1.
> 
> In the Perl script I use:
> 
> #!/usr/local/bin/perl
> 
> $ENV{'ORACLE_HOME'} = '/usr/local/lib/oracle';
> 
> use Oraperl;
> 
> $lda = &ora_login('PROD7','SCOTT','TIGER') || die $ora_errstr;

Note that your $ENV{} assignment will happen _after_ the 'use'.

DBD::Oracle (and hence Oraperl) no longer check for ORACLE_HOME
at 'use' time. So this is not a problem (any more).

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16863-25@oink>;
          Thu, 23 May 1996 17:03:52 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832867225:08041:1; Thu, 23 May 96 17:00:25 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa07883; 23 May 96 17:00 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa10224; 23 May 96 16:59 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id IAA01965 for dbi-users-real; Thu, 23 May 1996 08:48:50 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from colossus.cse.psu.edu (root@colossus.cse.psu.edu [130.203.1.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id IAA01961 
          for <dbi-users@fugue.com>; Thu, 23 May 1996 08:48:46 -0700
Received: from localhost by colossus.cse.psu.edu with SMTP id <79318>;
          Thu, 23 May 1996 11:48:28 -0400
X-Mailer: exmh version 1.6.5 12/11/95
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Tim Bunce <Tim.Bunce@ig.co.uk>
cc: dbi-users@fugue.com
Subject: Re: DBD-Oracle return row length limit?
In-reply-to: Your message of "Thu, 23 May 1996 06:46:39 EDT." <9605230946.AA14938@toad.ig.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 23 May 1996 11:46:26 -0400
From: John D Groenveld <groenvel@cse.psu.edu>
Message-Id: <96May23.114828edt.79318@colossus.cse.psu.edu>

> > From: John D Groenveld <groenvel@cse.psu.edu>
> > 
> > Is there a hard limit on the length of a returned row (OCI limitation?) or 
> > have I reached a bug with DBD-Oracle-0.31? I am joining a few tables (with no 
> > BLOBs) and while ora_fetch does not complain, @row is returned empty.
> > John 
> 
> Not that I know of. I'd guess that your join is returning no rows.

The join was valid. My Oracle temp tablespace was too small for the query. 
SQLplus return the error message, but my 'while (@row=&ora_fetch($csr)) {' 
statement ofcourse didnt catch the error. The moral of the story is that just 
because you can open the cursor, doesnt mean that you can perform the query.
Thanks,
John

---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <17804-0@oink>;
          Thu, 23 May 1996 17:44:30 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832869706:02201:2; Thu, 23 May 96 17:41:46 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa01735; 23 May 96 17:40 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id JAA02207 for dbi-users-real; Thu, 23 May 1996 09:33:26 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from chan.crim.ca (chan.crim.ca [132.218.1.4]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id JAA02203 
          for <dbi-users@fugue.com>; Thu, 23 May 1996 09:33:23 -0700
Received: from zorro.crim.ca by chan.crim.ca (4.1/SMI-4.1) id AA10065;
          Thu, 23 May 96 12:33:39 EDT
Received: by zorro.crim.ca (5.0/SMI-SVR4) id AA10500;
          Thu, 23 May 1996 12:33:49 +0500
Date: Thu, 23 May 1996 12:33:49 +0500
From: maparent@zorro.crim.ca (Marc-Antoine Parent)
Message-Id: <9605231633.AA10500@zorro.crim.ca>
To: Tim.Bunce@ig.co.uk
Subject: Re: DBD_Oracle with Oracle Text Services
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Content-Length: 356

I just managed to get Oracle 7.3.2 working with your latest DBD version (0.31)
THANK YOU VERY MUCH for continued good work.
I heard reports that Text Services would be merged in the database in Oracle
version 7.3.3, so the work I was to undertake (i.e. a Oracle Text Serveices-
specific DBD module) might become obsolete in no time.
I'll keep you posted.

---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <19396-8@oink>;
          Fri, 24 May 1996 07:07:13 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832886539:05812:4; Thu, 23 May 96 22:22:19 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa01347; 23 May 96 22:17 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id IAA02008 for dbi-users-real; Thu, 23 May 1996 08:55:05 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from carlton.innotts.co.uk (root@carlton.innotts.co.uk [194.176.128.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id IAA02004 
          for <dbi-users@fugue.com>; Thu, 23 May 1996 08:55:01 -0700
Received: from seriale03.innotts.co.uk (seriale03.innotts.co.uk [194.176.128.100]) 
          by carlton.innotts.co.uk (8.6.12/8.6.12) with SMTP id QAA16753;
          Thu, 23 May 1996 16:44:27 +0100
Received: by seriale03.innotts.co.uk with Microsoft Mail 
          id <01BB48C7.403186E0@seriale03.innotts.co.uk>;
          Thu, 23 May 1996 16:45:29 +-100
Message-ID: <01BB48C7.403186E0@seriale03.innotts.co.uk>
From: "I.M.& T." <citydev@innotts.co.uk>
To: 'Perl DBI' <dbi-users@fugue.com>
Cc: 'Time Bunce' <Tim.Bunce@ig.co.uk>
Subject: RE: Problems with DBI at Nottingham City Hospital
Date: Thu, 23 May 1996 16:44:25 +-100
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="---- =_NextPart_000_01BB48C7.404B7780"


------ =_NextPart_000_01BB48C7.404B7780
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Dear Tim ,

Thanks for the quick response . I've added the edits to DBI .
Unfortunately I have encountered a slight hitch :
 
I've tried various things (short of restructuring the perl5.002 installation tree!)
without finding a solution . 

Thanks for any help , Steve Musgrave at Notts City Hospital

----------
From: 	Tim Bunce[SMTP:Tim.Bunce@ig.co.uk]
Sent: 	15 May 1996 18:25
To: 	citydev@innotts.co.uk
Cc: 	dbi-users@fugue.com
Subject: 	Re: Problems with DBI at Nottingham City Hospital


> From: "I.M.& T." <citydev@innotts.co.uk>
> 
> Dear Tim ,
> 
> I have upgraded a 30,000 line perl 4/oraperl commercial application
> to perl 5 at Nottingham City Hospital on a UNIX Pyramid .
> 
> The application is passing most of the system tests however the following
> has halted progress :
> 
> In Perl 4 ora_bind for a sql update returns 'OK' for failure or the number
> of rows updated for success . 
> 
> In Perl 5.001 DBI-0.65 DBD-Oracle-0.27 ora_bind returns 1 instead
> of 'OK'  and $ora_errno is not set .
> 
> I know this seems odd but it repeats in a small stand alone piece of perl .
> 
> How do I trap errors from ora_bind ?
> 
> Could you suggest a solution to what from our position is a serious problem .
> 
> Regards , Steve Musgrave

Here are two patches (over DBD-Oracle-*0.30*) which will, I think, fix the
incompatibility:

*** 1.39	1996/03/05 02:04:42
--- Oracle.xs	1996/05/15 16:20:10
***************
*** 182,187 ****
--- 182,188 ----
      SV *	sth
      CODE:
      D_imp_sth(sth);
+     int retval;
      if (items > 1) {
  	/* Handle binding supplied values to placeholders	*/
  	int i, error = 0;
***************
*** 201,207 ****
  	    XSRETURN_UNDEF;	/* dbd_bind_ph already registered error	*/
  	}
      }
!     ST(0) = dbd_st_execute(sth) ? &sv_yes : &sv_no;
  
  
  void
--- 202,214 ----
  	    XSRETURN_UNDEF;	/* dbd_bind_ph already registered error	*/
  	}
      }
!     retval = dbd_st_execute(sth);
!     if (retval < 0)
! 	XST_mUNDEF(0);		/* error        		*/
!     else if (retval == 0)
! 	XST_mPV(0, "0E0");	/* true but zero		*/
!     else
! 	XST_mIV(0, retval);	/* typically 1 or rowcount	*/
  
  
  void

*** 1.15	1996/05/07 20:28:50
--- dbdimp.c	1996/05/15 16:02:33
***************
*** 620,626 ****
  
  
  int
! dbd_st_execute(sth)
      SV *sth;
  {
      D_imp_sth(sth);
--- 620,626 ----
  
  
  int
! dbd_st_execute(sth)	/* <0 is error, >=0 is ok (row count) */
      SV *sth;
  {
      D_imp_sth(sth);
***************
*** 628,643 ****
      if (!imp_sth->done_desc) {
  	/* describe and allocate storage for results		*/
  	if (!dbd_describe(sth, imp_sth))
! 	    return 0; /* dbd_describe already called ora_error()	*/
      }
  
      /* Trigger execution of the statement			*/
      if (oexec(imp_sth->cda)) {  /* may change to oexfet later	*/
          ora_error(sth, imp_sth->cda, imp_sth->cda->rc, "oexec error");
! 	return 0;
      }
      DBIc_ACTIVE_on(imp_sth);
!     return 1;
  }
  
  
--- 628,643 ----
      if (!imp_sth->done_desc) {
  	/* describe and allocate storage for results		*/
  	if (!dbd_describe(sth, imp_sth))
! 	    return -1; /* dbd_describe already called ora_error()	*/
      }
  
      /* Trigger execution of the statement			*/
      if (oexec(imp_sth->cda)) {  /* may change to oexfet later	*/
          ora_error(sth, imp_sth->cda, imp_sth->cda->rc, "oexec error");
! 	return -1;
      }
      DBIc_ACTIVE_on(imp_sth);
!     return imp_sth->cda->rpc;	/* row count	*/
  }
  
  

Please test and let me know.

Note that all perl4 oraperl's 'OK's are now represented as '0E0' to
avoid perl5 -w warnings.

Developers of other DBD drivers should apply the first patch to their
XS file and make a corresponding change to their dbd_st_execute function.

Tim.



------ =_NextPart_000_01BB48C7.404B7780
Content-Type: text/plain; name="prob.txt"
Content-Transfer-Encoding: 7bit


Dear Tim ,

Could you suggest a solution to :

I have the following problem with building DBI-0.69 after
installation of perl5.002 . FileHandle.pm is not under
@INC paths . ( Note DBI-0.65 was OK with perl5.001m in the
same environment )

make test

.....
.....
Running Mkbootstrap for DBI ()
        chmod 644 DBI.bs
        LD_RUN_PATH="" /usr/ccs/bin/cc -o ./blib/arch/auto/DBI/DBI.so -G -L/usr/
ccs/lib -L/usr/ucblib -L/usr/local/lib DBI.o
        chmod 755 ./blib/arch/auto/DBI/DBI.so
        cp DBI.bs ./blib/arch/auto/DBI/DBI.bs
        chmod 644 ./blib/arch/auto/DBI/DBI.bs
        PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib -I/usr/
local/lib/perl5/MIServer-S-svr4 -I/usr/local/lib/perl5 -e 'use Test::Harness qw(
&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
Can't locate FileHandle.pm in @INC at /usr/local/lib/perl5/Test/Harness.pm line
6.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/Test/Harness.pm line 6
.
BEGIN failed--compilation aborted at -e line 1.
*** Error code 2 (bu21)

make: fatal error.

perl -V :
Summary of my perl5 (5.0 patchlevel 2) configuration:
  Platform:
    osname=svr4, osver=, archname=MIServer-S-svr4
    Linker and Libraries:
    ld='/usr/ccs/bin/cc', ldflags ='-L/usr/ccs/lib -L/usr/ucblib -L/usr/local/li
b'
    libpth=/usr/lib /usr/local/lib /usr/ccs/lib /lib /usr/ucblib
    libs=-lsocket -lnsl -ldbm -ldl -lm -lc -lcrypt -lucb
    libc=/usr/ccs/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-Kpic', lddlflags='-G -L/usr/ccs/lib -L/usr/ucblib -L/usr/local/
lib'

@INC: /develop/home/phi/perlbin/lib /usr/local/lib/perl5/MIServer-S-svr4 /usr/lo
cal/lib/perl5 /usr/local/lib/perl5/site_perl/MIServer-S-svr4 /usr/local/lib/perl
5/site_perl /usr/local/lib/perl5/MIServer-S-svr4 .
  uname='holmes holmes 1.1-94c079 dcosx miserver-s 8512 r3000 '
    hint=previous, useposix=true
  Compiler:
    cc='/usr/ccs/bin/cc', optimize='-O', gccversion=
    cppflags='-I/usr/include -I/usr/ucbinclude'
    ccflags ='-I/usr/include -I/usr/ucbinclude'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15

Thanks for any help , Steve Musgrave


------ =_NextPart_000_01BB48C7.404B7780--

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19398-13@oink>;
          Fri, 24 May 1996 07:09:02 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832884672:20555:3; Thu, 23 May 96 21:51:12 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa19009; 23 May 96 21:50 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id KAA02392 for dbi-users-real; Thu, 23 May 1996 10:09:07 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mas.atext.com (mas.atext.com [204.62.245.24]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id KAA02388 
          for <dbi-users@fugue.com>; Thu, 23 May 1996 10:09:07 -0700
Received: (from parva@localhost) by mas.atext.com (8.6.9/8.6.9) id KAA18930;
          Thu, 23 May 1996 10:08:35 -0700
Date: Thu, 23 May 1996 10:08:35 -0700
From: Parva Oskoui <parva@excite.com>
Message-Id: <199605231708.KAA18930@mas.atext.com>
To: dbi-users@fugue.com
Subject: Calling PL/SQL procedures from Perl using oraperl


I am sorry to put my question to such a wide group of people. We have
just installed DBI and DBD::Oraperl, and need to be able to connect to our 
database using an ora_login (we think we understand how to do that, but
examples will be appreciated), and very importantly need to call pl/sql
procedures and pass data between the Perl script and the procedure.
Does anyone have any simple examples of this which could be emailed to me?

Thank you.
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <19396-15@oink>;
          Fri, 24 May 1996 07:09:16 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832894176:27322:3; Fri, 24 May 96 00:29:36 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa25537; 24 May 96 0:28 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id MAA03357 for dbi-users-real; Thu, 23 May 1996 12:39:45 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from ARKADE.com (mail.arkade.com [38.250.127.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id MAA03353 
          for <dbi-users@fugue.com>; Thu, 23 May 1996 12:39:41 -0700
Received: from [38.250.127.252] by ARKADE.com (SMTPD32-960308) id AEF378800EA;
          Thu May 23 15:39:31 1996
Date: Thu, 23 May 96 15:40:33 EST
Message-Id: <9605231540.AA00310@JOHN.ARKADE.COM>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
From: john w clemens <jwclemens@arkade.com>
Reply-To: jwclemens <jwclemens@arkade.com>
X-Sender: <jwclemen@JOHN.ARKADE.COM>
To: dbi-users@fugue.com
Subject: unsubscribe
X-Mailer: <IMail v2.50>

please unsubscribe
jwclemens@arkade.com
thanks


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19398-18@oink>;
          Fri, 24 May 1996 07:09:49 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832895578:15614:1; Fri, 24 May 96 00:52:58 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa14805; 24 May 96 0:52 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id LAA02779 for dbi-users-real; Thu, 23 May 1996 11:10:41 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from rhino.coe.missouri.edu (rhino.coe.missouri.edu [128.206.59.236]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id LAA02775 
          for <dbi-users@fugue.com>; Thu, 23 May 1996 11:10:38 -0700
Received: from localhost (pixel@localhost) 
          by rhino.coe.missouri.edu (8.7.3/8.7.3) with SMTP id NAA05260 
          for <dbi-users@fugue.com>; Thu, 23 May 1996 13:10:27 -0500 (CDT)
X-Authentication-Warning: rhino.coe.missouri.edu: pixel owned process doing -bs
Date: Thu, 23 May 1996 13:10:27 -0500 (CDT)
From: James Cooper <pixel@tiger.coe.missouri.edu>
To: dbi-users@fugue.com
Subject: [Q]: LONG data type w/DBD::Oracle
Message-ID: <Pine.SGI.3.93.960523130731.4311I-100000@rhino.coe.missouri.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


Hello,

I'm wondering if there is a problem with inserting LONGs.  I realize that
Oracle does not allow many normal SQL operations (where clause, order by,
etc), but I hadn't read that normal INSERTs won't work.

Basically whenever I insert a row into a table, the LONG field is
truncated at 80 characters. This problem is occurring in SQLPLUS also, so
I doubt it's a DBI problem.

But I was curious if you guys know if a work-around for this.  Otherwise
I guess I'm sticking to VARCHAR2.

Thanks

-- James

.........................................................................
                        James Paul Cooper * Pixel
                         MU College of Education
       pixel@coe.missouri.edu - http://tiger.coe.missouri.edu/~pixel/
.........................................................................

---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <19396-24@oink>;
          Fri, 24 May 1996 07:11:03 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832901799:20959:1; Fri, 24 May 96 02:36:39 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa20160; 24 May 96 2:35 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id PAA04393 for dbi-users-real; Thu, 23 May 1996 15:33:14 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from sultan.hsii.ccare.com (sultan.hsii.ccare.com [192.101.181.3]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id PAA04389 
          for <dbi-users@fugue.com>; Thu, 23 May 1996 15:33:13 -0700
Received: from msgw.hsii.ccare.com by SULTAN.HSII.CCARE.COM (PMDF V5.0-5 #4597) 
          id <01I51XK9VJC0001NAG@SULTAN.HSII.CCARE.COM> 
          for dbi-users@fugue.com; Thu, 23 May 1996 17:32:55 -0500 (CDT)
Received: by msgw.hsii.ccare.com with Microsoft Mail 
          id <31A4E794@msgw.hsii.ccare.com>;
          Thu, 23 May 1996 17:32:52 -0500 (CDT)
Date: Thu, 23 May 1996 18:29:00 -0500 (CDT)
From: "Willard, Keith" <KWillard@msmail.hsii.ccare.com>
Subject: DBD::Oracle v0.30 building against Oracle 7.3.2
To: dbilist <dbi-users@fugue.com>
Message-id: <31A4E794@msgw.hsii.ccare.com>
X-Mailer: Microsoft Mail V3.0
Content-transfer-encoding: 7BIT
Encoding: 15 TEXT


I am  running Oracle 7.3.2 and am having problems building the DBD::Oracle 
v0.30  module on my solaris 2.4 platform.   The README file  says "Automatic 
configuration from Oracle 7.3 is not yet working".  Does anyone have the 
hand changes I need to make to get this to build?

I have previously successfully built the DBD against lower versions of 
Oracle but the Oracle directories have changed somewhat.

thanks,

 --keith willard



---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <19396-26@oink>;
          Fri, 24 May 1996 07:11:30 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832904057:03130:1; Fri, 24 May 96 03:14:17 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa02848; 24 May 96 3:13 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id QAA04555 for dbi-users-real; Thu, 23 May 1996 16:21:29 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from otto.bf.rmit.edu.au (orafaq@otto.bf.rmit.edu.au [131.170.195.1]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id QAA04551 
          for <dbi-users@fugue.com>; Thu, 23 May 1996 16:21:27 -0700
Received: (from orafaq@localhost) by otto.bf.rmit.edu.au (8.7.1/8.7.1) 
          id JAA15839 for dbi-users@fugue.com;
          Fri, 24 May 1996 09:21:22 +1000 (EST)
From: Oracle FAQ <orafaq@bf.rmit.edu.au>
Message-Id: <199605232321.JAA15839@otto.bf.rmit.edu.au>
Subject: Re: examples and doc for DBD-Oracle (fwd)
To: dbi-users@fugue.com
Date: Fri, 24 May 1996 09:21:22 +1000 (EST)
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Forwarded message:

I haven't got any DBI::Oracle scripts archive
(Can somebody send some, and I'll put them in)
But oraperl demos, some quite sophisticated
stuff is findable under
ftp://ftp.bf.rmit.edu.au/pub/Oracle/sources/......

Jeff Stander's stuff stands out for Oraperl.
Directories of interest might be
	/pub/Oracle/sources
	/pub/Oracle/sources/jstander
	/pub/Oracle/sources/jstander/distrib
	/pub/Oracle/sources/jstander/tsmlib
	/pub/Oracle/sources/jstander/wdbex
	/pub/Oracle/sources/web/scripts
	/pub/Oracle/sources/dba
	/pub/Oracle/sources/dba/imp2sql7
	/pub/Oracle/sources/Lonnroth
	/pub/Oracle/sources/harrison

Send stuff for the archive in
	[.{cpio|tar|zip}][.{gz|Z|zip}].uu
	format if by mail to me (orafaq@bf.rmit.edu.au)
	And drop the .uu if using ftp, putting file(s) in
	ftp://ftp.bf.rmit.edu.au/incoming/Oracle

---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <19499-7@oink>;
          Fri, 24 May 1996 07:12:48 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832912964:15457:2; Fri, 24 May 96 05:42:44 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa15150; 24 May 96 5:41 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id VAA05503 for dbi-users-real; Thu, 23 May 1996 21:37:01 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from colossus.cse.psu.edu (root@colossus.cse.psu.edu [130.203.1.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id VAA05499 
          for <dbi-users@fugue.com>; Thu, 23 May 1996 21:36:58 -0700
Received: from localhost by colossus.cse.psu.edu with SMTP id <79374>;
          Fri, 24 May 1996 00:36:47 -0400
X-Mailer: exmh version 1.6.5 12/11/95
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: "Daugharty, Thomas" <tomd@broc.com>
cc: dbi-users@fugue.com
Subject: Re: DBI Perl for Oracle
In-reply-to: Your message of "Thu, 23 May 1996 22:50:13 EDT." <c=US%a=_%p=Brock_Internatio%l=NTEASTPO-960524025013Z-2770@nteastpo.broc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 24 May 1996 00:34:48 -0400
From: John D Groenveld <groenvel@cse.psu.edu>
Message-Id: <96May24.003647edt.79374@colossus.cse.psu.edu>

Run, dont walk, back to CPAN for perl5.002!
John

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19398-35@oink>;
          Fri, 24 May 1996 07:13:40 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832906656:18324:0; Fri, 24 May 96 03:57:36 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa18151; 24 May 96 3:56 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa07373; 24 May 96 3:56 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id TAA05224 for dbi-users-real; Thu, 23 May 1996 19:50:26 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from atl.broc.com (firewall-user@atl.broc.com [204.7.200.10]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id TAA05220 
          for <dbi-users@fugue.com>; Thu, 23 May 1996 19:50:24 -0700
Received: by atl.broc.com; id WAA08137; Thu, 23 May 1996 22:46:15 -0400 (EDT)
Received: from ak47.broc.com(204.7.209.50) by atl.broc.com via smap (V3.1) 
          id xma008133; Thu, 23 May 96 22:46:09 -0400
Received: from nteastpo.broc.com by ak47.broc.com (AIX 3.2/UCB 5.64/4.03) 
          id AA16446; Thu, 23 May 1996 22:37:58 -0500
Received: by nteastpo.broc.com with Microsoft Exchange (IMC 4.0.837.3) 
          id <01BB48FA.34BE2100@nteastpo.broc.com>;
          Thu, 23 May 1996 22:50:14 -0400
Message-Id: <c=US%a=_%p=Brock_Internatio%l=NTEASTPO-960524025013Z-2770@nteastpo.broc.com>
From: "Daugharty, Thomas" <tomd@broc.com>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>, 
    "'Tim.Bunce@ig.co.uk'" <Tim.Bunce@ig.co.uk>
Cc: "'dscott@broc.com'" <dscott@broc.com>
Subject: DBI Perl for Oracle
Date: Thu, 23 May 1996 22:50:13 -0400
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.837.3
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

I managed to download a complete DBI Perl solution from ftp.uu.net. I 
found Perl to install quite well but after a smashing success with Perl 
the DBI makefile for perl simply dies when using the use command on 
line 6 of the perl makefile. I think the version of Perl I installed is 
incorrect. Can you verify this for me by reviewing the output I 
included with this email.

Thanks

Command run: perl Makefile.PL

Results:

Argument "(undef)" isn't numeric for numeric lt at 
/opt/perl5/lib/perl5/Exporter.pm line 177
	Exporter::require_version called at /opt/perl5/lib/perl5/Exporter.pm 
line 125
	Exporter::export called at /opt/perl5/lib/perl5/Exporter.pm line 163
	Exporter::import called at Makefile.PL line 6
	main::BEGIN called at /opt/perl5/lib/perl5/ExtUtils/MakeMaker.pm line 
0
	(eval) called at /opt/perl5/lib/perl5/ExtUtils/MakeMaker.pm line 0
ExtUtils::MakeMaker 5.16 required--this is only version (undef) at 
Makefile.PL line 6
BEGIN failed--compilation aborted at Makefile.PL line 6.

Results of perl -v:

This is perl, version 5.001

	Unofficial patchlevel 1m.

Copyright 1987-1994, Larry Wall

Perl may be copied only under the terms of either the Artistic License 
or the
GNU General Public License, which may be found in the Perl 5.0 source 
kit.

Please forward me an email or feel free to call me at 770-431-1338
an alternative email address for me is TDaugharty@msn.com
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19558-0@oink>;
          Fri, 24 May 1996 07:15:19 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832918420:13141:1; Fri, 24 May 96 07:13:40 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa12972; 24 May 96 7:13 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id XAA05720 for dbi-users-real; Thu, 23 May 1996 23:07:14 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id XAA05716 
          for <dbi-users@fugue.com>; Thu, 23 May 1996 23:07:10 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id ab22390; 24 May 96 6:06 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id af00526; 24 May 96 7:06 +0100
Received: from ig.co.uk by oink id <16735-0@oink>;
          Thu, 23 May 1996 16:20:22 +0100
Newsgroups: comp.lang.perl.modules
Subject: Re: perl Makefile.PL error for DBD-Oracle-0.31
References: <wvxk9y43hr3.fsf@gateway.novasoft.com>
Apparently-To: dbi-users@fugue.com
Date: Thu, 23 May 1996 16:20:22 +0100
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424
Message-ID: <832918000.526.0@ignite.demon.co.uk>

In article <wvxk9y43hr3.fsf@gateway.novasoft.com>,
B. K. Oxley (binkley) <Brian.Oxley@Novasoft.COM> <Brian.Oxley@NOVASOFT.COM> wrote:
> Does anyone have a suggestion about fixing this error in building
> DBD-Oracle-0.31?
> 
>   $perl Makefile.PL 
> 
>   Configuring DBD::Oracle ...
> 
>   	Remember to actually read the README file!

        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

In the README file the best method for reporting problems (e.g., via
the dbi-users mailing list) is made clear.
 
>   Using Oracle in /softvol/oracle/7.1.6.2
>   Oracle sysliblist: -lsocket -lnsl -lm -ldl -laio
>   Can't locate object method "new" via package "FileHandle" at Makefile.PL line 272.
> 
> The offending line is:
> 
>     my $fh = new FileHandle "<$file" or die "Unable to read $file: $!";

I'd forgotten to add a 'use FileHandle;' to the start of Makefile.PL.
I don't know why it worked for me (presumably some other module loaded
FileHandle). The fix is simply to add 'use FileHandle;' to the start of
Makefile.PL.

Sorry for the hassle. I'll make a new release (0.32) asap.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19607-0@oink>;
          Fri, 24 May 1996 07:20:18 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832918494:13495:2; Fri, 24 May 96 07:14:54 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa13010; 24 May 96 7:13 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id XAA05756 for dbi-users-real; Thu, 23 May 1996 23:11:53 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id XAA05752 
          for <dbi-users@fugue.com>; Thu, 23 May 1996 23:11:49 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id ab23432; 24 May 96 6:10 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa00526; 24 May 96 7:06 +0100
Received: from toad by oink with SMTP (PP) id <15951-0@oink>;
          Thu, 23 May 1996 14:27:17 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA15547;
          Thu, 23 May 1996 14:26:50 +0000
Date: Thu, 23 May 1996 14:26:50 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605231326.AA15547@toad.ig.co.uk>
To: groenvel@cse.psu.edu, jposner@clark.net, meekj@pt.cyanamid.com, 
    descarte@hermetica.com, Mark.Robinson@uk.sun.com
Subject: Re: DBI, DBD::Oracle and SQL*Net
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
content-length: 467
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Mark.Robinson@uk.sun.com (Mark Robinson - Project Engineer - SunIntegration)
> 
> howdy
> 
> thanks to all who replied so promptly.
> 
> for the record, the requirements for remote access using DBI,
> DBD::Oracle and SQL*NetV2 is to have an alias set in `tnsnames.ora' and
> to use it in ora_login as follows:
> 
> 	$lda = ora_login('', 'scott/tiger@alias', '');

Thanks. I think

        $lda = ora_login('alias', 'scott/tiger', '');

will also work.

Tim.
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <19684-0@oink>;
          Fri, 24 May 1996 07:25:54 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832918994:18619:2; Fri, 24 May 96 07:23:14 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa18250; 24 May 96 7:22 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id XAA05785 for dbi-users-real; Thu, 23 May 1996 23:18:49 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id XAA05760;
          Thu, 23 May 1996 23:14:20 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id ad24076; 24 May 96 6:12 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id af00526; 24 May 96 7:06 +0100
Received: from toad by oink with SMTP (PP) id <16814-0@oink>;
          Thu, 23 May 1996 16:49:04 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA16204;
          Thu, 23 May 1996 16:48:57 +0000
Date: Thu, 23 May 1996 16:48:57 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605231548.AA16204@toad.ig.co.uk>
To: dbi-announce@fugue.com
Subject: Problem with FileHandle in DBD::Oracle 0.31 Makefile.PL
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
content-length: 532
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424

In order to build DBD::Oracle 0.31 on some versions of perl
(specifically 5.00201 or later, e.g,  p5p 'pumpkin' versions)
you'll need to add the following line to your Makefile.PL
near the top:

	# Some MakeMaker's forged some FileHandle methods
	require FileHandle unless defined(&FileHandle::new);

The comment explains why I didn't spot this sooner and why the
fancy conditional require is required.

I'll release a new version soon but I'm holding back a day or so
hoping to have time to look into a possible memory leak.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19741-1@oink>;
          Fri, 24 May 1996 07:35:26 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832919594:20484:0; Fri, 24 May 96 07:33:14 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa20135; 24 May 96 7:32 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa02795; 24 May 96 7:31 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id XAA05764 for dbi-announce-real; Thu, 23 May 1996 23:14:23 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id XAA05760;
          Thu, 23 May 1996 23:14:20 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id ad24076; 24 May 96 6:12 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id af00526; 24 May 96 7:06 +0100
Received: from toad by oink with SMTP (PP) id <16814-0@oink>;
          Thu, 23 May 1996 16:49:04 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA16204;
          Thu, 23 May 1996 16:48:57 +0000
Date: Thu, 23 May 1996 16:48:57 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605231548.AA16204@toad.ig.co.uk>
To: dbi-announce@fugue.com
Subject: Problem with FileHandle in DBD::Oracle 0.31 Makefile.PL
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
content-length: 532
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424

In order to build DBD::Oracle 0.31 on some versions of perl
(specifically 5.00201 or later, e.g,  p5p 'pumpkin' versions)
you'll need to add the following line to your Makefile.PL
near the top:

	# Some MakeMaker's forged some FileHandle methods
	require FileHandle unless defined(&FileHandle::new);

The comment explains why I didn't spot this sooner and why the
fancy conditional require is required.

I'll release a new version soon but I'm holding back a day or so
hoping to have time to look into a possible memory leak.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19741-4@oink>;
          Fri, 24 May 1996 07:35:52 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832919596:20468:1; Fri, 24 May 96 07:33:16 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa20153; 24 May 96 7:32 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa02795; 24 May 96 7:31 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id XAA05764 for dbi-announce-real; Thu, 23 May 1996 23:14:23 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id XAA05760;
          Thu, 23 May 1996 23:14:20 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id ad24076; 24 May 96 6:12 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id af00526; 24 May 96 7:06 +0100
Received: from toad by oink with SMTP (PP) id <16814-0@oink>;
          Thu, 23 May 1996 16:49:04 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA16204;
          Thu, 23 May 1996 16:48:57 +0000
Date: Thu, 23 May 1996 16:48:57 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605231548.AA16204@toad.ig.co.uk>
To: dbi-announce@fugue.com
Subject: Problem with FileHandle in DBD::Oracle 0.31 Makefile.PL
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
content-length: 532
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424

In order to build DBD::Oracle 0.31 on some versions of perl
(specifically 5.00201 or later, e.g,  p5p 'pumpkin' versions)
you'll need to add the following line to your Makefile.PL
near the top:

	# Some MakeMaker's forged some FileHandle methods
	require FileHandle unless defined(&FileHandle::new);

The comment explains why I didn't spot this sooner and why the
fancy conditional require is required.

I'll release a new version soon but I'm holding back a day or so
hoping to have time to look into a possible memory leak.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <23995-0@oink>;
          Fri, 24 May 1996 12:16:52 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832931166:29632:0; Fri, 24 May 96 10:46:06 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa29285; 24 May 96 10:45 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa17610; 24 May 96 10:44 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id CAA06267 for dbi-users-real; Fri, 24 May 1996 02:39:52 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from hagar.jfleming.com ([202.40.36.34]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id CAA06258;
          Fri, 24 May 1996 02:36:36 -0700
From: steven.lw.chau@jfleming.com
Received: from jfleming.com id sma009602;
          Fri May 24 17:36:09 1996 (IMA Internet Exchange 1.04b) id 1a582060;
          Fri, 24 May 96 17:31:50 +0800
Mime-Version: 1.0
Date: Fri, 24 May 1996 17:27:03 +0800
Message-Id: <1a582060@jfleming.com>
Subject: Unsubscribe please
To: dbi-announce@fugue.com, Tim Bunce <Tim.Bunce@ig.co.uk>
Cc: dbi-users@fugue.com
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Description: cc:Mail note part

     Unsubscribe please


****************************************************************************
This communication is confidential to Jardine Fleming and is
intended for use only by the addressee.  Jardine Fleming accepts no
responsibility for information, errors or omissions in this communication
or use or misuse thereof or any act done or omitted to be done in 
connection with same.
****************************************************************************
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <23995-2@oink>;
          Fri, 24 May 1996 12:17:03 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832931171:29654:2; Fri, 24 May 96 10:46:11 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa29333; 24 May 96 10:46 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id CAA06262 for dbi-announce-real; Fri, 24 May 1996 02:36:41 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from hagar.jfleming.com ([202.40.36.34]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id CAA06258;
          Fri, 24 May 1996 02:36:36 -0700
From: steven.lw.chau@jfleming.com
Received: from jfleming.com id sma009602;
          Fri May 24 17:36:09 1996 (IMA Internet Exchange 1.04b) id 1a582060;
          Fri, 24 May 96 17:31:50 +0800
Mime-Version: 1.0
Date: Fri, 24 May 1996 17:27:03 +0800
Message-Id: <1a582060@jfleming.com>
Subject: Unsubscribe please
To: dbi-announce@fugue.com, Tim Bunce <Tim.Bunce@ig.co.uk>
Cc: dbi-users@fugue.com
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Description: cc:Mail note part

     Unsubscribe please


****************************************************************************
This communication is confidential to Jardine Fleming and is
intended for use only by the addressee.  Jardine Fleming accepts no
responsibility for information, errors or omissions in this communication
or use or misuse thereof or any act done or omitted to be done in 
connection with same.
****************************************************************************
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <23995-11@oink>;
          Fri, 24 May 1996 12:17:39 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832933525:22085:0; Fri, 24 May 96 11:25:25 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa21962; 24 May 96 11:25 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa27387; 24 May 96 11:24 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id DAA06332 for dbi-users-real; Fri, 24 May 1996 03:19:08 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from carlton.innotts.co.uk (root@carlton.innotts.co.uk [194.176.128.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id DAA06328 
          for <dbi-users@fugue.com>; Fri, 24 May 1996 03:19:05 -0700
Received: from seriale05.innotts.co.uk (seriale05.innotts.co.uk [194.176.128.102]) 
          by carlton.innotts.co.uk (8.6.12/8.6.12) with SMTP id LAA20780;
          Fri, 24 May 1996 11:19:50 +0100
Received: by seriale05.innotts.co.uk with Microsoft Mail 
          id <01BB4963.0EE99680@seriale05.innotts.co.uk>;
          Fri, 24 May 1996 11:20:48 +-100
Message-ID: <01BB4963.0EE99680@seriale05.innotts.co.uk>
From: "I.M.& T." <citydev@innotts.co.uk>
To: 'Time Bunce' <Tim.Bunce@ig.co.uk>
Cc: 'Perl DBI' <dbi-users@fugue.com>
Subject: FW: Problems with DBI at Nottingham City Hospital
Date: Fri, 24 May 1996 11:19:11 +-100
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="---- =_NextPart_000_01BB4963.0F0B2840"


------ =_NextPart_000_01BB4963.0F0B2840
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Dear Tim ,

   I got a bit further after copying perl5.002/ext/*/*.pm to
/usr/local/bin/perl5 - DBI built successfully .

However with DBD-Oracle-0.30  , make test produces the following error :

        PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib -I/usr/local/
lib/perl5/MIServer-S-svr4 -I/usr/local/lib/perl5 -e 'use Test::Harness qw(&runte
sts $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............install_driver(Oracle) failed: Can't load './blib/arch/auto/
DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so: /usr/bin/perl: relocation e
rror: symbol not found: _fpsetmask at /usr/local/lib/perl5/DynaLoader.pm line 14
0.
 at blib/lib/DBD/Oracle.pm line 22
        DBI::install_driver called at t/base.t line 16
FAILED tests 4-5
        Failed 2/5 tests, 60.00% okay
        Test returned status 9 (wstat 2304)
Failed 1 test script, 0.00% okay. 2/5 subtests failed, 60.00% okay.
*** Error code 29 (bu21)

make: fatal error.

----------
From: 	I.M.& T.[SMTP:citydev@innotts.co.uk]
Sent: 	23 May 1996 16:44
To: 	'Perl DBI'
Cc: 	'Time Bunce'
Subject: 	RE: Problems with DBI at Nottingham City Hospital

Dear Tim ,

Thanks for the quick response . I've added the edits to DBI .
Unfortunately I have encountered a slight hitch :
 
I've tried various things (short of restructuring the perl5.002 installation tree!)
without finding a solution . 

Thanks for any help , Steve Musgrave at Notts City Hospital

----------
From: 	Tim Bunce[SMTP:Tim.Bunce@ig.co.uk]
Sent: 	15 May 1996 18:25
To: 	citydev@innotts.co.uk
Cc: 	dbi-users@fugue.com
Subject: 	Re: Problems with DBI at Nottingham City Hospital


> From: "I.M.& T." <citydev@innotts.co.uk>
> 
> Dear Tim ,
> 
> I have upgraded a 30,000 line perl 4/oraperl commercial application
> to perl 5 at Nottingham City Hospital on a UNIX Pyramid .
> 
> The application is passing most of the system tests however the following
> has halted progress :
> 
> In Perl 4 ora_bind for a sql update returns 'OK' for failure or the number
> of rows updated for success . 
> 
> In Perl 5.001 DBI-0.65 DBD-Oracle-0.27 ora_bind returns 1 instead
> of 'OK'  and $ora_errno is not set .
> 
> I know this seems odd but it repeats in a small stand alone piece of perl .
> 
> How do I trap errors from ora_bind ?
> 
> Could you suggest a solution to what from our position is a serious problem .
> 
> Regards , Steve Musgrave

Here are two patches (over DBD-Oracle-*0.30*) which will, I think, fix the
incompatibility:

*** 1.39	1996/03/05 02:04:42
--- Oracle.xs	1996/05/15 16:20:10
***************
*** 182,187 ****
--- 182,188 ----
      SV *	sth
      CODE:
      D_imp_sth(sth);
+     int retval;
      if (items > 1) {
  	/* Handle binding supplied values to placeholders	*/
  	int i, error = 0;
***************
*** 201,207 ****
  	    XSRETURN_UNDEF;	/* dbd_bind_ph already registered error	*/
  	}
      }
!     ST(0) = dbd_st_execute(sth) ? &sv_yes : &sv_no;
  
  
  void
--- 202,214 ----
  	    XSRETURN_UNDEF;	/* dbd_bind_ph already registered error	*/
  	}
      }
!     retval = dbd_st_execute(sth);
!     if (retval < 0)
! 	XST_mUNDEF(0);		/* error        		*/
!     else if (retval == 0)
! 	XST_mPV(0, "0E0");	/* true but zero		*/
!     else
! 	XST_mIV(0, retval);	/* typically 1 or rowcount	*/
  
  
  void

*** 1.15	1996/05/07 20:28:50
--- dbdimp.c	1996/05/15 16:02:33
***************
*** 620,626 ****
  
  
  int
! dbd_st_execute(sth)
      SV *sth;
  {
      D_imp_sth(sth);
--- 620,626 ----
  
  
  int
! dbd_st_execute(sth)	/* <0 is error, >=0 is ok (row count) */
      SV *sth;
  {
      D_imp_sth(sth);
***************
*** 628,643 ****
      if (!imp_sth->done_desc) {
  	/* describe and allocate storage for results		*/
  	if (!dbd_describe(sth, imp_sth))
! 	    return 0; /* dbd_describe already called ora_error()	*/
      }
  
      /* Trigger execution of the statement			*/
      if (oexec(imp_sth->cda)) {  /* may change to oexfet later	*/
          ora_error(sth, imp_sth->cda, imp_sth->cda->rc, "oexec error");
! 	return 0;
      }
      DBIc_ACTIVE_on(imp_sth);
!     return 1;
  }
  
  
--- 628,643 ----
      if (!imp_sth->done_desc) {
  	/* describe and allocate storage for results		*/
  	if (!dbd_describe(sth, imp_sth))
! 	    return -1; /* dbd_describe already called ora_error()	*/
      }
  
      /* Trigger execution of the statement			*/
      if (oexec(imp_sth->cda)) {  /* may change to oexfet later	*/
          ora_error(sth, imp_sth->cda, imp_sth->cda->rc, "oexec error");
! 	return -1;
      }
      DBIc_ACTIVE_on(imp_sth);
!     return imp_sth->cda->rpc;	/* row count	*/
  }
  
  

Please test and let me know.

Note that all perl4 oraperl's 'OK's are now represented as '0E0' to
avoid perl5 -w warnings.

Developers of other DBD drivers should apply the first patch to their
XS file and make a corresponding change to their dbd_st_execute function.

Tim.




------ =_NextPart_000_01BB4963.0F0B2840
Content-Type: text/plain; name="prob.txt"
Content-Transfer-Encoding: 7bit


Dear Tim ,

Could you suggest a solution to :

I have the following problem with building DBI-0.69 after
installation of perl5.002 . FileHandle.pm is not under
@INC paths . ( Note DBI-0.65 was OK with perl5.001m in the
same environment )

make test

.....
.....
Running Mkbootstrap for DBI ()
        chmod 644 DBI.bs
        LD_RUN_PATH="" /usr/ccs/bin/cc -o ./blib/arch/auto/DBI/DBI.so -G -L/usr/
ccs/lib -L/usr/ucblib -L/usr/local/lib DBI.o
        chmod 755 ./blib/arch/auto/DBI/DBI.so
        cp DBI.bs ./blib/arch/auto/DBI/DBI.bs
        chmod 644 ./blib/arch/auto/DBI/DBI.bs
        PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib -I/usr/
local/lib/perl5/MIServer-S-svr4 -I/usr/local/lib/perl5 -e 'use Test::Harness qw(
&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
Can't locate FileHandle.pm in @INC at /usr/local/lib/perl5/Test/Harness.pm line
6.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/Test/Harness.pm line 6
.
BEGIN failed--compilation aborted at -e line 1.
*** Error code 2 (bu21)

make: fatal error.

perl -V :
Summary of my perl5 (5.0 patchlevel 2) configuration:
  Platform:
    osname=svr4, osver=, archname=MIServer-S-svr4
    Linker and Libraries:
    ld='/usr/ccs/bin/cc', ldflags ='-L/usr/ccs/lib -L/usr/ucblib -L/usr/local/li
b'
    libpth=/usr/lib /usr/local/lib /usr/ccs/lib /lib /usr/ucblib
    libs=-lsocket -lnsl -ldbm -ldl -lm -lc -lcrypt -lucb
    libc=/usr/ccs/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-Kpic', lddlflags='-G -L/usr/ccs/lib -L/usr/ucblib -L/usr/local/
lib'

@INC: /develop/home/phi/perlbin/lib /usr/local/lib/perl5/MIServer-S-svr4 /usr/lo
cal/lib/perl5 /usr/local/lib/perl5/site_perl/MIServer-S-svr4 /usr/local/lib/perl
5/site_perl /usr/local/lib/perl5/MIServer-S-svr4 .
  uname='holmes holmes 1.1-94c079 dcosx miserver-s 8512 r3000 '
    hint=previous, useposix=true
  Compiler:
    cc='/usr/ccs/bin/cc', optimize='-O', gccversion=
    cppflags='-I/usr/include -I/usr/ucbinclude'
    ccflags ='-I/usr/include -I/usr/ucbinclude'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15

Thanks for any help , Steve Musgrave


------ =_NextPart_000_01BB4963.0F0B2840--

---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <25374-0@oink>;
          Fri, 24 May 1996 17:04:21 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832938487:15000:2; Fri, 24 May 96 12:48:07 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa13234; 24 May 96 12:47 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id EAA06482 for dbi-users-real; Fri, 24 May 1996 04:37:38 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id EAA06478 
          for <dbi-users@fugue.com>; Fri, 24 May 1996 04:37:34 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id ae17340; 24 May 96 11:28 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ah10657; 24 May 96 12:17 +0100
Received: from toad by oink with SMTP (PP) id <23836-0@oink>;
          Fri, 24 May 1996 11:37:43 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA19283;
          Fri, 24 May 1996 11:37:36 +0000
Date: Fri, 24 May 1996 11:37:36 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605241037.AA19283@toad.ig.co.uk>
To: dbi-users@fugue.com, KWillard@msmail.hsii.ccare.com
Subject: Re: DBD::Oracle v0.30 building against Oracle 7.3.2
X-Sun-Charset: US-ASCII
content-length: 422
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: "Willard, Keith" <KWillard@msmail.hsii.ccare.com>
> 
> I am  running Oracle 7.3.2 and am having problems building the DBD::Oracle 
> v0.30  module on my solaris 2.4 platform.   The README file  says "Automatic 
> configuration from Oracle 7.3 is not yet working".  Does anyone have the 
> hand changes I need to make to get this to build?

Did you not see my announcement releasing 0.31?

Get that version.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25356-5@oink>;
          Fri, 24 May 1996 17:06:26 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832938403:26314:4; Fri, 24 May 96 12:46:43 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25692; 24 May 96 12:45 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id EAA06502 for dbi-users-real; Fri, 24 May 1996 04:42:26 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id EAA06498 
          for <dbi-users@fugue.com>; Fri, 24 May 1996 04:42:23 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ac20816; 24 May 96 12:35 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa10657; 24 May 96 12:16 +0100
Received: from toad by oink with SMTP (PP) id <23661-0@oink>;
          Fri, 24 May 1996 10:49:18 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA19168;
          Fri, 24 May 1996 10:49:10 +0000
Date: Fri, 24 May 1996 10:49:10 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605240949.AA19168@toad.ig.co.uk>
To: dbi-users@fugue.com, citydev@innotts.co.uk
Subject: RE: Problems with DBI at Nottingham City Hospital
X-Sun-Charset: US-ASCII
content-length: 741
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: "I.M.& T." <citydev@innotts.co.uk>
> 
> Dear Tim ,
> 
> Thanks for the quick response . I've added the edits to DBI .
> Unfortunately I have encountered a slight hitch :
>  
> I've tried various things (short of restructuring the perl5.002 installation tree!)
> without finding a solution . 

A solution to what?

Tim.

> ----------
> From: Tim Bunce
>
> > From: "I.M.& T." <citydev@innotts.co.uk>
> > 
> > In Perl 4 ora_bind for a sql update returns 'OK' for failure or the number
> > of rows updated for success . 
> > 
> > In Perl 5.001 DBI-0.65 DBD-Oracle-0.27 ora_bind returns 1 instead
> > of 'OK'  and $ora_errno is not set .
> 
> Here are two patches (over DBD-Oracle-*0.30*) which will, I think, fix the
> incompatibility:
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25428-2@oink>;
          Fri, 24 May 1996 17:08:20 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832940246:15811:4; Fri, 24 May 96 13:17:26 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa15381; 24 May 96 13:16 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id FAA06580 for dbi-users-real; Fri, 24 May 1996 05:12:59 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id FAA06576 
          for <dbi-users@fugue.com>; Fri, 24 May 1996 05:12:52 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ao20036; 24 May 96 12:32 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ac10657; 24 May 96 12:17 +0100
Received: from toad by oink with SMTP (PP) id <23735-0@oink>;
          Fri, 24 May 1996 11:07:22 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA19205;
          Fri, 24 May 1996 11:07:15 +0000
Date: Fri, 24 May 1996 11:07:15 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605241007.AA19205@toad.ig.co.uk>
To: dbi-users@fugue.com, tomd@broc.com
Subject: Re: DBI Perl for Oracle
Cc: dscott@broc.com
X-Sun-Charset: US-ASCII
content-length: 466
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: "Daugharty, Thomas" <tomd@broc.com>
> 
> I managed to download a complete DBI Perl solution from ftp.uu.net. I 
> found Perl to install quite well but after a smashing success with Perl 
> the DBI makefile for perl simply dies when using the use command on 
> line 6 of the perl makefile. I think the version of Perl I installed is 
> incorrect. Can you verify this for me by reviewing the output I 
> included with this email.

Upgrade to Perl5.002.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25428-11@oink>;
          Fri, 24 May 1996 17:10:27 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832946744:26571:1; Fri, 24 May 96 15:05:44 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa26106; 24 May 96 15:04 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa23274; 24 May 96 15:04 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id GAA06849 for dbi-announce-real; Fri, 24 May 1996 06:56:33 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from ccpntc1.in2p3.fr (ccpntc1.in2p3.fr [134.158.69.171]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id GAA06840;
          Fri, 24 May 1996 06:55:38 -0700
Received: from ccpntc1 (localhost [127.0.0.1]) 
          by ccpntc1.in2p3.fr (8.7.3/8.7.3) with SMTP id PAA10982;
          Fri, 24 May 1996 15:55:30 +0200 (METDST)
Message-ID: <31A5BFD1.4586@cc.in2p3.fr>
Date: Fri, 24 May 1996 15:55:29 +0200
From: Philippe Chaleat <chaleat@cc.in2p3.fr>
Organization: Centre de calcul de l'IN2P3
X-Mailer: Mozilla 2.02 (X11; I; HP-UX A.09.05 9000/735)
MIME-Version: 1.0
To: dbi-announce@fugue.com, Tim Bunce <Tim.Bunce@ig.co.uk>
CC: dbi-users@fugue.com
Subject: Unsubscribe please
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Unsubscribe please chaleat@cc.in2p3.fr
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25428-12@oink>;
          Fri, 24 May 1996 17:10:37 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832946811:27255:0; Fri, 24 May 96 15:06:51 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa26811; 24 May 96 15:06 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa22756; 24 May 96 15:04 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id GAA06844 for dbi-users-real; Fri, 24 May 1996 06:55:41 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from ccpntc1.in2p3.fr (ccpntc1.in2p3.fr [134.158.69.171]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id GAA06840;
          Fri, 24 May 1996 06:55:38 -0700
Received: from ccpntc1 (localhost [127.0.0.1]) 
          by ccpntc1.in2p3.fr (8.7.3/8.7.3) with SMTP id PAA10982;
          Fri, 24 May 1996 15:55:30 +0200 (METDST)
Message-ID: <31A5BFD1.4586@cc.in2p3.fr>
Date: Fri, 24 May 1996 15:55:29 +0200
From: Philippe Chaleat <chaleat@cc.in2p3.fr>
Organization: Centre de calcul de l'IN2P3
X-Mailer: Mozilla 2.02 (X11; I; HP-UX A.09.05 9000/735)
MIME-Version: 1.0
To: dbi-announce@fugue.com, Tim Bunce <Tim.Bunce@ig.co.uk>
CC: dbi-users@fugue.com
Subject: Unsubscribe please
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Unsubscribe please chaleat@cc.in2p3.fr
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27220-5@oink>;
          Fri, 24 May 1996 19:51:26 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832958984:02804:0; Fri, 24 May 96 18:29:44 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa02515; 24 May 96 18:29 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa18631; 24 May 96 18:28 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id KAA07408 for dbi-users-real; Fri, 24 May 1996 10:18:03 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id KAA07397 
          for <dbi-users@fugue.com>; Fri, 24 May 1996 10:16:23 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ab06170; 24 May 96 17:45 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa21601; 24 May 96 17:04 +0100
Received: from toad by oink with SMTP (PP) id <24374-0@oink>;
          Fri, 24 May 1996 12:24:23 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA19453;
          Fri, 24 May 1996 12:24:17 +0000
Date: Fri, 24 May 1996 12:24:17 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605241124.AA19453@toad.ig.co.uk>
To: citydev@innotts.co.uk
Subject: Re: FW: Problems with DBI at Nottingham City Hospital
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
content-length: 842
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: "I.M.& T." <citydev@innotts.co.uk>
> To: 'Time Bunce' <Tim.Bunce@ig.co.uk>

Father Time eh?

:-)

>    I got a bit further after copying perl5.002/ext/*/*.pm to
> /usr/local/bin/perl5 - DBI built successfully .

If you had to do this then you have perl problems and I'm going to
be _much_ less inclined to spend my time helping you with DBI/DBD
problems that _may_ follow on from that.

(For example, many ext/*/*.pm's need to be AutoSplit before working.)

Get yourself a totally clean, fresh and tested perl 5.002 asap.
rm -rf /usr/local/bin/perl5 if required.

> t/base..............install_driver(Oracle) failed: Can't load './blib/arch/auto/
> DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so: /usr/bin/perl: relocation e
> rror: symbol not found: _fpsetmask at /usr/local/lib/perl5/DynaLoader.pm

I've no idea. Sorry.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03863-13@oink>;
          Mon, 27 May 1996 07:08:27 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832972211:22607:0; Fri, 24 May 96 22:10:11 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa21853; 24 May 96 22:09 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa20662; 24 May 96 22:08 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id IAA07124 for dbi-announce-real; Fri, 24 May 1996 08:35:18 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from uswgmn1.uswc.uswest.com (uswgmn1.uswest.com [204.147.87.74]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id IAA07120 
          for <dbi-announce@fugue.com>; Fri, 24 May 1996 08:35:16 -0700
Received: (from smap@localhost) by uswgmn1.uswc.uswest.com (8.7.1/8.7.1) 
          id KAA12826 for <dbi-announce@fugue.com>;
          Fri, 24 May 1996 10:34:45 -0500 (CDT)
Received: from egate.mnet.uswest.com(151.116.23.138) by uswgmn1.uswc.uswest.com 
          via smap (V1.3) id sma012807; Fri May 24 10:33:27 1996
Received: from smokey.ecte.uswc.uswest.com (smokey.ecte.uswc.uswest.com [151.116.109.68]) 
          by egate.mnet.uswest.com (8.7.1/8.7.1) with ESMTP id JAA09499 
          for <dbi-announce@fugue.com>; Fri, 24 May 1996 09:33:28 -0600 (MDT)
Received: from jannu.ecte.uswc.uswest.com (jannu [151.116.138.124]) 
          by smokey.ecte.uswc.uswest.com (8.6.11/uswc-hub.950320) with ESMTP 
          id JAA00500 for <dbi-announce@fugue.com>;
          Fri, 24 May 1996 09:33:25 -0600
Received: by jannu.ecte.uswc.uswest.com (1.39.111.2/uswc-hpux9.05-server.950106) 
          id AA172012034; Fri, 24 May 1996 09:33:55 -0600
From: Pat Hosokawa <phosoka@lookout.ecte.uswc.uswest.com>
Message-Id: <199605241533.AA172012034@jannu.ecte.uswc.uswest.com>
Subject: unsubscribe
To: dbi-announce@fugue.com
Date: Fri, 24 May 1996 9:33:54 MDT
X-Mailer: Elm [revision: 111.1]

unsubscribe please
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03907-8@oink>;
          Mon, 27 May 1996 07:12:46 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832982100:07099:0; Sat, 25 May 96 00:55:00 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa06597; 25 May 96 0:54 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa08182; 25 May 96 0:53 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id NAA08358 for dbi-users-real; Fri, 24 May 1996 13:33:47 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from cvrelay.cv.com (cvrelay.CV.COM [130.21.162.1]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id NAA08354 
          for <dbi-users@fugue.com>; Fri, 24 May 1996 13:33:33 -0700
Received: from dm-server.cv.com (dm-server.CV.COM [130.21.231.252]) 
          by cvrelay.cv.com (8.6.9/8.6.9) with SMTP id QAA14071 
          for <dbi-users@fugue.com>; Fri, 24 May 1996 16:36:53 -0400
Received: from cobra.cv.com (martl) by dm-server.cv.com (5.0/SMI-SVR4) 
          id AA17472; Fri, 24 May 1996 22:29:08 +0200
Received: by cobra.cv.com (5.x/SMI-SVR4) id AA00696;
          Fri, 24 May 1996 22:27:46 +0200
Date: Fri, 24 May 1996 22:27:46 +0200
From: krm@dm-server.cv.com
Message-Id: <9605242027.AA00696@cobra.cv.com>
To: pixel@tiger.coe.missouri.edu
Subject: Re: [Q]: LONG data type w/DBD::Oracle
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
content-length: 743


Hi,

I don't really agree..
order by works.
where works.

Did you do a 
% perldoc Oraperl
and read about $ora_long?

you may also try
% sql user/pass 'select * from tab where tname like '"'A%'"' order by tname desc'

which works fine for me (and I *have* tables starting with A)

-------------------------------------------------------------------------------
    __________  __      
   /   ______/ / /   Martin Kraegeloh
  |   /       / /   Computervision Deutschland GmbH
  |   \      / /   Carl-Zeiss-Ring 5
  |    \    / /   85737 Ismaning
  |     \  / /   Tel. ...89 96071 128
  |      \/ /   Fax  ...89 96071 155 (PC) or 106 (Paper)
   \_______/        
-------------------------------------------------------------------------------

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03863-38@oink>;
          Mon, 27 May 1996 07:14:25 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832985964:11197:1; Sat, 25 May 96 01:59:24 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa11076; 25 May 96 1:58 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa26180; 25 May 96 1:56 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id RAA08938 for dbi-users-real; Fri, 24 May 1996 17:48:24 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from click3x.com (fwoutside.click3x.com [199.95.136.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id RAA08934 
          for <dbi-users@fugue.com>; Fri, 24 May 1996 17:48:21 -0700
Received: by clickfw.click3x.com via suspension id <20482>;
          Fri, 24 May 1996 21:20:12 -0400
Received: by clickfw.click3x.com id <20481>; Fri, 24 May 1996 14:11:39 -0400
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 24 May 1996 14:38:42 -0400
To: dbi-users@fugue.com
From: Eric Valinsky <evalinsk@mediacircus.com>
Subject: Make failure for DBD::Oracle/Solaris 2.5
Message-Id: <96May24.141139edt.20481@clickfw.click3x.com>


I have been trying to install DBI 0.69/DBD::Oracle 0.29 on the following
configuration:
        hardware:       SPARC 10
        os:             Solaris 2.5
        compiler:       SPARCompiler C 3.0

I successfully installed DBI, but the make failed on DBD.  I would
appreciate any advice on how to build DBD.

Thanks
Eric Valinsky

P.S.  Here are the gory details:

--- make realclean ----------------------------------------------------------

rm -rf Oracle.c ./blib Makefile.aperl
./blib/arch/auto/DBD/Oracle/extralibs.all perlmain.c mon.out core
so_locations *~ */*~ */*/*~ *.o *.a perl.exe Oracle.bs Oracle.bso
Oracle.def Oracle.exp
mv Makefile Makefile.old 2>/dev/null
rm -rf ./blib/lib/auto/DBD/Oracle ./blib/arch/auto/DBD/Oracle
rm -f ./blib/arch/auto/DBD/Oracle/Oracle.so
./blib/arch/auto/DBD/Oracle/Oracle.bs
rm -f ./blib/arch/auto/DBD/Oracle/Oracle.a ./blib/lib/Oraperl.pm
./blib/lib/oraperl.ph  ./blib/lib/DBD/Oracle.pm
rm -rf Makefile Makefile.old


--- perl Makefile.PL --------------------------------------------------------

Configuring DBD::Oracle ...

        Remember to actually read the README file!

Using Oracle in /oracle/orahome
Oracle sysliblist: -lsocket -lnsl -lm -ldl -laio
Using /oracle/orahome/proc/lib/proc.mk version 1.9
System: perl5.002 sunos sparky 5.5 generic sun4c sparc sunw,sun_4_75
sun4-solaris dl_dlopen.xs
Compiler: cc -O
Oracle proc.mk would have used these values but we override them:
  CC:       ld -dy $(COMPOBJS) $(LDSTRING)
  LDFLAGS:  -L$(LIBHOME)
  LDSTRING: -R /opt/SUNWcluster/lib -Y
P,$(LD_LIBRARY_PATH):/opt/SUNWcluster/lib:/usr/ccs/lib:/usr/lib -Qy -lc
$(COMPOBJ)/crtn.o
See README notes about SPARCompiler on Solaris

Checking if your kit is complete...
Looks good

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBD::Oracle

--- make --------------------------------------------------------------------

umask 0 && cp Oraperl.pm blib/lib/Oraperl.pm
umask 0 && cp oraperl.ph blib/lib/oraperl.ph
umask 0 && cp Oracle.pm blib/lib/DBD/Oracle.pm
/usr/bin/perl -I/usr/local/lib/perl5/sun4-solaris/5.002
-I/usr/local/lib/perl5 /usr/local/lib/perl5/ExtUtils/xsubpp  -typemap
/usr/local/lib/perl5/ExtUtils/typemap Oracle.xs >Oracle.tc && mv Oracle.tc
Oracle.c
cc -c -I/oracle/orahome/rdbms/demo
-I/usr/local/lib/perl5/site_perl/sun4-solaris/DBI
-I/usr/local/lib/perl5/sun4-solaris/5.002/DBI -O -DVERSION=\"0.29\"
-DXS_VERSION=\"0.29\" -Kpic
-I/usr/local/lib/perl5/sun4-solaris/5.002/CORE  Oracle.c
"Oracle.c", line 144: warning: end-of-loop code not reached
"Oracle.c", line 255: warning: end-of-loop code not reached
"Oracle.c", line 264: warning: end-of-loop code not reached
"Oracle.c", line 298: warning: end-of-loop code not reached
"Oracle.c", line 393: warning: end-of-loop code not reached
"Oracle.c", line 397: warning: end-of-loop code not reached
cc -c -I/oracle/orahome/rdbms/demo
-I/usr/local/lib/perl5/site_perl/sun4-solaris/DBI
-I/usr/local/lib/perl5/sun4-solaris/5.002/DBI -O -DVERSION=\"0.29\"
-DXS_VERSION=\"0.29\" -Kpic
-I/usr/local/lib/perl5/sun4-solaris/5.002/CORE  dbdimp.c
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
LD_RUN_PATH="/lib" cc -o blib/arch/auto/DBD/Oracle/Oracle.so -G
-L/usr/local/lib -L/opt/gnu/lib Oracle.o  dbdimp.o -L/oracle/orahome/lib
/oracle/orahome/lib/__fstd.o -locic /oracle/orahome/lib/osntab.o -lsqlnet
-lora -lsqlnet  -lora -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3   -lcore3  `cat
/oracle/orahome/rdbms/lib/sysliblist`   -lsocket -lnsl -lm -ldl -laio
Text relocation remains         referenced
    against symbol      offset  in file
ocirlo                  0x8     /oracle/orahome/lib/libocic.a(orlon.o)
ocirlo                  0xc     /oracle/orahome/lib/libocic.a(orlon.o)
ocibrv                  0xc     /oracle/orahome/lib/libocic.a(obndrv.o)
ocibrv                  0x8     /oracle/orahome/lib/libocic.a(obndrv.o)
ocican                  0x8     /oracle/orahome/lib/libocic.a(ocan.o)
ocican                  0xc     /oracle/orahome/lib/libocic.a(ocan.o)
ociclo                  0x8     /oracle/orahome/lib/libocic.a(oclose.o)
ociclo                  0xc     /oracle/orahome/lib/libocic.a(oclose.o)
ocicof                  0x8     /oracle/orahome/lib/libocic.a(ocof.o)
ocicof                  0xc     /oracle/orahome/lib/libocic.a(ocof.o)
ocicom                  0x8     /oracle/orahome/lib/libocic.a(ocom.o)
ocicom                  0xc     /oracle/orahome/lib/libocic.a(ocom.o)
ocicon                  0xc     /oracle/orahome/lib/libocic.a(ocon.o)
ocicon                  0x8     /oracle/orahome/lib/libocic.a(ocon.o)
ocidfn                  0x8     /oracle/orahome/lib/libocic.a(odefin.o)
ocidfn                  0xc     /oracle/orahome/lib/libocic.a(odefin.o)
ocierr                  0xc     /oracle/orahome/lib/libocic.a(oerhms.o)
ocierr                  0x8     /oracle/orahome/lib/libocic.a(oerhms.o)
ociexe                  0xc     /oracle/orahome/lib/libocic.a(oexec.o)
ociexe                  0x8     /oracle/orahome/lib/libocic.a(oexec.o)
ocifet                  0x8     /oracle/orahome/lib/libocic.a(ofetch.o)
ocifet                  0xc     /oracle/orahome/lib/libocic.a(ofetch.o)
ocilng                  0x8     /oracle/orahome/lib/libocic.a(oflng.o)
ocilng                  0xc     /oracle/orahome/lib/libocic.a(oflng.o)
ocilof                  0x8     /oracle/orahome/lib/libocic.a(ologof.o)
ocilof                  0xc     /oracle/orahome/lib/libocic.a(ologof.o)
ociope                  0x8     /oracle/orahome/lib/libocic.a(oopen.o)
ociope                  0xc     /oracle/orahome/lib/libocic.a(oopen.o)
ocisq7                  0x8     /oracle/orahome/lib/libocic.a(oparse.o)
ocisq7                  0xc     /oracle/orahome/lib/libocic.a(oparse.o)
ocirol                  0xc     /oracle/orahome/lib/libocic.a(orol.o)
ocirol                  0x8     /oracle/orahome/lib/libocic.a(orol.o)
ocidsp                  0x8     /oracle/orahome/lib/libocic.a(odescr.o)
ocidsp                  0xc     /oracle/orahome/lib/libocic.a(odescr.o)
ld: fatal: relocations remain against allocatable but non-writable sections
*** Error code 1
make: Fatal error: Command failed for target
`blib/arch/auto/DBD/Oracle/Oracle.so'

--The present day Systems Architect refuses to die!


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03907-23@oink>;
          Mon, 27 May 1996 07:15:34 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 832990050:09740:3; Sat, 25 May 96 03:07:30 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa09052; 25 May 96 3:06 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id TAA09135 for dbi-users-real; Fri, 24 May 1996 19:02:34 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from engr.orst.edu (ENGR.ORST.EDU [128.193.54.1]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id TAA09131 
          for <dbi-users@fugue.com>; Fri, 24 May 1996 19:02:33 -0700
Received: from ks.ENGR.ORST.EDU (ks.ENGR.ORST.EDU [198.106.200.26]) 
          by engr.orst.edu (8.6.10/8.6.10) with SMTP id TAA08172 
          for <dbi-users@fugue.com>; Fri, 24 May 1996 19:02:27 -0700
Received: by ks.ENGR.ORST.EDU (1.38.193.4/ENGR-Client) id AA27722;
          Fri, 24 May 1996 19:02:45 -0700
Message-Id: <9605250202.AA27722@ks.ENGR.ORST.EDU>
To: dbi-users@fugue.com
Subject: DBI 0.69 not compiling under SunOS 5.3
Date: Fri, 24 May 1996 19:02:45 -0700
From: Eric Altendorf <altender@engr.orst.edu>


I am trying to install DBI 0.69.  The Makefile.PL script worked fine
but when I run make I get the following errors:

	umask 0 && cp DBIXS.h blib/arch/DBI/DBIXS.h
	umask 0 && cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
	umask 0 && cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
	umask 0 && cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
	umask 0 && cp DBI.pm blib/lib/DBI.pm
	gcc -c  -I/usr/local/include -O -DVERSION=\"0.69\"
	-DXS_VERSION=\"0.69\" -fpic
	-I/usr/local/lib/perl5/sun4-solaris/5.002/CORE -Wall -pedantic
	-Wno-comment DBI.c
	In file included from DBIXS.h:13,
					 from DBI.c:19:
	/usr/local/lib/perl5/sun4-solaris/5.002/CORE/perl.h:1342: parse error
	before `top_env'
	/usr/local/lib/perl5/sun4-solaris/5.002/CORE/perl.h:1342: ANSI C
	forbids data definition with no type or storage class
	DBI.c: In function `dbih_setup_handle':
	DBI.c:342: warning: value computed is not used
	DBI.c:355: warning: value computed is not used
	DBI.c:361: warning: value computed is not used
	DBI.c:362: warning: value computed is not used
	DBI.c:363: warning: value computed is not used
	DBI.c:364: warning: value computed is not used
	DBI.c: In function `dbih_sth_bind_col':
	DBI.c:550: warning: value computed is not used
	DBI.c: In function `dbih_set_attr':
	DBI.c:601: warning: value computed is not used
	DBI.c: In function `dbih_get_attr':
	DBI.c:636: warning: value computed is not used
	DBI.c: In function `XS_DBI_dispatch':
	DBI.c:858: warning: value computed is not used
	DBI.c:858: warning: value computed is not used
	*** Error code 1
	make: Fatal error: Command failed for target `DBI.o'

I'm using SunOS 5.3 with gcc 2.7.2 and our Perl version is 5.002.  Any
ideas?  Thanks,

-eric
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03863-50@oink>;
          Mon, 27 May 1996 07:17:01 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833004855:23979:1; Sat, 25 May 96 07:14:15 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa23679; 25 May 96 7:13 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id XAA09690 for dbi-users-real; Fri, 24 May 1996 23:04:07 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from atl.broc.com (firewall-user@atl.broc.com [204.7.200.10]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id XAA09686 
          for <dbi-users@fugue.com>; Fri, 24 May 1996 23:04:04 -0700
Received: by atl.broc.com; id BAA16689; Sat, 25 May 1996 01:59:51 -0400 (EDT)
Received: from ak47.broc.com(204.7.209.50) by atl.broc.com via smap (V3.1) 
          id xma016685; Sat, 25 May 96 01:59:25 -0400
Received: from nteastpo.broc.com by ak47.broc.com (AIX 3.2/UCB 5.64/4.03) 
          id AA19307; Sat, 25 May 1996 01:51:13 -0500
Received: by nteastpo.broc.com with Microsoft Exchange (IMC 4.0.837.3) 
          id <01BB49DE.6773F2C0@nteastpo.broc.com>;
          Sat, 25 May 1996 02:03:45 -0400
Message-Id: <c=US%a=_%p=Brock_Internatio%l=NTEASTPO-960525060343Z-2962@nteastpo.broc.com>
From: "Daugharty, Thomas" <tomd@broc.com>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Cc: "'Tim.Bunce@ig.co.uk'" <Tim.Bunce@ig.co.uk>, 
    "'dscott@broc.com'" <dscott@broc.com>
Subject: DBD:Oracle Driver
Date: Sat, 25 May 1996 02:03:43 -0400
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.837.3
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

I've managed to find another stopping point with the building of the 
DBI interface for Perl. After I had success with the DBI driver I 
obtained DBD:Oracle .029 and tried to install it on top of DBI version 
069. Well I found in the Makefile.PL it referenced the 'use .068' for 
DBI, so I removed version 069 and replaced it with .068 and now I still 
have the same problem as described below:

When I try and run 'perl Makefile.PL' to make the makefile I get the 
following error:

Can't load module DBI, dynamic loading not available in this perl.
  (You may need to build a new perl executable which either supports
  dynamic loading or has the DBI module statically linked into it.)
 at /usr/local/perl5/lib/site_perl/DBI.pm line 32
BEGIN failed--compilation aborted at Makefile.PL line 11.

Here is my 'perl -V' output:

Summary of my perl5 (5.0 patchlevel 2) configuration:
  Platform:
    osname=hpux, osver=10, archname=PA-RISC1.1
    uname='hp-ux hpe35 b.10.01 a 9000816 934378221 two-user license '
    hint=previous, useposix=true
  Compiler:
    cc='cc', optimize='', gccversion=
    cppflags='-D_HPUX_SOURCE'
    ccflags ='-D_HPUX_SOURCE'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib/pa1.1 /lib /usr/lib /usr/ccs/lib
    libs=-lnet -lnsl_s -lndbm -ldld -lm -lc -lndir -lcrypt
    libc=/lib/libc.sl, so=sl
  Dynamic Linking:
    dlsrc=dl_none.xs, dlext=none, d_dlsymun=, ccdlflags=''
    cccdlflags='', lddlflags=''

@INC: /usr/local/perl5/lib/PA-RISC1.1/5.002 /usr/local/perl5/lib 
/usr/local/perl5/li
b/site_perl/PA-RISC1.1 /usr/local/perl5/lib/site_perl .

My company and I are highly interested with trying to make this work 
for a WEB based DB solution. If you can provide any assistance with 
this, it would be dearly appreciated.


David: I discovered after I installed the DBI driver, I also had to 
obtain an DBD:Oracle driver (Database Driver) and that is when I run 
into this problem.

Thanks
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <10789-5@oink>;
          Mon, 27 May 1996 15:26:04 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833207073:29272:4; Mon, 27 May 96 15:24:33 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa29170; 27 May 96 15:24 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id HAA18654 for dbi-users-real; Mon, 27 May 1996 07:09:47 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id HAA18650 
          for <dbi-users@fugue.com>; Mon, 27 May 1996 07:09:40 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id aa26602; 27 May 96 14:09 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ac04775; 27 May 96 15:08 +0100
Received: from toad by oink with SMTP (PP) id <10533-0@oink>;
          Mon, 27 May 1996 15:01:09 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA01340;
          Mon, 27 May 1996 15:01:04 +0000
Date: Mon, 27 May 1996 15:01:04 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605271401.AA01340@toad.ig.co.uk>
To: dbi-users@fugue.com, altender@engr.orst.edu
Subject: Re: DBI 0.69 not compiling under SunOS 5.3
X-Sun-Charset: US-ASCII
content-length: 1160
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Eric Altendorf <altender@engr.orst.edu>
> 
> I am trying to install DBI 0.69.  The Makefile.PL script worked fine
> but when I run make I get the following errors:
> 
> 	gcc -c  -I/usr/local/include -O -DVERSION=\"0.69\"
> 	-DXS_VERSION=\"0.69\" -fpic
> 	-I/usr/local/lib/perl5/sun4-solaris/5.002/CORE -Wall -pedantic
> 	-Wno-comment DBI.c
> 	In file included from DBIXS.h:13,
> 					 from DBI.c:19:
> 	/usr/local/lib/perl5/sun4-solaris/5.002/CORE/perl.h:1342: parse error
> 	before `top_env'
> 	/usr/local/lib/perl5/sun4-solaris/5.002/CORE/perl.h:1342: ANSI C
> 	forbids data definition with no type or storage class
> 
> I'm using SunOS 5.3 with gcc 2.7.2 and our Perl version is 5.002.

Everyone: *Please* remember to post the information the README asks for.
Especially the output from perl -V.

> Any ideas?  Thanks,

It looks like you have a problem with your perl configuration.

perl.h:1342:  IEXT Sigjmp_buf Itop_env;

It looks like Sigjmp_buf is undefined (or ill defined).

Please post the output from

    perl -MConfig=config_sh -e ' print config_sh' | grep sig

Did your perl build + test + install without any warnings or errors?

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <10789-6@oink>;
          Mon, 27 May 1996 15:26:07 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833207074:29249:3; Mon, 27 May 96 15:24:34 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa29172; 27 May 96 15:24 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id HAA18663 for dbi-users-real; Mon, 27 May 1996 07:10:16 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id HAA18659 
          for <dbi-users@fugue.com>; Mon, 27 May 1996 07:10:10 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id ab26693; 27 May 96 14:09 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ab04775; 27 May 96 15:08 +0100
Received: from toad by oink with SMTP (PP) id <10504-0@oink>;
          Mon, 27 May 1996 14:50:20 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA01316;
          Mon, 27 May 1996 14:50:13 +0000
Date: Mon, 27 May 1996 14:50:13 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605271350.AA01316@toad.ig.co.uk>
To: dbi-users@fugue.com, evalinsk@mediacircus.com
Subject: Re: Make failure for DBD::Oracle/Solaris 2.5
X-Sun-Charset: US-ASCII
content-length: 1816
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Eric Valinsky <evalinsk@mediacircus.com>
> 
> I have been trying to install DBI 0.69/DBD::Oracle 0.29 on the following
> configuration:
>         hardware:       SPARC 10
>         os:             Solaris 2.5
>         compiler:       SPARCompiler C 3.0
> 
> I successfully installed DBI, but the make failed on DBD.  I would
> appreciate any advice on how to build DBD.

You don't say what version of Oracle.

> Using /oracle/orahome/proc/lib/proc.mk version 1.9
> Oracle proc.mk would have used these values but we override them:
>   CC:       ld -dy $(COMPOBJS) $(LDSTRING)
>   LDFLAGS:  -L$(LIBHOME)
>   LDSTRING: -R /opt/SUNWcluster/lib -Y
> P,$(LD_LIBRARY_PATH):/opt/SUNWcluster/lib:/usr/ccs/lib:/usr/lib -Qy -lc
> $(COMPOBJ)/crtn.o
> See README notes about SPARCompiler on Solaris
 
> LD_RUN_PATH="/lib" cc -o blib/arch/auto/DBD/Oracle/Oracle.so -G
> -L/usr/local/lib -L/opt/gnu/lib Oracle.o  dbdimp.o -L/oracle/orahome/lib
> /oracle/orahome/lib/__fstd.o -locic /oracle/orahome/lib/osntab.o -lsqlnet
> -lora -lsqlnet  -lora -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3   -lcore3  `cat
> /oracle/orahome/rdbms/lib/sysliblist`   -lsocket -lnsl -lm -ldl -laio
> Text relocation remains         referenced
>     against symbol      offset  in file
> ocirlo                  0x8     /oracle/orahome/lib/libocic.a(orlon.o)
> ocirlo                  0xc     /oracle/orahome/lib/libocic.a(orlon.o)
> ld: fatal: relocations remain against allocatable but non-writable sections
> *** Error code 1
> make: Fatal error: Command failed for target

No idea, off-hand.

Try this in the oracle home directory (using /bin/sh) as a quick check:
$ for l in lib/lib*.a lib/*.o */*/*.o; do echo $l; nm -p $l | grep ocirlo; done'

and let me know what it says.

Try building the Pro*C examples in the .../proc/demo directory.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11223-4@oink>;
          Mon, 27 May 1996 17:01:20 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833210254:28953:3; Mon, 27 May 96 16:17:34 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa28436; 27 May 96 16:16 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id IAA18868 for dbi-users-real; Mon, 27 May 1996 08:10:29 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id IAA18858 
          for <dbi-users@fugue.com>; Mon, 27 May 1996 08:09:40 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id ad10760; 27 May 96 15:07 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ad04775; 27 May 96 15:08 +0100
Received: from toad by oink with SMTP (PP) id <10541-0@oink>;
          Mon, 27 May 1996 15:04:21 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA01350;
          Mon, 27 May 1996 15:04:15 +0000
Date: Mon, 27 May 1996 15:04:15 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605271404.AA01350@toad.ig.co.uk>
To: dbi-users@fugue.com, tomd@broc.com
Subject: Re: DBD:Oracle Driver
Cc: dscott@broc.com
X-Sun-Charset: US-ASCII
content-length: 914
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: "Daugharty, Thomas" <tomd@broc.com>
> 
> When I try and run 'perl Makefile.PL' to make the makefile I get the 
> following error:
> 
> Can't load module DBI, dynamic loading not available in this perl.
>   (You may need to build a new perl executable which either supports
>   dynamic loading or has the DBI module statically linked into it.)
> 
> Here is my 'perl -V' output:
> 
> Summary of my perl5 (5.0 patchlevel 2) configuration:
>   Platform:
>     osname=hpux, osver=10, archname=PA-RISC1.1

>   Dynamic Linking:
>     dlsrc=dl_none.xs, dlext=none, d_dlsymun=, ccdlflags=''

HP-UX version 10 does support dynamic linking (I think).
I strongly recommend you rebuild your perl with dynamic linking enabled. 
Ask perl5-porters for help if you have problems doing that.

You'll also need a recent (maybe latest) version of DBD::Oracle otherwise
it'll still build DBD::Oracle for static linking.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13736-10@oink>;
          Tue, 28 May 1996 07:06:45 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833234198:29650:1; Mon, 27 May 96 22:56:38 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa28686; 27 May 96 22:56 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id OAA19599 for dbi-users-real; Mon, 27 May 1996 14:47:53 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mail.pi.se (mail.pi.se [194.52.20.8]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id OAA19595 
          for <dbi-users@fugue.com>; Mon, 27 May 1996 14:47:51 -0700
Received: from ubu.dc.statoil.se (mail.igis.se [194.132.192.91]) 
          by mail.pi.se (8.7.5/8.7.3) with SMTP id XAA17283 
          for <dbi-users@fugue.com>; Mon, 27 May 1996 23:47:47 +0200 (MET DST)
Received: from dune.dc.statoil.se (dune.dc.statoil.se [10.0.1.4]) 
          by ubu.dc.statoil.se (940816.SGI.8.6.9/941003) with ESMTP 
          id XAA05441 for <dbi-users@fugue.com>;
          Mon, 27 May 1996 23:47:06 +0200
Received: from dune.dc.statoil.se (localhost [127.0.0.1]) 
          by dune.dc.statoil.se (940816.SGI.8.6.9/941003) with SMTP 
          id XAA04862 for <dbi-users@fugue.com>;
          Mon, 27 May 1996 23:47:05 +0200
Message-ID: <31AA22D9.167E@igis.se>
Date: Mon, 27 May 1996 23:47:05 +0200
From: Robin Langdon <robin@igis.se>
X-Mailer: Mozilla 3.0b4 (X11; I; IRIX 5.3 IP22)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Update problem with DBD-Oracle-0.31
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I have just started using DBD-Oracle-0.31 against Oracle 7.2.3.0 on a Sun. 

If I try to use the &Ora_do function I get the following error:
ORA-00911: invalid character
This refers to the ";" at the end of the SQL statement. If I remove the ";"
then the core is dumped!

All the other functions work fine and the installation was OK.

Any ideas ??

Robin.  <robin@igis.se>
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14967-0@oink>;
          Tue, 28 May 1996 08:08:13 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833265572:18960:1; Tue, 28 May 96 07:39:32 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa18847; 28 May 96 7:38 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id XAA20367 for dbi-dev-real; Mon, 27 May 1996 23:09:01 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from www1.ixa.net (root@www1.ixa.net [204.194.12.19]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id XAA20363 
          for <dbi-dev@fugue.com>; Mon, 27 May 1996 23:08:59 -0700
Received: from informatics.com (med.informatics.com [205.178.2.4]) 
          by www1.ixa.net (8.7.5/8.7.1) with ESMTP id XAA14295 
          for <dbi-dev@fugue.com>; Mon, 27 May 1996 23:08:03 -0700 (PDT)
Received: from [205.178.2.3] by informatics.com 
          with SMTP (Apple Internet Mail Server 1.1);
          Mon, 27 May 1996 23:08:39 -0700
X-Sender: campbell@205.178.2.4
Message-Id: <v02130504add0525cb904@[205.178.2.3]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 27 May 1996 23:09:01 -0800
To: dbi-dev@fugue.com, mac-perl@iis.ee.ethz.ch
From: campbell@informatics.com (Keith E. Campbell)
Subject: Help for new Oracle port???

I'm trying to port the Oracle DBD to the Macintosh. I previously ported
OraPerl (which was made available to users on the mpw-perl mailing list),
which was relatively easy. I just had to change the Usersub() routine in
MacPerl 4.036, and compile and link the Oracle files, and viola!

With the PowerPC's out, I'm trying to combine MacPerl 5.07  with the DBI
and the Oracle DBD driver to use with Personal Oracle 7 for Macintosh. I've
successfully collected all the sources, and compiled and linked the files
without error. However, I believe that is not sufficient. In my brief
readings, I'm under the impression that "plugin modules" are dynamically
linked in Perl 5... Something not easy on the Mac.

I've compiled and linked the dbdimp.c file with the MacPerl libraries, and
generated a running application, (however the Oracle calls don't work--The
output from running test.pl (included with DBD-Oracle-0.31) is appended
below).

How do I get the MacPerl application to recognize the new calls? Is there a
particular location in the Perl  code where these routines should be put to
bypass the dynamic linking step? Or perhaps there is something else I just
don't understand. Any pointers graciously accepted.

Thanks,

Keith Campbell
------------------------------------------
# Global symbol "ora_logoff" requires explicit package name.
File 'Oraperl.pm'; Line 77
# Bareword "NUM_OF_PARAMS" not allowed while "strict subs" in use.
File 'Oraperl.pm'; Line 94
# Global symbol "ora_bind" requires explicit package name.
File 'Oraperl.pm'; Line 99
# Global symbol "ora_fetch" requires explicit package name.
File 'Oraperl.pm'; Line 100
# Global symbol "ora_close" requires explicit package name.
File 'Oraperl.pm'; Line 101
# Global symbol "ora_commit" requires explicit package name.
File 'Oraperl.pm'; Line 150
# Global symbol "ora_rollback" requires explicit package name.
File 'Oraperl.pm'; Line 151
# Bareword "AutoCommit" not allowed while "strict subs" in use.
File 'Oraperl.pm'; Line 155
# Bareword "Version" not allowed while "strict subs" in use.
File 'Oraperl.pm'; Line 162
# Bareword "Attribution" not allowed while "strict subs" in use.
File 'Oraperl.pm'; Line 163
# Bareword "Version" not allowed while "strict subs" in use.
File 'Oraperl.pm'; Line 163
# Global symbol "ora_readblob" requires explicit package name.
File 'Oraperl.pm'; Line 197
# # # .
File '(eval 12)'; Line 1
BEGIN failed--compilation aborted.
File '(eval 12)'; Line 1



---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <18151-2@oink>;
          Tue, 28 May 1996 18:45:03 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833301878:23164:5; Tue, 28 May 96 17:44:38 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa22675; 28 May 96 17:44 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id JAA21280 for dbi-users-real; Tue, 28 May 1996 09:18:20 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net ([158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id JAA21276 
          for <dbi-users@fugue.com>; Tue, 28 May 1996 09:18:15 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id aa17987; 28 May 96 16:11 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ae01601; 28 May 96 17:02 +0100
Received: from toad by oink with SMTP (PP) id <15645-0@oink>;
          Tue, 28 May 1996 11:03:40 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA04632;
          Tue, 28 May 1996 11:03:34 +0000
Date: Tue, 28 May 1996 11:03:34 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605281003.AA04632@toad.ig.co.uk>
To: dbi-users@fugue.com, robin@igis.se
Subject: Re: Update problem with DBD-Oracle-0.31
X-Sun-Charset: US-ASCII
content-length: 813
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Robin Langdon <robin@igis.se>
> 
> I have just started using DBD-Oracle-0.31 against Oracle 7.2.3.0 on a Sun. 
> 
> If I try to use the &Ora_do function I get the following error:
> ORA-00911: invalid character
> This refers to the ";" at the end of the SQL statement. If I remove the ";"
> then the core is dumped!
> 
> All the other functions work fine and the installation was OK.
> 
> Any ideas ??

- Recompile with -g instead of -O (just edit the CCCMD= line in the Makefile),
- remove the semicolon from the SQL
- and enable debugging on ($dbh->debug(2)) before the ora_do

Then send me all the details listed in the README (that's the file you get
asked to read when you build the Makefile!) including the debug log
(and a stack trace from the core file if you're familiar with doing that).

Tim.
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <18952-28@oink>;
          Wed, 29 May 1996 00:57:59 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833324055:13237:0; Tue, 28 May 96 23:54:15 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa12646; 28 May 96 23:53 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id PAA22579 for dbi-dev-real; Tue, 28 May 1996 15:27:01 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from err.ethz.ch (err.ethz.ch [129.132.2.21]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id PAA22575 
          for <dbi-dev@fugue.com>; Tue, 28 May 1996 15:26:59 -0700
Received: (from neeri@localhost) by err.ethz.ch (8.7.4/8.7.3/IISmaster-1.73) 
          id AAA05288; Wed, 29 May 1996 00:19:48 +0200 (MET DST)
Message-Id: <199605282219.AAA05288@err.ethz.ch>
To: Tim Bunce <Tim.Bunce@ig.co.uk>
Cc: dbi-dev@fugue.com, mac-perl@iis.ee.ethz.ch, campbell@informatics.com
Subject: Re: [MacPerl] Re: Help for new Oracle port???
In-reply-to: Your message of Tue, 28 May 1996 10:47:06 -0000.
Date: Wed, 29 May 1996 00:19:48 +0200
From: Matthias Ulrich Neeracher <neeri@iis.ee.ethz.ch>

Tim Bunce writes:
>> From: campbell@informatics.com (Keith E. Campbell)
>> I'm trying to port the Oracle DBD to the Macintosh.
>
>> With the PowerPC's out, I'm trying to combine MacPerl 5.07
>
>What on earth is MacPerl 5.07? Perl is only at 5.002. (I've had this
>debate with the Win32 people at HIP. It's just not helpful to use a different
>versioning scheme. It would be better to use, for example, MacPerl5.002v1
>5.002v2 etc.)

In fact, the distribution is called 5.0.7r1m, to be pronounced as "MacPerl 
5.0.7, corresponding to Unix patchlevel 1m". 5.1.0r2 is currently under
development. This numbering scheme is similar to the one you propose, except
that Mac and Unix version numbers are switched in the distribution name
(which does not influence $[). We could probably bicker endlessly which order
is correct; I believe that, since MacPerl is primarily downloaded in binary
form (as opposed to most other platforms), a change in the patchlevel always
implies a change in the Mac version number, but not vice versa (MacPerl 4,
e.g., existed for roughly 4 years, during which time there were only two
different Unix patchlevels: 19 and 36). I thus think that the Mac version 
number more accurately reflects the progress of MacPerl versions than the
patchlevel.

>> With the PowerPC's out, I'm trying to combine MacPerl 5.07  with the DBI
>> and the Oracle DBD driver to use with Personal Oracle 7 for Macintosh. I've
>> successfully collected all the sources, and compiled and linked the files
>> without error. However, I believe that is not sufficient. In my brief
>> readings, I'm under the impression that "plugin modules" are dynamically
>> linked in Perl 5... Something not easy on the Mac.

In fact, dynamically linked modules work very well on PowerMacs.

>You should be able to build them for static linking and then build a new
>perl binary which contains them already linked in.
>
>> I've compiled and linked the dbdimp.c file with the MacPerl libraries, and
>> generated a running application, 

Just "linking" won't do. You'll have to run writemain or modify xs_init()
in runperl.c by hand.

On that occasion, I should also mention that the build system of the 5.1.0r2 
prerelease is vastly improved (Makemaker support, among other goodies), so I'd 
recommend switching to 5.1.0r2 for building. 

Besides, Tim mentions that you need 5.002, so you have no choice but 5.1.0r2.

Matthias

-----
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
   "One fine day in my odd past..." -- Pixies, _Planet of Sound_
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18951-37@oink>;
          Wed, 29 May 1996 00:59:08 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833312631:20468:0; Tue, 28 May 96 20:43:51 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa20062; 28 May 96 20:43 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa19881; 28 May 96 20:42 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id MAA22064 for dbi-users-real; Tue, 28 May 1996 12:35:34 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id MAA22060 
          for <dbi-users@fugue.com>; Tue, 28 May 1996 12:35:31 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id aa17184; 28 May 96 20:35 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ab09282; 28 May 96 18:44 +0100
Received: from toad by oink with SMTP (PP) id <17945-0@oink>;
          Tue, 28 May 1996 17:38:16 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA06126;
          Tue, 28 May 1996 17:38:05 +0000
Date: Tue, 28 May 1996 17:38:05 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605281638.AA06126@toad.ig.co.uk>
To: evalinsk@mediacircus.com
Subject: Re: Make failure for DBD::Oracle/Solaris 2.5
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
content-length: 1483
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Eric Valinsky <evalinsk@mediacircus.com>
> 
> Thanks a lot for your response.  I should have realized that DBM would make
> use of the Oracle libraries.

DBM? Eh?

> >> From: Eric Valinsky <evalinsk@mediacircus.com>
> >>
> >> I have been trying to install DBI 0.69/DBD::Oracle 0.29 on the following
> >> configuration:
> >>         hardware:       SPARC 10
> >>         os:             Solaris 2.5
> >>         compiler:       SPARCompiler C 3.0
> >>
> >> I successfully installed DBI, but the make failed on DBD.  I would
> >> appreciate any advice on how to build DBD.
> >
> >You don't say what version of Oracle.
> 
> We are using Oracle Version 7.2.3.
> 
> >Try this in the oracle home directory (using /bin/sh) as a quick check:
> >$ for l in lib/lib*.a lib/*.o */*/*.o; do echo $l; nm -p $l | grep ocirlo;
> >done'
> >
> >and let me know what it says.
> 
> It said a lot:
> 
> ...
> lib/libocic.a
> 0000000000 U ocirlo
> 0000000016 T ocirlo
> ...

Okay, that tells me that it's both used (U) and defined as a function (T)
in the libocic.a library. No others uses. Strange.

Umm. Try making this change to Makefile.PL:

	- $opts{LIBS} = [ $sysliblist ];
	+ $opts{LIBS} = [ "$sysliblist -locic" ];

> >Try building the Pro*C examples in the .../proc/demo directory.
> 
> This will probably show me up as the UNIX/Oracle neophyte that I am, but
> I'm have no idea how to build these, or where to look to find out!

But does anyone else there? Or try asking Oracle.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18993-3@oink>;
          Wed, 29 May 1996 00:59:14 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833312768:21929:0; Tue, 28 May 96 20:46:08 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa21627; 28 May 96 20:45 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa21275; 28 May 96 20:44 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id JAA21381 for dbi-dev-real; Tue, 28 May 1996 09:42:50 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id JAA21377 
          for <dbi-dev@fugue.com>; Tue, 28 May 1996 09:42:47 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id ac27210; 28 May 96 16:42 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ac01601; 28 May 96 17:02 +0100
Received: from toad by oink with SMTP (PP) id <15605-0@oink>;
          Tue, 28 May 1996 10:47:11 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA04608;
          Tue, 28 May 1996 10:47:06 +0000
Date: Tue, 28 May 1996 10:47:06 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605280947.AA04608@toad.ig.co.uk>
To: dbi-dev@fugue.com, mac-perl@iis.ee.ethz.ch, campbell@informatics.com
Subject: Re: Help for new Oracle port???
X-Sun-Charset: US-ASCII
content-length: 1943
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: campbell@informatics.com (Keith E. Campbell)
> 
> I'm trying to port the Oracle DBD to the Macintosh.

> With the PowerPC's out, I'm trying to combine MacPerl 5.07

What on earth is MacPerl 5.07? Perl is only at 5.002. (I've had this
debate with the Win32 people at HIP. It's just not helpful to use a different
versioning scheme. It would be better to use, for example, MacPerl5.002v1
5.002v2 etc.)

> With the PowerPC's out, I'm trying to combine MacPerl 5.07  with the DBI
> and the Oracle DBD driver to use with Personal Oracle 7 for Macintosh. I've
> successfully collected all the sources, and compiled and linked the files
> without error. However, I believe that is not sufficient. In my brief
> readings, I'm under the impression that "plugin modules" are dynamically
> linked in Perl 5... Something not easy on the Mac.

You should be able to build them for static linking and then build a new
perl binary which contains them already linked in.

> I've compiled and linked the dbdimp.c file with the MacPerl libraries, and
> generated a running application, (however the Oracle calls don't work--The
> output from running test.pl (included with DBD-Oracle-0.31) is appended
> below).

That's a perl compile time error. It's not getting as far as making Oracle calls.

> How do I get the MacPerl application to recognize the new calls? Is there a
> particular location in the Perl  code where these routines should be put to
> bypass the dynamic linking step? Or perhaps there is something else I just
> don't understand. Any pointers graciously accepted.

Since I know very little about Mac's and nothing about MacPerl I hope that
someone on the MacPerl mailing list can help.

> Thanks,
> 
> Keith Campbell
> ------------------------------------------
> # Global symbol "ora_logoff" requires explicit package name.
> File 'Oraperl.pm'; Line 77

Looks like your perl isn't 5.002 (or if it is it's broken).
(I've just 

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18951-72@oink>;
          Wed, 29 May 1996 01:02:40 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833326500:18879:2; Wed, 29 May 96 00:35:00 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa18599; 29 May 96 0:34 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id QAA22761 for dbi-users-real; Tue, 28 May 1996 16:30:09 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from sultan.hsii.ccare.com (sultan.hsii.ccare.com [192.101.181.3]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id QAA22757 
          for <dbi-users@fugue.com>; Tue, 28 May 1996 16:30:07 -0700
Received: from msgw.hsii.ccare.com by SULTAN.HSII.CCARE.COM (PMDF V5.0-5 #4597) 
          id <01I58Z0QHWB40024BJ@SULTAN.HSII.CCARE.COM> 
          for dbi-users@fugue.com; Tue, 28 May 1996 18:29:58 -0500 (CDT)
Received: by msgw.hsii.ccare.com with Microsoft Mail 
          id <31AB8CC3@msgw.hsii.ccare.com>;
          Tue, 28 May 1996 18:31:15 -0500 (CDT)
Date: Tue, 28 May 1996 19:26:00 -0500 (CDT)
From: "Willard, Keith" <KWillard@msmail.hsii.ccare.com>
Subject: Re: DBD::Oracle v0.31 building against Oracle 7.3.2
To: dbilist <dbi-users@fugue.com>
Message-id: <31AB8CC3@msgw.hsii.ccare.com>
X-Mailer: Microsoft Mail V3.0
Content-transfer-encoding: 7BIT
Encoding: 60 TEXT


Pardon for being dense but I am having similar problems trying to run
perl Makefile.PL  with DBD version v0.31 against my Oracle 7.3.2 
configuration that I was having with version 0.30

It could not find proc.mk by default from knowing the ORACLE_HOME so i told 
it where it was but this was not enough.  In addition the Makefile.PL was 
looking for libocic.a (which does not appear to exist anymore for 7.3.2) and 
so it decided the OCI was not installed.  However, it is installed and we 
have been able to build c based apps for other uses with it.

The organization of the oracle directories from  /usr/users/oracle   on  is 
the default organization from the 7.3.2 install.  It is considerably 
different from previous versions of Oracle 7 I have successfully built the 
DBD against.


here is the output of my attempt at running perl Makefile.PL

 --keith willard

=================================================
perl Makefile.PL -m 
/usr/users/oracle/app/oracle/product/7.3.2/precomp/demo/proc/proc.mk

Configuring DBD::Oracle ...

        Remember to actually read the README file!

Using Oracle in /usr/users/oracle/app/oracle/product/7.3.2
Warning: OCI (Pro*C) does not appear to be installed.
Oracle sysliblist: -lsocket -lnsl -lm -ldl
INCLUDE=$(I_SYM). $(PRECOMPPUBLIC) not processed
Use of uninitialized value at Makefile.PL line 263.
ERROR parsing 
/usr/users/oracle/app/oracle/product/7.3.2/precomp/demo/proc/proc.mk 
(version ''):
        Unable to determine what to link with.
Using /usr/users/oracle/app/oracle/product/7.3.2/precomp/demo/proc/proc.mk 
(version unknown)
System: perl5.002 sunos stargate 5.5 generic sun4d sparc 
sunw,sparcserver-1000
Compiler: cc -O
Oracle proc.mk would have used these values but we override them:
  CC:       cc
  CFLAGS:   $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) $(PFLAGS) 
$(SHARED_CFLAG) $(ENV_FLAGS)
  LDFLAGS:  -o $@ $(PRODUCT_LIBHOME) -L$(LIBHOME) -L/opt/SUNWcluster/lib 
 -R/opt/SUNWcluster/lib
See README notes about SPARCompiler on Solaris

Checking if your kit is complete...
Looks good

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBD::Oracle
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21779-1@oink>;
          Wed, 29 May 1996 02:31:41 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833333003:10416:3; Wed, 29 May 96 02:23:23 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa10169; 29 May 96 2:22 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id SAA23038 for dbi-users-real; Tue, 28 May 1996 18:20:19 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id SAA23034 
          for <dbi-users@fugue.com>; Tue, 28 May 1996 18:20:16 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id aa20515; 29 May 96 2:19 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa04159; 29 May 96 2:19 +0100
Received: from toad by oink with SMTP (PP) id <21580-0@oink>;
          Wed, 29 May 1996 02:18:47 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA09867;
          Wed, 29 May 1996 02:18:41 +0000
Date: Wed, 29 May 1996 02:18:41 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605290118.AA09867@toad.ig.co.uk>
To: dbi-users@fugue.com, HNguyenk@bdm.com
Subject: Re: Oraperl and DBPerl on HP 9000
X-Sun-Charset: US-ASCII
content-length: 605
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> To: dbi-request@fugue.com
      ^^^^^^^^^^^

That should be dbi-users
               ^^^^^^^^^

> Finally, DBperl and Oraperl were installed sucessfully on HP9000 K200
> series with HP-UX 10.01 and Oracle 7.2.3 database.  Thanks to Tim
> Bunce for HP modified Makefile.PL and sequential Perl5-DBI69-DBD31
> installation tips.
> 
> I just tested only a simpple select and insert statements only.  I would
> like to look additional manual pages.  How do I setup HP to have Perl,
> DBPerl or Oraperl manual pages?

Only Oraperl is worth having and you've got that already. Just run

	perldoc Oraperl

Tim
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21779-3@oink>;
          Wed, 29 May 1996 02:31:47 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833333004:10481:2; Wed, 29 May 96 02:23:24 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa10162; 29 May 96 2:22 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id SAA23032 for dbi-users-real; Tue, 28 May 1996 18:20:14 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id SAA23028 
          for <dbi-users@fugue.com>; Tue, 28 May 1996 18:20:12 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id aa20583; 29 May 96 2:19 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa04159; 29 May 96 2:19 +0100
Received: from toad by oink with SMTP (PP) id <21580-0@oink>;
          Wed, 29 May 1996 02:18:47 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA09867;
          Wed, 29 May 1996 02:18:41 +0000
Date: Wed, 29 May 1996 02:18:41 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605290118.AA09867@toad.ig.co.uk>
To: dbi-users@fugue.com, HNguyenk@bdm.com
Subject: Re: Oraperl and DBPerl on HP 9000
X-Sun-Charset: US-ASCII
content-length: 605
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> To: dbi-request@fugue.com
      ^^^^^^^^^^^

That should be dbi-users
               ^^^^^^^^^

> Finally, DBperl and Oraperl were installed sucessfully on HP9000 K200
> series with HP-UX 10.01 and Oracle 7.2.3 database.  Thanks to Tim
> Bunce for HP modified Makefile.PL and sequential Perl5-DBI69-DBD31
> installation tips.
> 
> I just tested only a simpple select and insert statements only.  I would
> like to look additional manual pages.  How do I setup HP to have Perl,
> DBPerl or Oraperl manual pages?

Only Oraperl is worth having and you've got that already. Just run

	perldoc Oraperl

Tim
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22453-2@oink>;
          Wed, 29 May 1996 07:05:54 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833336338:29735:4; Wed, 29 May 96 03:18:58 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa29569; 29 May 96 3:18 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id TAA23174 for dbi-users-real; Tue, 28 May 1996 19:14:13 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id TAA23170 
          for <dbi-users@fugue.com>; Tue, 28 May 1996 19:14:09 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id aa13109; 29 May 96 2:14 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa05323; 29 May 96 2:31 +0100
Received: from toad by oink with SMTP (PP) id <21757-0@oink>;
          Wed, 29 May 1996 02:30:55 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA09894;
          Wed, 29 May 1996 02:30:48 +0000
Date: Wed, 29 May 1996 02:30:48 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605290130.AA09894@toad.ig.co.uk>
To: dbi-users@fugue.com, KWillard@msmail.hsii.ccare.com
Subject: Re: DBD::Oracle v0.31 building against Oracle 7.3.2
X-Sun-Charset: US-ASCII
content-length: 1783
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: "Willard, Keith" <KWillard@msmail.hsii.ccare.com>
> 
> Pardon for being dense but I am having similar problems trying to run
> perl Makefile.PL  with DBD version v0.31 against my Oracle 7.3.2 
> configuration that I was having with version 0.30
> 
> It could not find proc.mk by default from knowing the ORACLE_HOME so i told 
> it where it was but this was not enough.  In addition the Makefile.PL was 
> looking for libocic.a (which does not appear to exist anymore for 7.3.2) and 
> so it decided the OCI was not installed.  However, it is installed and we 
> have been able to build c based apps for other uses with it.
> 
> The organization of the oracle directories from  /usr/users/oracle   on  is 
> the default organization from the 7.3.2 install.  It is considerably 
> different from previous versions of Oracle 7 I have successfully built the 
> DBD against.

Oracle does it again.
 
> here is the output of my attempt at running perl Makefile.PL

Thanks.
 
>  --keith willard
> 
> =================================================
> perl Makefile.PL -m 
> /usr/users/oracle/app/oracle/product/7.3.2/precomp/demo/proc/proc.mk

I'll add "precomp/demo/proc" to the places Makefile.PL looks in.

> INCLUDE=$(I_SYM). $(PRECOMPPUBLIC) not processed

Actually it is processed. I forgot to remove a warning. Fixed now.

> Use of uninitialized value at Makefile.PL line 263.
> ERROR parsing 
> /usr/users/oracle/app/oracle/product/7.3.2/precomp/demo/proc/proc.mk 
> (version ''):
>         Unable to determine what to link with.
> Using /usr/users/oracle/app/oracle/product/7.3.2/precomp/demo/proc/proc.mk 
> (version unknown)

You'll need to send me (privately) the proc.mk file and any files it
'includes' (and any they include etc) so I can re-jig the parsing.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22453-18@oink>;
          Wed, 29 May 1996 07:07:35 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833346394:19742:1; Wed, 29 May 96 06:06:34 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa19405; 29 May 96 6:05 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id VAA23490 for dbi-dev-real; Tue, 28 May 1996 21:47:16 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from www1.ixa.net (root@www1.ixa.net [204.194.12.19]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id VAA23486 
          for <dbi-dev@fugue.com>; Tue, 28 May 1996 21:47:07 -0700
Received: from informatics.com (med.informatics.com [205.178.2.4]) 
          by www1.ixa.net (8.7.5/8.7.1) with ESMTP id VAA16791 
          for <dbi-dev@fugue.com>; Tue, 28 May 1996 21:46:14 -0700 (PDT)
Received: from [205.178.2.3] by informatics.com 
          with SMTP (Apple Internet Mail Server 1.1);
          Tue, 28 May 1996 21:46:49 -0700
X-Sender: campbell@205.178.2.4
Message-Id: <v02130500add18b0604b4@[205.178.2.3]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Tue, 28 May 1996 21:47:14 -0800
To: Matthias Ulrich Neeracher <neeri@iis.ee.ethz.ch>, 
    Tim Bunce <Tim.Bunce@ig.co.uk>
From: campbell@informatics.com (Keith E. Campbell)
Subject: Re: [MacPerl] Re: Help for new Oracle port???
Cc: dbi-dev@fugue.com, mac-perl@iis.ee.ethz.ch

Matthias and Tim,

Thanks for the info. I'll get working on working with the next version as
you both suggest.

Keith


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22638-1@oink>;
          Wed, 29 May 1996 07:30:50 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833351369:18246:2; Wed, 29 May 96 07:29:29 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa17994; 29 May 96 7:28 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id XAA23757 for dbi-users-real; Tue, 28 May 1996 23:25:05 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mail.telstra.com.au (mail.telstra.com.au [192.148.160.10]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id XAA23753 
          for <dbi-users@fugue.com>; Tue, 28 May 1996 23:24:59 -0700
Received: from mail_gw.fwall.telecom.com.au(192.148.147.10) by mail 
          via smap (V1.3) id sma029900; Wed May 29 16:22:14 1996
Received: from cdn_mail.dn.itg.telecom.com.au(144.135.109.134) 
          by mail_gw.telecom.com.au via smap (V1.3) id sma007244;
          Wed May 29 16:21:46 1996
Received: from frodo.dn.itg.telecom.com.au (frodo.dn.itg.telecom.com.au [144.136.188.211]) 
          by cdn_mail.dn.itg.telecom.com.au (8.6.11/8.6.9) with ESMTP 
          id QAA06592; Wed, 29 May 1996 16:21:45 +1000
Received: (from sjg@localhost) by frodo.dn.itg.telecom.com.au (8.6.11/8.6.9) 
          id QAA23057; Wed, 29 May 1996 16:21:44 +1000
Date: Wed, 29 May 1996 16:21:44 +1000
From: "Simon J. Gerraty" <sjg@frodo.dn.itg.telecom.com.au>
Message-Id: <199605290621.QAA23057@frodo.dn.itg.telecom.com.au>
To: dbi-users@fugue.com
Cc: Tim.Bunce@ig.co.uk
Subject: DBI problems

I'm sure I missed something, but simply following the instructions in
the README file and test.pl fails.

I believe I'm using the release version of perl-5.002

Gory details follow:

sjg:131$ uname -a
SunOS notboss 5.5 Generic sun4u sparc SUNW,Ultra-1
sjg:132$ make realclean
rm -rf DBI.c ./blib Makefile.aperl ./blib/arch/auto/DBI/extralibs.all perlmain.c mon.out core so_locations *~ */*~ */*/*~ *.o *.a perl.exe DBI.bs DBI.bso DBI.def DBI.exp
mv Makefile Makefile.old 2>/dev/null
rm -rf ./blib/lib/auto/DBI ./blib/arch/auto/DBI
rm -f ./blib/arch/auto/DBI/DBI.so ./blib/arch/auto/DBI/DBI.bs
rm -f ./blib/arch/auto/DBI/DBI.a ./blib/arch/DBI/DBIXS.h ./blib/lib/DBD/ExampleP.pm ./blib/lib/DBD/NullP.pm ./blib/lib/DBD/Sponge.pm ./blib/lib/DBI.pm
rm -rf Makefile Makefile.old
sjg:133$ perl5 Makefile.PL

    Remember to actually *read* the README file!

    Build, TEST and INSTALL Perl 5 first. Use version 5.002beta2 or later.

    DO NOT build the DBI under the Perl source tree.

    Use 'make test' to execute self tests.

    Install DBI (using 'make install' before building DBD::* drivers.

MakeMaker (v5.21)
Checking if your kit is complete...
Looks good
        DEFINE => q[-Wall -pedantic -Wno-comment]
        NAME => q[DBI]
        VERSION_FROM => q[DBI.pm]
        dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist] }
DBI VERSION is 0.66 (from DBI.pm)
Using PERL=/usr/local/bin/perl5
Writing Makefile for DBI
sjg:134$ make
umask 0 && cp DBIXS.h blib/arch/DBI/DBIXS.h
umask 0 && cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
umask 0 && cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
umask 0 && cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
umask 0 && cp DBI.pm blib/lib/DBI.pm
/usr/local/bin/perl5 -I/usr/local/lib/perl5/sun4-solaris/5.002 -I/usr/local/lib/perl5 /usr/local/lib/perl5/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/ExtUtils/typemap DBI.xs >DBI.tc && mv DBI.tc DBI.c
gcc -c  -DDEBUGGING -I/opt/gnu/include -g -O -DVERSION=\"0.66\" -DXS_VERSION=\"0.66\" -fpic -I/usr/local/lib/perl5/sun4-solaris/5.002/CORE -Wall -pedantic -Wno-comment DBI.c
In file included from /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.8/include/sys/param.h:37,
                 from /usr/local/lib/perl5/sun4-solaris/5.002/CORE/perl.h:102,
                 from DBIXS.h:13,
                 from DBI.c:19:
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.8/include/sys/types.h:49: warning: ANSI C does not support `long long'
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.8/include/sys/types.h:50: warning: ANSI C does not support `long long'
In file included from /usr/local/lib/perl5/sun4-solaris/5.002/CORE/perl.h:108,
                 from DBIXS.h:13,
                 from DBI.c:19:
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.8/include/stdlib.h:31: warning: ANSI C does not support `long long'
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.8/include/stdlib.h:32: warning: ANSI C does not support `long long'
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.8/include/stdlib.h:146: warning: ANSI C does not support `long long'
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.8/include/stdlib.h:147: warning: ANSI C does not support `long long'
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.8/include/stdlib.h:147: warning: ANSI C does not support `long long'
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.8/include/stdlib.h:148: warning: ANSI C does not support `long long'
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.8/include/stdlib.h:148: warning: ANSI C does not support `long long'
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.8/include/stdlib.h:149: warning: ANSI C does not support `long long'
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.8/include/stdlib.h:150: warning: ANSI C does not support `long long'
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.8/include/stdlib.h:151: warning: ANSI C does not support `long long'
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.8/include/stdlib.h:152: warning: ANSI C does not support `long long'
Running Mkbootstrap for DBI ()
chmod 644 DBI.bs
LD_RUN_PATH="" gcc -o blib/arch/auto/DBI/DBI.so -G -L/opt/gnu/lib DBI.o     
chmod 755 blib/arch/auto/DBI/DBI.so
cp DBI.bs ./blib/arch/auto/DBI/DBI.bs
chmod 644 blib/arch/auto/DBI/DBI.bs
sjg:135$ make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl5 -I./blib/arch -I./blib/lib -I/usr/local/lib/perl5/sun4-solaris/5.002 -I/usr/local/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/min...............Aborting test: output counter mismatch [test 4 answered when test 5 expected]
FAILED tests 5-11
        Failed 7/11 tests, 36.36% okay
Failed 1 test script, 0.00% okay. 6/11 subtests failed, 45.45% okay.
make: *** [test_dynamic] Error 29
sjg:136$ make test TEST_VERBOSE=1
PERL_DL_NONLAZY=1 /usr/local/bin/perl5 -I./blib/arch -I./blib/lib -I/usr/local/lib/perl5/sun4-solaris/5.002 -I/usr/local/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=1; runtests @ARGV;' t/*.t
t/min...............1..11
ok 1
ok 2
ok 3
ok 4
ok 4
Aborting test: output counter mismatch [test 4 answered when test 5 expected]
FAILED tests 5-11
        Failed 7/11 tests, 36.36% okay
Failed 1 test script, 0.00% okay. 6/11 subtests failed, 45.45% okay.
make: *** [test_dynamic] Error 29
sjg:137$ perl5 -V
Summary of my perl5 (5.0 patchlevel 2) configuration:
  Platform:
    osname=solaris, osver=2.5, archname=sun4-solaris
    uname='sunos notboss 5.5 generic sun4u sparc sunw,ultra-1 '
    hint=recommended, useposix=true 
  Compiler:
    cc='gcc', optimize='-g -O', gccversion=2.5.8
    cppflags='-DDEBUGGING -I/opt/gnu/include'
    ccflags ='-DDEBUGGING -I/opt/gnu/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='gcc', ldflags =' -L/opt/gnu/lib'
    libpth=/opt/gnu/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-fpic', lddlflags='-G -L/opt/gnu/lib'

@INC: /usr/local/lib/perl5/sun4-solaris/5.002 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl .
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22701-0@oink>;
          Wed, 29 May 1996 07:45:31 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833352080:23105:4; Wed, 29 May 96 07:41:20 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa22976; 29 May 96 7:40 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id XAA23776 for dbi-users-real; Tue, 28 May 1996 23:38:16 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mail.telstra.com.au (mail.telstra.com.au [192.148.160.10]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id XAA23772 
          for <dbi-users@fugue.com>; Tue, 28 May 1996 23:38:10 -0700
Received: from mail_gw.fwall.telecom.com.au(192.148.147.10) by mail 
          via smap (V1.3) id sma001700; Wed May 29 16:35:30 1996
Received: from cdn_mail.dn.itg.telecom.com.au(144.135.109.134) 
          by mail_gw.telecom.com.au via smap (V1.3) id sma008731;
          Wed May 29 16:34:28 1996
Received: from msmailv0.telecom.com.au (msmailv0.telecom.com.au [144.135.56.136]) 
          by cdn_mail.dn.itg.telecom.com.au (8.6.11/8.6.9) with SMTP 
          id QAA07554 for <dbi-users@fugue.com>;
          Wed, 29 May 1996 16:34:26 +1000
Received: by msmailv0.telecom.com.au with Microsoft Mail 
          id <31AD0DC9@msmailv0.telecom.com.au>; Wed, 29 May 96 16:54:01 EST
From: "Chawla, Rakesh" <RChawla@nibupls1.telecom.com.au>
To: 'DBI Users' <dbi-users@fugue.com>
Subject: Can Anyone HelpWith - Building DBD for Oracle ?
Date: Wed, 29 May 96 16:17:00 EST
Message-ID: <31AD0DC9@msmailv0.telecom.com.au>
Encoding: 55 TEXT, 12 TEXT, 22 TEXT
X-Mailer: Microsoft Mail V3.0
X-MS-Attachment: MAKE.LOG 1247 00-00-1980 00:00
X-MS-Attachment: MAKEFI~1.LOG 991 00-00-1980 00:00


 I was wondering if anyone could help me with a problecm that I am
  coming across::

  Here it goes---
 using Oracle server 7.2.3
on Irix 5.3

  I have installed the following:
     perl5.002
     DBI 0.69
 successfully.
   But while doing the make on DBD I come accross the following error:
  Have yu come accross this before, if yes, could you suggest
  a workaround ?

  Many Thanks!
  Rakesh
  (From the land down under)

I am attaching the Makefile.PL.log
 and make.log
[[ MAKE.LOG : 4663 in MAKE.LOG ]][[ MAKEFI~1.LOG : 4664 in MAKEFI~1.LOG   
]]
**************************************************************************  
******
 umask 0 && cp Oraperl.pm ./blib/lib/Oraperl.pm
 umask 0 && cp oraperl.ph ./blib/lib/oraperl.ph
 umask 0 && cp Oracle.pm ./blib/lib/DBD/Oracle.pm
 cc -c -I/usr/local/oracle/rdbms/demo   
 -I/usr/people/rakesh/local/lib/perl5/site_perl/IP22-irix/DBI   
 -I/usr/people/rakesh/local/lib/perl5/IP22-irix/5.002/DBI -D_POSIX_SOURCE   
 -ansiposix -D_BSD_TYPES -Olimit 3000 -I/usr/local/include -DLANGUAGE_C -O   
 -DVERSION=\"0.29\" -DXS_VERSION=\"0.29\"   
 -I/usr/people/rakesh/local/lib/perl5/IP22-irix/5.002/CORE  Oracle.c
 cc -c -I/usr/local/oracle/rdbms/demo   
 -I/usr/people/rakesh/local/lib/perl5/site_perl/IP22-irix/DBI   
 -I/usr/people/rakesh/local/lib/perl5/IP22-irix/5.002/DBI -D_POSIX_SOURCE   
 -ansiposix -D_BSD_TYPES -Olimit 3000 -I/usr/local/include -DLANGUAGE_C -O   
 -DVERSION=\"0.29\" -DXS_VERSION=\"0.29\"   
 -I/usr/people/rakesh/local/lib/perl5/IP22-irix/5.002/CORE  dbdimp.c
cfe: Error: dbdimp.c, line 811: Incompatible pointer type assignment   
(3.3.16.1, 3.5.4.1(21))
     safefree(imp_sth->fbh);
 --------------------^
cfe: Error: dbdimp.c, line 811: Type imp_fbh_t *  of this argument  is   
incompatible with type unsigned char *  of function prototype description   
(3.3.16.1)
     safefree(imp_sth->fbh);
 --------------------^
*** Error code 1 (bu21)

**************************************************************************  
********
 

	umask 0 && cp Oraperl.pm ./blib/lib/Oraperl.pm
	umask 0 && cp oraperl.ph ./blib/lib/oraperl.ph
	umask 0 && cp Oracle.pm ./blib/lib/DBD/Oracle.pm
	cc -c -I/usr/local/oracle/rdbms/demo -I/usr/people/rakesh/local/lib/perl5/site_perl/IP22-irix/DBI -I/usr/people/rakesh/local/lib/perl5/IP22-irix/5.002/DBI -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000 -I/usr/local/include -DLANGUAGE_C -O -DVERSION=\"0.29\" -DXS_VERSION=\"0.29\"  -I/usr/people/rakesh/local/lib/perl5/IP22-irix/5.002/CORE  Oracle.c
	cc -c -I/usr/local/oracle/rdbms/demo -I/usr/people/rakesh/local/lib/perl5/site_perl/IP22-irix/DBI -I/usr/people/rakesh/local/lib/perl5/IP22-irix/5.002/DBI -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000 -I/usr/local/include -DLANGUAGE_C -O -DVERSION=\"0.29\" -DXS_VERSION=\"0.29\"  -I/usr/people/rakesh/local/lib/perl5/IP22-irix/5.002/CORE  dbdimp.c
cfe: Error: dbdimp.c, line 811: Incompatible pointer type assignment (3.3.16.1, 3.5.4.1(21))
     safefree(imp_sth->fbh);
 --------------------^
cfe: Error: dbdimp.c, line 811: Type imp_fbh_t *  of this argument  is incompatible with type unsigned char *  of function prototype description (3.3.16.1)
     safefree(imp_sth->fbh);
 --------------------^
*** Error code 1 (bu21)


Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.


Configuring DBD::Oracle ...

	Remember to actually read the README file!

Using Oracle in /usr/local/oracle
Oracle sysliblist: -lc -lsocket -lnsl -lm
Using /usr/local/oracle/proc/lib/proc.mk version 1.9
System: perl5.002 irix renoir 5.3 11091812 ip22 mips  IP22-irix dl_dlopen.xs
Compiler: cc -O -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000 -I/usr/local/include -DLANGUAGE_C
Oracle proc.mk would have used these values but we override them:
  CC:       cc
  CFLAGS:   -I. -O `if [ -d /usr/lib/cmplrs ] ; then echo "-systype svr4 -KPIC" ; fi `
  LDFLAGS:  -L$(LIBHOME) `if [ -x /usr/necbin/uversion ] ; then echo "-Zcommon_pic -znodefs" ; \

Writing Makefile for DBD::Oracle
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <23877-11@oink>;
          Wed, 29 May 1996 10:34:33 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833358775:18810:2; Wed, 29 May 96 09:32:55 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa18353; 29 May 96 9:32 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id BAA23978 for dbi-users-real; Wed, 29 May 1996 01:28:24 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mail.telstra.com.au (mail.telstra.com.au [192.148.160.10]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id BAA23974 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 01:28:22 -0700
Received: from mail_gw.fwall.telecom.com.au(192.148.147.10) by mail 
          via smap (V1.3) id sma014918; Wed May 29 18:26:18 1996
Received: from cdn_mail.dn.itg.telecom.com.au(144.135.109.134) 
          by mail_gw.telecom.com.au via smap (V1.3) id sma020672;
          Wed May 29 18:25:46 1996
Received: from frodo.dn.itg.telecom.com.au (frodo.dn.itg.telecom.com.au [144.136.188.211]) 
          by cdn_mail.dn.itg.telecom.com.au (8.6.11/8.6.9) with ESMTP 
          id SAA16226; Wed, 29 May 1996 18:25:46 +1000
Received: (from sjg@localhost) by frodo.dn.itg.telecom.com.au (8.6.11/8.6.9) 
          id SAA23588; Wed, 29 May 1996 18:25:45 +1000
Date: Wed, 29 May 1996 18:25:45 +1000
From: "Simon J. Gerraty" <sjg@frodo.dn.itg.telecom.com.au>
Message-Id: <199605290825.SAA23588@frodo.dn.itg.telecom.com.au>
To: dbi-users@fugue.com
Cc: Tim.Bunce@ig.co.uk
Subject: Re: DBI/DBD-Oracle-0.29 problems

Sorry, pls ignore my previos bleat about DBI,  when I finally tracked
down DBD-Oracle, it's README file indicated that the DBI version I had
was out of date... (the CPAN mirror ftp.mame.mu.oz.au is out of date)

I grabbed DBI-0.68 from the same site I found DBD-Oracle and that
built and tested fine.

Now, DBD-Oracle-0.29...

Sadly looks like as of v7.3.2, Oracle have completely changed the way
Pro*C etc work - on Solaris anyway.

Turns out that the proc.mk file does not hold much that Makefile.PL is
interested in, it now includes a file env_precomp.mk which contains
the libraries to work with - in a very round about way. BTW
env_precomp.mk does not contain a version string either.

The following info may be of use:

sjg:236$ uname -a
SunOS notboss 5.5 Generic sun4u sparc SUNW,Ultra-1

sjg:237$ make -n -f proc.mk sample1
make  -f proc.mk build OBJS=sample1.o EXE=sample1
make[1]: Entering directory `/ora01/app/oracle/product/7.3.2/precomp/demo/proc'
proc  iname=sample1.pc
cc  -xO4  -Xc -xstrconst -xcg92 -xF -mr -K PIC -DSLXMX_ENABLE -DSLTS_ENABLE -D_REENTRANT  -I. -I/ora01/app/oracle/product/7.3.2/precomp/public     -c sample1.c
cc -o sample1 sample1.o -L/ora01/app/oracle/product/7.3.2/lib -lclntsh -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric  -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3     `cat /ora01/app/oracle/product/7.3.2/rdbms/lib/sysliblist`    -lm -lthread
make[1]: Leaving directory `/ora01/app/oracle/product/7.3.2/precomp/demo/proc'

Anyway here is the output as requested by README:

sjg:207$ uname -a
SunOS notboss 5.5 Generic sun4u sparc SUNW,Ultra-1
sjg:208$ perl5 Makefile.PL -m /ora01/app/oracle/product/7.3.2/precomp/demo/proc/proc.mk

Configuring DBD::Oracle ...

        Remember to actually read the README file!

Using Oracle in /ora01/app/oracle/product/7.3.2
Warning: OCI (Pro*C) does not appear to be installed.
Oracle sysliblist: -lsocket -lnsl -lm -ldl
Use of uninitialized value at Makefile.PL line 260.
ERROR parsing /ora01/app/oracle/product/7.3.2/precomp/demo/proc/proc.mk (version ''):
        Unable to determine what to link with.
Use of uninitialized value at Makefile.PL line 68.
Using /ora01/app/oracle/product/7.3.2/precomp/demo/proc/proc.mk version 
System: perl5.002 sunos notboss 5.5 generic sun4u sparc sunw,ultra-1  sun4-solaris dl_dlopen.xs
Compiler: gcc -g -O -DDEBUGGING -I/opt/gnu/include
Oracle proc.mk would have used these values but we override them:

Checking if your kit is complete...
Looks good

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.


Warning: I could not locate your pod2man program. Please make sure,
         your pod2man program is in your PATH before you execute 'make'

Writing Makefile for DBD::Oracle


sjg:233$ make
"my" may clash with future reserved word at /tmp/perl-ea002mx line 2.
syntax error in file /tmp/perl-ea002mx at line 2, next 2 tokens "my("
Execution of /tmp/perl-ea002mx aborted due to compilation errors.
make: *** [blib/lib/DBD/.exists] Error 2

sjg:235$ perl5 -V
Summary of my perl5 (5.0 patchlevel 2) configuration:
  Platform:
    osname=solaris, osver=2.5, archname=sun4-solaris
    uname='sunos notboss 5.5 generic sun4u sparc sunw,ultra-1 '
    hint=recommended, useposix=true 
  Compiler:
    cc='gcc', optimize='-g -O', gccversion=2.5.8
    cppflags='-DDEBUGGING -I/opt/gnu/include'
    ccflags ='-DDEBUGGING -I/opt/gnu/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='gcc', ldflags =' -L/opt/gnu/lib'
    libpth=/opt/gnu/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-fpic', lddlflags='-G -L/opt/gnu/lib'

@INC: /usr/local/lib/perl5/sun4-solaris/5.002 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl .

--sjg
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <23877-18@oink>;
          Wed, 29 May 1996 10:35:10 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833360757:06705:4; Wed, 29 May 96 10:05:57 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa05831; 29 May 96 10:05 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id CAA24061 for dbi-users-real; Wed, 29 May 1996 02:02:28 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mail.pi.se (mail.pi.se [194.52.20.8]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id CAA24057 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 02:02:23 -0700
Received: from ubu.dc.statoil.se (mail.igis.se [194.132.192.91]) 
          by mail.pi.se (8.7.5/8.7.3) with SMTP id LAA21196;
          Wed, 29 May 1996 11:01:55 +0200 (MET DST)
Received: from dune.dc.statoil.se (dune.dc.statoil.se [10.0.1.4]) 
          by ubu.dc.statoil.se (940816.SGI.8.6.9/941003) with ESMTP 
          id LAA03545; Wed, 29 May 1996 11:01:53 +0200
Received: from dune.dc.statoil.se (localhost [127.0.0.1]) 
          by dune.dc.statoil.se (940816.SGI.8.6.9/941003) with SMTP 
          id LAA07484; Wed, 29 May 1996 11:01:52 +0200
Message-ID: <31AC127F.41C6@igis.se>
Date: Wed, 29 May 1996 11:01:52 +0200
From: Robin Langdon <robin@igis.se>
X-Mailer: Mozilla 3.0b4 (X11; I; IRIX 5.3 IP22)
MIME-Version: 1.0
To: Tim Bunce <Tim.Bunce@ig.co.uk>
CC: dbi-users@fugue.com
Subject: Re: Update problem with DBD-Oracle-0.31
References: <9605281003.AA04632@toad.ig.co.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Tim Bunce wrote:
> 
> > From: Robin Langdon <robin@igis.se>
> >
> > I have just started using DBD-Oracle-0.31 against Oracle 7.2.3.0 on a Sun.
> >
> > If I try to use the &Ora_do function I get the following error:
> > ORA-00911: invalid character
> > This refers to the ";" at the end of the SQL statement. If I remove the ";"
> > then the core is dumped!
> >
> > All the other functions work fine and the installation was OK.
> >
> > Any ideas ??
> 
> - Recompile with -g instead of -O (just edit the CCCMD= line in the Makefile),
> - remove the semicolon from the SQL
> - and enable debugging on ($dbh->debug(2)) before the ora_do
> 
> Then send me all the details listed in the README (that's the file you get
> asked to read when you build the Makefile!) including the debug log
> (and a stack trace from the core file if you're familiar with doing that).
> 
> Tim.

OK, attached are the various logs. We dont have the stack trace facilty installed so I can't
include it. 

### Perl Script output with debugging enabled
---------------------------------------------

    DBI::db=HASH(0xa9f98) debug level set to 2
    -> do in DBD::_::db for DBD::Oracle::db (DBI::db=HASH(0x15138c)~0xa9f98 'insert into test
values (1)')
    -> prepare for DBD::Oracle::db (DBI::db=HASH(0xa9f98) 'insert into test values (1)')
    <- prepare= DBI::st=HASH(0xa9f44)
    -> execute for DBD::Oracle::st (DBI::st=HASH(0xa9f44)~0xa52cc)
    <- execute= 1
    -> rows for DBD::Oracle::st (DBI::st=HASH(0xa9f44)~0xa52cc)
    <- rows= 1
    <- do= 1
    -> DESTROY for DBD::Oracle::st (DBI::st=HASH(0xa52cc))
    <- DESTROY= undef
Segmentation fault

### Compilation routine for DBD-Oracle-0.31
-------------------------------------------

setenv ORACLE_HOME /home/oracle/orahome

perl5 Makefile.PL

make 'CC=gcc -g' 'LD=gcc -g'

make test

------------------------------------------------------------------------
# perl5 Makefile.PL

Configuring DBD::Oracle ...

        Remember to actually read the README file!

Using Oracle in /home/oracle/orahome
Oracle sysliblist: -lsocket -lnsl -lm -ldl -laio
Using /home/oracle/orahome/proc/lib/proc.mk (version 1.9)
System: perl5.002 sunos sune.igis.se 5.5 generic sun4m sparc sunw,sparcstation-20
Compiler: gcc -O -I/usr/local/src/fcgi-perl5/src/fcgi/src/fcgi-devel-kit/include -include
/usr/local/src/fcgi/src/fcgi-devel-kit/include/fcgi_stdio.h -I/usr/local/include
Oracle proc.mk would have used these values but we override them:
  CC:       ld -dy $(COMPOBJS) $(LDSTRING)
  LDFLAGS:  -L$(LIBHOME)
  LDSTRING: -R /opt/SUNWcluster/lib -Y
P,$(LD_LIBRARY_PATH):/opt/SUNWcluster/lib:/usr/ccs/lib:/usr/lib -Qy -lc $(COMPOBJ)/crtn.o

Your perl and your Config.pm seem to have different ideas about the architecture
they are running on.
Perl thinks: [5.002]
Config says: [sun4-solaris]
This may or may not cause problems. Please check your installation of perl if you
have problems building this extension.

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBD::Oracle
------------------------------------------------------------------------
# make 'CC=gcc -g' 'LD=gcc -g'
umask 0 && cp Oraperl.pm blib/lib/Oraperl.pm
umask 0 && cp oraperl.ph blib/lib/oraperl.ph
umask 0 && cp Oracle.pm blib/lib/DBD/Oracle.pm
gcc -g -c -I/home/oracle/orahome/rdbms/demo
-I/usr/local/src/fcgi-perl5/lib/perl5/site_perl/sun4-solaris/DBI
-I/usr/local/src/fcgi-perl5/lib/perl5/sun4-solaris/5.002/DBI
-I/usr/local/src/fcgi-perl5/src/fcgi/src/fcgi-devel-kit/include -include
/usr/local/src/fcgi/src/fcgi-devel-kit/include/fcgi_stdio.h -I/usr/local/include -O
-DVERSION=\"0.31\" -DXS_VERSION=\"0.31\" -fpic
-I/usr/local/src/fcgi-perl5/lib/perl5/sun4-solaris/5.002/CORE -Wall -pedantic -Wno-comment
-Wtraditional Oracle.c
gcc -g -c -I/home/oracle/orahome/rdbms/demo
-I/usr/local/src/fcgi-perl5/lib/perl5/site_perl/sun4-solaris/DBI
-I/usr/local/src/fcgi-perl5/lib/perl5/sun4-solaris/5.002/DBI
-I/usr/local/src/fcgi-perl5/src/fcgi/src/fcgi-devel-kit/include -include
/usr/local/src/fcgi/src/fcgi-devel-kit/include/fcgi_stdio.h -I/usr/local/include -O
-DVERSION=\"0.31\" -DXS_VERSION=\"0.31\" -fpic
-I/usr/local/src/fcgi-perl5/lib/perl5/sun4-solaris/5.002/CORE -Wall -pedantic -Wno-comment
-Wtraditional dbdimp.c
dbdimp.c: In function `dbd_db_FETCH':
dbdimp.c:263: warning: value computed is not used
dbdimp.c: In function `dbd_st_FETCH':
dbdimp.c:908: warning: value computed is not used
dbdimp.c: At top level:
dbdimp.c:126: warning: `dump_error_status' defined but not used
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
LD_RUN_PATH="/lib" gcc -g -o blib/arch/auto/DBD/Oracle/Oracle.so -G
-L/usr/local/src/fcgi-perl5/lib -L/opt/gnu/lib Oracle.o dbdimp.o -L/home/oracle/orahome/lib
/home/oracle/orahome/lib/__fstd.o -locic /home/oracle/orahome/lib/osntab.o -lsqlnet -lora
-lsqlnet  -lora -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3  -lcore3  `cat
/home/oracle/orahome/rdbms/lib/sysliblist`   -lsocket -lnsl -lm -ldl -laio
chmod 755 blib/arch/auto/DBD/Oracle/Oracle.so
cp Oracle.bs ./blib/arch/auto/DBD/Oracle/Oracle.bs
chmod 644 blib/arch/auto/DBD/Oracle/Oracle.bs
Manifying ./blib/man3/DBD::Oraperl.3
perl: syntax error at line 1: `(' unexpected
------------------------------------------------------------------------
# make test TEST_VERBOSE=1
PERL_DL_NONLAZY=1 /usr/local/bin/perl5 -I./blib/arch -I./blib/lib
-I/usr/local/src/fcgi-perl5/lib/perl5/sun4-solaris/5.002
-I/usr/local/src/fcgi-perl5/lib/perl5
-e 'use Test::Harness qw(&runtests $verbose); $verbose=1; runtests @ARGV;' t/*.t
t/base..............1..5
ok 1
ok 2
ok 3
ok 4
ok 5
ok
All tests successful.
Files=1,  Tests=5,  1 secs ( 0.38 cusr  0.15 csys =  0.53 cpu)
PERL_DL_NONLAZY=1 /usr/local/bin/perl5 -I./blib/arch -I./blib/lib
-I/usr/local/src/fcgi-perl5/lib/perl5/sun4-solaris/5.002
-I/usr/local/src/fcgi-perl5/lib/perl5
test.pl
Oraperl test application $Revision: 1.20 $

Oraperl Emulation Interface version 1.25
Oracle Driver 0.31
DBI-0.69 Switch by Tim Bunce, version 0.69


Connecting
 to 'DNkarr' (from command line, else uses ORACLE_SID/TWO_TASK)
 as 'karriar/Karriar' (via ORACLE_USERID environment var or default)
Fields:  4
Names:   'NUM_T',       'DATE_T',       'CHAR_T',       'NULL_T'
Lengths: '40',  '75',   '30',   '0'
Types:   '2',   '12',   '1',    '1'
Data rows:
    fetch: 79.2 29-MAY-96 KARRIAR NULL

csr reassigned (forces destruction)...
Fetch list of tables:
Fetched: CDEF$
Fetched: TAB$
Fetched: IND$
Fetched: CLU$
Test ora_do with harmless non-select statement (set transaction read only)
Expect error message:
ora_do: 1453: ORA-01453: SET TRANSACTION must be first statement of transaction (DBD: oexec
error)
csr out of scope...
ora_logoff...
lda out of scope...

Testing repetitive connect/open/close/disconnect:
Expect sequence of digits, no other messages:
1 2 3 4 5

Test interaction of explicit close/logoff and implicit DESTROYs
Expect just 'done.', no other messages:
done.

Test complete (2 seconds).


Robin.
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <25522-1@oink>;
          Wed, 29 May 1996 14:58:45 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833369716:07753:2; Wed, 29 May 96 12:35:16 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa06823; 29 May 96 12:34 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id EAA24315 for dbi-users-real; Wed, 29 May 1996 04:31:48 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id EAA24311 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 04:31:45 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ab27357; 29 May 96 11:57 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa10420; 29 May 96 11:57 +0100
Received: from toad by oink with SMTP (PP) id <24809-0@oink>;
          Wed, 29 May 1996 11:56:54 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA11632;
          Wed, 29 May 1996 11:56:43 +0000
Date: Wed, 29 May 1996 11:56:43 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605291056.AA11632@toad.ig.co.uk>
To: robin@igis.se
Subject: Re: Update problem with DBD-Oracle-0.31
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
content-length: 1804
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Robin Langdon <robin@igis.se>
> 
> Tim Bunce wrote:
> > 
> > > From: Robin Langdon <robin@igis.se>
> > >
> > > I have just started using DBD-Oracle-0.31 against Oracle 7.2.3.0 on a Sun.
> > >
> > > If I try to use the &Ora_do function I get the following error:
> > > ORA-00911: invalid character
> > > This refers to the ";" at the end of the SQL statement. If I remove the ";"
> > > then the core is dumped!
> > >
> > > All the other functions work fine and the installation was OK.
> > >
> > > Any ideas ??
> > 
> > - Recompile with -g instead of -O (just edit the CCCMD= line in the Makefile),
> > - remove the semicolon from the SQL
> > - and enable debugging on ($dbh->debug(2)) before the ora_do
> > 
> > Then send me all the details listed in the README (that's the file you get
> > asked to read when you build the Makefile!) including the debug log
> > (and a stack trace from the core file if you're familiar with doing that).
> 
> OK, attached are the various logs. We dont have the stack trace facilty
> installed so I can't include it. 

I recommend you build and install GNU GDB then use that.

> Your perl and your Config.pm seem to have different ideas about the architecture
> they are running on.
> Perl thinks: [5.002]
> Config says: [sun4-solaris]
> This may or may not cause problems. Please check your installation of perl if you
> have problems building this extension.

This *is* a problem (but I don't know if it's related). This implies
a broken perl installation (Config.pm is in the wrong place).
Please post the output from perl -V.

I recommend you delete your entire /usr/local/src/fcgi-perl5/lib/perl5 tree
and then rebuild and install a fresh perl5.002 using the defaults, e.g.,

	rm Config.sh
	Configure -des -Dprefix=/usr/local/src/fcgi-perl5/lib/perl5

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25523-9@oink>;
          Wed, 29 May 1996 14:59:23 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833369373:25977:1; Wed, 29 May 96 12:29:33 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25617; 29 May 96 12:28 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id EAA24303 for dbi-users-real; Wed, 29 May 1996 04:23:54 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id EAA24299 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 04:23:49 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ac26462; 29 May 96 11:53 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ac08189; 29 May 96 11:50 +0100
Received: from toad by oink with SMTP (PP) id <24682-0@oink>;
          Wed, 29 May 1996 11:38:20 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA11515;
          Wed, 29 May 1996 11:38:14 +0000
Date: Wed, 29 May 1996 11:38:14 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605291038.AA11515@toad.ig.co.uk>
To: dbi-users@fugue.com, RChawla@nibupls1.telecom.com.au
Subject: Re: Can Anyone HelpWith - Building DBD for Oracle ?
X-Sun-Charset: US-ASCII
content-length: 595
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: "Chawla, Rakesh" <RChawla@nibupls1.telecom.com.au>
> 
>  I was wondering if anyone could help me with a problecm that I am
>   coming across::
> 
>   Here it goes---
>  using Oracle server 7.2.3 on Irix 5.3
> 
>   I have installed the following:
>      perl5.002
>      DBI 0.69
>  successfully.

You include version numbers of everything except the module you
have a problem with!

>    But while doing the make on DBD I come accross the following error:
>   Have yu come accross this before, if yes, could you suggest
>   a workaround ?

Yes. Upgrade to the latest DBD::Oracle.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25523-16@oink>;
          Wed, 29 May 1996 14:59:47 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833370892:10797:4; Wed, 29 May 96 12:54:52 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa10532; 29 May 96 12:54 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id EAA24346 for dbi-users-real; Wed, 29 May 1996 04:51:53 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id EAA24342 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 04:51:44 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ae26112; 29 May 96 11:51 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa08189; 29 May 96 11:50 +0100
Received: from toad by oink with SMTP (PP) id <24666-0@oink>;
          Wed, 29 May 1996 11:35:36 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA11501;
          Wed, 29 May 1996 11:35:28 +0000
Date: Wed, 29 May 1996 11:35:28 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605291035.AA11501@toad.ig.co.uk>
To: dbi-users@fugue.com, sjg@frodo.dn.itg.telecom.com.au
Subject: Re: DBI problems
X-Sun-Charset: US-ASCII
content-length: 288
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: "Simon J. Gerraty" <sjg@frodo.dn.itg.telecom.com.au>
> 
> I'm sure I missed something, but simply following the instructions in
> the README file and test.pl fails.

>   Compiler:
>     cc='gcc', optimize='-g -O', gccversion=2.5.8

Upgrade your compiler to 2.6.8 or 2.7.2.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25523-21@oink>;
          Wed, 29 May 1996 15:00:05 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833371129:12864:4; Wed, 29 May 96 12:58:49 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa12677; 29 May 96 12:58 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id EAA24356 for dbi-users-real; Wed, 29 May 1996 04:55:41 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mail.pi.se (mail.pi.se [194.52.20.8]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id EAA24352 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 04:55:39 -0700
Received: from ubu.dc.statoil.se (mail.igis.se [194.132.192.91]) 
          by mail.pi.se (8.7.5/8.7.3) with SMTP id NAA05696;
          Wed, 29 May 1996 13:54:02 +0200 (MET DST)
Received: from dune.dc.statoil.se (dune.dc.statoil.se [10.0.1.4]) 
          by ubu.dc.statoil.se (940816.SGI.8.6.9/941003) with ESMTP 
          id NAA04222; Wed, 29 May 1996 13:54:00 +0200
Received: from dune.dc.statoil.se (localhost [127.0.0.1]) 
          by dune.dc.statoil.se (940816.SGI.8.6.9/941003) with SMTP 
          id NAA07574; Wed, 29 May 1996 13:54:00 +0200
Message-ID: <31AC3AD7.167E@igis.se>
Date: Wed, 29 May 1996 13:53:59 +0200
From: Robin Langdon <robin@igis.se>
X-Mailer: Mozilla 3.0b4 (X11; I; IRIX 5.3 IP22)
MIME-Version: 1.0
To: Tim Bunce <Tim.Bunce@ig.co.uk>
CC: dbi-users@fugue.com
Subject: Re: Update problem with DBD-Oracle-0.31
References: <9605291056.AA11632@toad.ig.co.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

> I recommend you build and install GNU GDB then use that.
Working on it - honest!

> This *is* a problem (but I don't know if it's related). This implies
> a broken perl installation (Config.pm is in the wrong place).
> Please post the output from perl -V.

perl -V gives ::
Summary of my perl5 (5.0 patchlevel 2) configuration:
  Platform:
    osname=solaris, osver=2.5, archname=sun4-solaris
    uname='sunos sune.igis.se 5.5 generic sun4m sparc sunw,sparcstation-20 '
    hint=recommended, useposix=true 
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.7.2
    cppflags='-I/usr/local/src/fcgi-perl5/src/fcgi/src/fcgi-devel-kit/include
-include /usr/local/src/fcgi/src/fcgi-devel-kit/include/fcgi_stdio.h
-I/usr/local/include'
    ccflags ='-I/usr/local/src/fcgi-perl5/src/fcgi/src/fcgi-devel-kit/include
-include /usr/local/src/fcgi/src/fcgi-devel-kit/include/fcgi_stdio.h
-I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/src/fcgi-perl5/lib -L/opt/gnu/lib'
    libpth=/usr/local/src/fcgi-perl5/lib /opt/gnu/lib /lib /usr/lib /usr/ccs/lib
    libs=/usr/local/src/fcgi-perl5/src/fcgi/src/fcgi-devel-kit/libfcgi/libfcgi.a
-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-fpic', lddlflags='-G -L/usr/local/src/fcgi-perl5/lib
-L/opt/gnu/lib'

@INC: /usr/local/lib/perl5/sun4-solaris/5.002 /usr/local/lib/perl5
/usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl .

> I recommend you delete your entire /usr/local/src/fcgi-perl5/lib/perl5 tree
> and then rebuild and install a fresh perl5.002 using the defaults, e.g.,
> 
>         rm Config.sh
>         Configure -des -Dprefix=/usr/local/src/fcgi-perl5/lib/perl5
Thanks for the suggestion - we will give it a go (along with installing GNU GDB)

Robin.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25523-25@oink>;
          Wed, 29 May 1996 15:00:42 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833371279:14730:2; Wed, 29 May 96 13:01:19 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa13800; 29 May 96 13:00 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id EAA24365 for dbi-users-real; Wed, 29 May 1996 04:57:00 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id EAA24360 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 04:56:42 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id aa26154; 29 May 96 11:51 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ae08189; 29 May 96 11:50 +0100
Received: from toad by oink with SMTP (PP) id <24707-0@oink>;
          Wed, 29 May 1996 11:43:33 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA11541;
          Wed, 29 May 1996 11:43:27 +0000
Date: Wed, 29 May 1996 11:43:27 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605291043.AA11541@toad.ig.co.uk>
To: dbi-users@fugue.com, sjg@frodo.dn.itg.telecom.com.au
Subject: Re: DBI/DBD-Oracle-0.29 problems
X-Sun-Charset: US-ASCII
content-length: 495
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: "Simon J. Gerraty" <sjg@frodo.dn.itg.telecom.com.au>
> 
> Sadly looks like as of v7.3.2, Oracle have completely changed the way
> Pro*C etc work - on Solaris anyway.

Indeed.

> Turns out that the proc.mk file does not hold much that Makefile.PL is
> interested in, it now includes a file env_precomp.mk which contains
> the libraries to work with - in a very round about way. BTW
> env_precomp.mk does not contain a version string either.

Please send me the files (privately).

Tim.

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25523-37@oink>;
          Wed, 29 May 1996 15:01:26 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833376181:02441:2; Wed, 29 May 96 14:23:01 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa02205; 29 May 96 14:22 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id GAA24546 for dbi-users-real; Wed, 29 May 1996 06:18:12 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from carlton.innotts.co.uk (root@carlton.innotts.co.uk [194.176.128.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id GAA24542 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 06:18:10 -0700
Received: from seriale04.innotts.co.uk (seriale04.innotts.co.uk [194.176.128.101]) 
          by carlton.innotts.co.uk (8.6.12/8.6.12) with SMTP id OAA16491;
          Wed, 29 May 1996 14:18:08 +0100
Received: by seriale04.innotts.co.uk with Microsoft Mail 
          id <01BB4D69.EFEB4A20@seriale04.innotts.co.uk>;
          Wed, 29 May 1996 14:20:07 +-100
Message-ID: <01BB4D69.EFEB4A20@seriale04.innotts.co.uk>
From: "I.M.& T." <citydev@innotts.co.uk>
To: 'Perl DBI' <dbi-users@fugue.com>
Cc: 'Tim Bunce' <Tim.Bunce@ig.co.uk>
Subject: Help needed with perl/DBI/Oracle at Nottingham City Hospital
Date: Wed, 29 May 1996 14:19:30 +-100
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit


 I have built perl5.002 and DBI-0.69 on a Pyramid ( see perl -V  output
at bottom of this document ) . make , make test and make install worked in
both cases with no need for any intervention .

However DBD-Oracle-0.31 produces the problem below on make test .
I have downloaded and rebuilt perl5.002 and DBI-0.69 from fresh after
cleaning the installation areas - but still the same problem .

I have successfully built and used perl5.001 with DBI and DBD-Oracle on previous occasions . 

If anybody out there has any suggestions I would be extremely grateful -
Steve Musgrave supporting 30,000 lines of Perl at N.C.H .

make test
        PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib -I/usr/
local/lib/perl5/MIServer-S-svr4/5.002 -I/usr/local/lib/perl5 -e 'use Test::Harne
ss qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............install_driver(Oracle) failed: Can't load './blib/arch/auto/
DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so: /usr/local/bin/perl: reloca
tion error: symbol not found: _fpsetmask at /usr/local/lib/perl5/DynaLoader.pm l
ine 140.

 at blib/lib/DBD/Oracle.pm line 22
        DBI::install_driver called at t/base.t line 16
FAILED tests 4-5
        Failed 2/5 tests, 60.00% okay
        Test returned status 9 (wstat 2304)
Failed 1 test script, 0.00% okay. 2/5 subtests failed, 60.00% okay.
*** Error code 29 (bu21)

make: fatal error.

perl -V :

Summary of my perl5 (5.0 patchlevel 2) configuration:
  Platform:
    osname=svr4, osver=, archname=MIServer-S-svr4
    uname='holmes holmes 1.1-94c079 dcosx miserver-s 8512 r3000 '
    hint=recommended, useposix=true
  Compiler:
    cc='/usr/ccs/bin/cc', optimize='-O', gccversion=
    cppflags='-I/usr/include -I/usr/ucbinclude -DLANGUAGE_C'
    ccflags ='-I/usr/include -I/usr/ucbinclude -DLANGUAGE_C'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='/usr/ccs/bin/cc', ldflags ='-L/usr/ccs/lib -L/usr/ucblib -L/usr/local/li
b'
    libpth=/usr/local/lib /usr/lib /usr/ccs/lib /lib /usr/ucblib
    libs=-lsocket -lnsl -ldbm -ldl -lm -lc -lcrypt -lucb
    libc=/usr/lib/libc.so.1, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-Kpic', lddlflags='-G -L/usr/ccs/lib -L/usr/ucblib -L/usr/local/
lib'

@INC: /usr/local/lib/perl5/MIServer-S-svr4/5.002 /usr/local/lib/perl5 /usr/local
/lib/perl5/site_perl/MIServer-S-svr4 /usr/local/lib/perl5/site_perl /usr/local/l
ib/perl5/MIServer-S-svr4 .

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26931-0@oink>;
          Wed, 29 May 1996 16:46:34 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833384013:20365:3; Wed, 29 May 96 16:33:33 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa19718; 29 May 96 16:32 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id IAA24835 for dbi-users-real; Wed, 29 May 1996 08:24:25 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id IAA24831 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 08:24:18 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id aa10272; 29 May 96 15:25 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa02942; 29 May 96 15:20 +0100
Received: from toad by oink with SMTP (PP) id <26576-0@oink>;
          Wed, 29 May 1996 15:16:40 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA13009;
          Wed, 29 May 1996 15:16:34 +0000
Date: Wed, 29 May 1996 15:16:34 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605291416.AA13009@toad.ig.co.uk>
To: dbi-users@fugue.com, citydev@innotts.co.uk
Subject: Re: Help needed with perl/DBI/Oracle at Nottingham City Hospital
X-Sun-Charset: US-ASCII
content-length: 1390
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: "I.M.& T." <citydev@innotts.co.uk>
> 
> However DBD-Oracle-0.31 produces the problem below on make test .
> I have downloaded and rebuilt perl5.002 and DBI-0.69 from fresh after
> cleaning the installation areas - but still the same problem .

>         PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib -I/usr/
> local/lib/perl5/MIServer-S-svr4/5.002 -I/usr/local/lib/perl5 -e 'use Test::Harne
> ss qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
> t/base..............install_driver(Oracle) failed: Can't load './blib/arch/auto/
> DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so: /usr/local/bin/perl: reloca
> tion error: symbol not found: _fpsetmask at /usr/local/lib/perl5/DynaLoader.pm l
> ine 140.

Umm. fpsetmask is an "IEEE floating-point environment control" function.
Find out what library on your system defined it (perhaps a libieee.a).

Your message didn't include a log of the build (as requested in the README).
Please send it.

[Minor diversion addressed to everyone] THE README ASKS FOR SPECIFIC INFORMATION
TO BE INCLUDED IN BUG REPORTS. IT DOES SO TO MAKE IT EASIER FOR ME TO WORK
OUT WHATS WRONG AND FIX IT WITH THE LEAST AMOUNT OF WASTED EFFORT AND EMAILS.
DON'T ASSUME THAT THE INFORMATION IS NOT RELEVANT. I SIMPLY DONT HAVE THE TIME.

[And now back to your regularly scheduled programming :-]

Thanks. I feel better now.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26931-2@oink>;
          Wed, 29 May 1996 16:46:41 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833384394:23983:2; Wed, 29 May 96 16:39:54 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa22527; 29 May 96 16:37 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id IAA24859 for dbi-users-real; Wed, 29 May 1996 08:34:00 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gw.home.vix.com (gw.home.vix.com [192.5.5.1]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id IAA24855 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 08:33:59 -0700
Received: by gw.home.vix.com id IAA06031; Wed, 29 May 1996 08:33:54 -0700
X-btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us
Received: from lion.amtrak.co.uk (root@[192.9.201.1]) 
          by shark.amtrak.co.uk (8.7.3/8.7.3) with SMTP id QAA00605 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 16:32:51 +0100 (BST)
Received: from redwood by lion.amtrak.co.uk (5.x/SMI-SVR4) id AA19478;
          Wed, 29 May 1996 16:31:01 +0100
To: Dbi_Users:;
From: Simon Windsor <simonw@amtrak.co.uk>
Cc: simonw@lion.amtrak.co.uk
Subject: DBI/DBD Performance
X-Originating-Host: redwood
Message-Id: <1996May29.163720+0000@redwood>
Date: 29 May 1996 16:37:20 +0000
Mime-Version: 1.0
X-Mailer: Hummingbird EMail for Windows Version 5.0

Hi

I've been using DBI with DBD-Oracle for a few months
now. We are mainly use tools for generating reports and
performing complicated batch updates. 

I am curious as to what level of performance I should be expecting.
Currently we have installed, and working, DBI-v0.69 and
DBD-Oracle-v0.31, and performance is on a par with Sqlplus. Typically,
we can achieve about 10 insert/updates per second for a simple SQL
statement. Is this good, or bad ?

The current hardware/software configuration is

Sparc 20 with 128MB memory
Solaris 2.5
Oracle 7.2.3 RDBMS

Thanks for all the effort in producing DBPerl, it is a greate product,
even if it is still Alpha.

Thanks


Simon Windsor

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27279-3@oink>;
          Wed, 29 May 1996 17:06:40 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833385761:07445:0; Wed, 29 May 96 17:02:41 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa06849; 29 May 96 17:01 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa23098; 29 May 96 16:59 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id IAA24945 for dbi-users-real; Wed, 29 May 1996 08:52:52 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from click3x.com (fwoutside.click3x.com [199.95.136.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id IAA24941 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 08:52:44 -0700
Received: by clickfw.click3x.com id <20481>; Wed, 29 May 1996 12:26:05 -0400
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Wed, 29 May 1996 12:51:48 -0400
To: Tim Bunce <Tim.Bunce@ig.co.uk>
From: Eric Valinsky <evalinsk@mediacircus.com>
Subject: Re: Make failure for DBD::Oracle/Solaris 2.5
Cc: dbi-users@fugue.com
Message-Id: <96May29.122605edt.20481@clickfw.click3x.com>


Tim--

Thank you very much for your prompt responses to my messages.  This one was
a bit too terse for all of us here, since no one has quite seen a make file
like this.

>> From: Eric Valinsky <evalinsk@mediacircus.com>
>>
>> >Umm. Try making this change to Makefile.PL:
>> >
>> >        - $opts{LIBS} = [ $sysliblist ];
>> >        + $opts{LIBS} = [ "$sysliblist -locic" ];
>> >
>>
>> I tried this, got the following message:
>>
>>         Warning (will try anyway): No library found for -locic
>>
>> and the same make failure as before.
>>
>> What'll'I do now?
>
>Hack it into the generated Makefile such that it appears at the end of the
>link command.
>
>Tim.

My questions are as follows:
What is "it" that I should hack, and where is the link command? Is it
linkext? Pardon everyone's indulgence, but I am appending the entire 1019
line generated make file here:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# This Makefile is for the DBD::Oracle extension to perl.
#
# It was generated automatically by MakeMaker version
# 5.21 (Revision: 1.174) from the contents of
# Makefile.PL. Don't edit this file, edit Makefile.PL instead.
#
#       ANY CHANGES MADE HERE WILL BE LOST!
#
#   MakeMaker Parameters:

#       INC => q[ -I/oracle/orahome/rdbms/demo -I$(INSTALLSITEARCH)/DBI
-I$(INSTALLARCHLIB)/DBI]
#       LIBS => [q[-lsocket -lnsl -lm -ldl -laio]]
#       NAME => q[DBD::Oracle]
#       OBJECT => q[$(O_FILES)]
#       VERSION_FROM => q[Oracle.pm]
#       dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist],
PREOP=>q[$(MAKE) -f Makefile.old distdir] }
#       dynamic_lib => { OTHERLDFLAGS=>q[-L$(LIBHOME) $(COMPOBJS)
$(LLIBOCIC) $(TTLIBS)] }

# --- MakeMaker post_initialize section:


# --- MakeMaker const_config section:

# These definitions are from config.sh (via
/usr/local/lib/perl5/sun4-solaris/5.002/Config.pm)

# They may have been overridden via Makefile.PL or on the command line
AR = ar
CC = cc
CCCDLFLAGS = -Kpic
CCDLFLAGS =
DLEXT = so
DLSRC = dl_dlopen.xs
LD = cc
LDDLFLAGS = -G -L/usr/local/lib -L/opt/gnu/lib
LDFLAGS =  -L/usr/local/lib -L/opt/gnu/lib
LIBC = /lib/libc.so
LIB_EXT = .a
OBJ_EXT = .o
RANLIB = :
SITELIBEXP = /usr/local/lib/perl5/site_perl
SITEARCHEXP = /usr/local/lib/perl5/site_perl/sun4-solaris
SO = so


# --- MakeMaker constants section:
AR_STATIC_ARGS = cr
NAME = DBD::Oracle
DISTNAME = DBD-Oracle
NAME_SYM = DBD_Oracle
VERSION = 0.31
VERSION_SYM = 0_31
XS_VERSION = 0.31
INST_LIB = ./blib/lib
INST_ARCHLIB = ./blib/arch
INST_EXE = ./blib/bin
PREFIX = /usr/local
INSTALLDIRS = site
INSTALLPRIVLIB = $(PREFIX)/lib/perl5
INSTALLARCHLIB = $(PREFIX)/lib/perl5/sun4-solaris/5.002
INSTALLSITELIB = $(PREFIX)/lib/perl5/site_perl
INSTALLSITEARCH = $(PREFIX)/lib/perl5/site_perl/sun4-solaris
INSTALLBIN = $(PREFIX)/bin
PERL_LIB = /usr/local/lib/perl5
PERL_ARCHLIB = /usr/local/lib/perl5/sun4-solaris/5.002
SITELIBEXP = /usr/local/lib/perl5/site_perl
SITEARCHEXP = /usr/local/lib/perl5/site_perl/sun4-solaris
LIBPERL_A = libperl.a
FIRST_MAKEFILE = Makefile
MAKE_APERL_FILE = Makefile.aperl
PERLMAINCC = $(CC)
PERL_INC = /usr/local/lib/perl5/sun4-solaris/5.002/CORE
PERL = /usr/bin/perl
FULLPERL = /usr/bin/perl

VERSION_MACRO = VERSION
DEFINE_VERSION = -D$(VERSION_MACRO)=\"$(VERSION)\"
XS_VERSION_MACRO = XS_VERSION
XS_DEFINE_VERSION = -D$(XS_VERSION_MACRO)=\"$(XS_VERSION)\"

MAKEMAKER = $(PERL_LIB)/ExtUtils/MakeMaker.pm
MM_VERSION = 5.21
MM_REVISION =

# FULLEXT = Pathname for extension directory (eg DBD/Oracle).
# BASEEXT = Basename part of FULLEXT. May be just equal FULLEXT.
# ROOTEXT = Directory part of FULLEXT with leading slash (eg /DBD)
# DLBASE  = Basename part of dynamic library. May be just equal BASEEXT.
FULLEXT = DBD/Oracle
BASEEXT = Oracle
ROOTEXT = /DBD
DLBASE = $(BASEEXT)
VERSION_FROM = Oracle.pm
INC =  -I/oracle/orahome/rdbms/demo -I$(INSTALLSITEARCH)/DBI
-I$(INSTALLARCHLIB)/DBI
OBJECT = $(O_FILES)
OBJECT = $(O_FILES)
LDFROM = $(OBJECT)
LINKTYPE = dynamic

# Handy lists of source code files:
XS_FILES= Oracle.xs
C_FILES = Oracle.c \
        dbdimp.c
O_FILES = Oracle.o \
        dbdimp.o
H_FILES = Oracle.h \
        dbdimp.h
MAN1PODS =
MAN3PODS = Oraperl.pm
INST_MAN1DIR = ./blib/man1
INSTALLMAN1DIR = $(PREFIX)/man/man1
MAN1EXT = 1
INST_MAN3DIR = ./blib/man3
INSTALLMAN3DIR = $(PREFIX)/lib/perl5/man/man3
MAN3EXT = 3

# work around a famous dec-osf make(1) feature(?):
makemakerdflt: all

.SUFFIXES: .xs .c .C .cpp .cxx .cc $(OBJ_EXT)

# Nick wanted to get rid of .PRECIOUS. I don't remember why. I seem to
recall, that
# some make implementations will delete the Makefile when we rebuild it. Because
# we call false(1) when we rebuild it. So make(1) is not completely wrong
when it
# does so. Our milage may vary.
# .PRECIOUS: Makefile    # seems to be not necessary anymore

.PHONY: all config static dynamic test linkext manifest

# Where is the Config information that we are using/depend on
CONFIGDEP = $(PERL_ARCHLIB)/Config.pm $(PERL_INC)/config.h $(VERSION_FROM)

# Where to put things:
INST_LIBDIR     = $(INST_LIB)$(ROOTEXT)
INST_ARCHLIBDIR = $(INST_ARCHLIB)$(ROOTEXT)

INST_AUTODIR      = $(INST_LIB)/auto/$(FULLEXT)
INST_ARCHAUTODIR  = $(INST_ARCHLIB)/auto/$(FULLEXT)

INST_STATIC  = $(INST_ARCHAUTODIR)/$(BASEEXT)$(LIB_EXT)
INST_DYNAMIC = $(INST_ARCHAUTODIR)/$(DLBASE).$(DLEXT)
INST_BOOT    = $(INST_ARCHAUTODIR)/$(BASEEXT).bs

EXPORT_LIST =

PERL_ARCHIVE =

INST_PM = $(INST_LIB)/Oraperl.pm \
        $(INST_LIB)/oraperl.ph \
        $(INST_LIBDIR)/Oracle.pm


# --- MakeMaker const_loadlibs section:

# DBD::Oracle might depend on some other libraries:
# (These comments may need revising:)
#
# Dependent libraries can be linked in one of three ways:
#
#  1.  (For static extensions) by the ld command when the perl binary
#      is linked with the extension library. See EXTRALIBS below.
#
#  2.  (For dynamic extensions) by the ld command when the shared
#      object is built/linked. See LDLOADLIBS below.
#
#  3.  (For dynamic extensions) by the DynaLoader when the shared
#      object is loaded. See BSLOADLIBS below.
#
# EXTRALIBS =   List of libraries that need to be linked with when
#               linking a perl binary which includes this extension
#               Only those libraries that actually exist are included.
#               These are written to a file and used when linking perl.
#
# LDLOADLIBS =  List of those libraries which can or must be linked into
#               the shared library when created using ld. These may be
#               static or dynamic libraries.
#               LD_RUN_PATH is a colon separated list of the directories
#               in LDLOADLIBS. It is passed as an environment variable to
#               the process that links the shared library.
#
# BSLOADLIBS =  List of those libraries that are needed but can be
#               linked in dynamically at run time on this platform.
#               SunOS/Solaris does not need this because ld records
#               the information (from LDLOADLIBS) into the object file.
#               This list is used to create a .bs (bootstrap) file.
#
EXTRALIBS  = -lsocket -lnsl -lm -ldl -laio -L$(LIBHOME) $(LLIBOCIC) $(TTLIBS)
LDLOADLIBS = -lsocket -lnsl -lm -ldl -laio
BSLOADLIBS =
LD_RUN_PATH= /lib


# --- MakeMaker const_cccmd section:
CCCMD = $(CC) -c $(INC) -O $(DEFINE_VERSION) $(XS_DEFINE_VERSION)


# --- MakeMaker tool_autosplit section:

# Usage: $(AUTOSPLITFILE) FileToSplit AutoDirToSplitInto
AUTOSPLITFILE = $(PERL) "-I$(PERL_ARCHLIB)" "-I$(PERL_LIB)" -e 'use
AutoSplit;autosplit($$ARGV[0], $$ARGV[1], 0, 1, 1) ;'


# --- MakeMaker tool_xsubpp section:

XSUBPPDIR = /usr/local/lib/perl5/ExtUtils
XSUBPP = $(XSUBPPDIR)/xsubpp
XSPROTOARG =
XSUBPPDEPS = $(XSUBPPDIR)/typemap
XSUBPPARGS = -typemap $(XSUBPPDIR)/typemap


# --- MakeMaker tools_other section:

SHELL = /bin/sh
LD = cc
TOUCH = touch
CP = cp
MV = mv
RM_F  = rm -f
RM_RF = rm -rf
CHMOD = chmod
UMASK_NULL = umask 0

# The following is a portable way to say mkdir -p
# To see which directories are created, change the if 0 to if 1
MKPATH = $(PERL) -wle '$$"="/"; foreach $$p (@ARGV){' \
-e 'next if -d $$p; my(@p); foreach(split(/\//,$$p)){' \
-e 'push(@p,$$_); next if -d "@p/"; print "mkdir @p" if 0;' \
-e 'mkdir("@p",0777)||die $$! } } exit 0;'

# This helps us to minimize the effect of the .exists files A yet
# better solution would be to have a stable file in the perl
# distribution with a timestamp of zero. But this solution doesn't
# need any changes to the core distribution and works with older perls
EQUALIZE_TIMESTAMP = $(PERL) -we 'open F, ">$$ARGV[1]"; close F;' \
-e 'utime ((stat("$$ARGV[0]"))[8,9], $$ARGV[1])'

# Here we warn users that an old packlist file was found somewhere,
# and that they should call some uninstall routine
WARN_IF_OLD_PACKLIST = $(PERL) -we 'exit unless -f $$ARGV[0];' \
-e 'print "WARNING: I have found an old package in\n";' \
-e 'print "\t$$ARGV[0].\n";' \
-e 'print "Please make sure the two installations are not conflicting\n";'

MOD_INSTALL = $(PERL) -I$(INST_LIB) -MExtUtils::Install \
-e 'install({@ARGV},1);'

DOC_INSTALL = $(PERL) -e '$$\="\n\n";print "=head3 ", scalar(localtime), ":
C<", shift, ">";' \
-e 'print "=over 4";' \
-e 'while ($$key = shift and $$val = shift){print "=item *";print "C<$$key:
$$val>";}' \
-e 'print "=back";'

UNINSTALL =   $(PERL) -MExtUtils::Install \
-e 'uninstall($$ARGV[0],1);'



# --- MakeMaker dist section:

DISTVNAME = $(DISTNAME)-$(VERSION)
TAR  = tar
TARFLAGS = cvf
COMPRESS = compress
SUFFIX = Z
SHAR = shar
PREOP = $(MAKE) -f Makefile.old distdir
POSTOP = @true
CI = ci -u
RCS_LABEL = rcs -Nv$(VERSION_SYM): -q
DIST_CP = best
DIST_DEFAULT = clean distcheck disttest ci tardist


# --- MakeMaker macro section:


# --- MakeMaker depend section:


# --- MakeMaker post_constants section:

###################################################################
#
ORACLE_HOME = /oracle/orahome

# The following text has been extracted from /oracle/orahome/proc/lib/proc.mk

#
# $Header: proc.mk.pp 1.9 95/09/27 14:39:41 jboyce Osd<unix> $ proc.mk.pp
#
#
# proc.mk - Command file for "make" to compile and load Pro*C 2.0 programs.
#
# Usage to build any program:
#       make -f proc.mk EXE=xyz OBJS="a.o b.o c.o"
#
# To link program with client shared library, ORA_CLIENT_LIB environment
# variable needs to be set to "shared" before the make command.
# e.g.  setenv ORA_CLIENT_LIB shared / export ORA_CLIENT_LIB=shared;
#       make -f proc.mk EXE=xyz OBJS=xyz.o [ build ]
#
# Special syntax to link demo program:
#       make -f proc.mk sample1
#
# Special syntax to link and install proc executable:
#       make -f proc.mk install
#
# NOTE:   ORACLE_HOME must be either:
#               . set in the user's environment
#               . passed in on the command line
#               . defined in a modified version of this makefile
#
# Pro*C programs are assumed to have the extension ".pc"
#


LIBHOME=$(ORACLE_HOME)/lib

I_SYM= -I



COMPOBJ=$(ORACLE_HOME)/lib
COMPOBJS=  $(COMPOBJ)/__fstd.o

LDSTRING= -R /opt/SUNWcluster/lib -Y
P,$(LD_LIBRARY_PATH):/opt/SUNWcluster/lib:/usr/ccs/lib:/usr/lib -Qy -lc
$(COMPOBJ)/crtn.o






LDCCOMR= $(CC) $(CFLAGS) $(LDFLAGS) -o

ARLOCAL=


ARCREATE=ar cr$(ARLOCAL)
ARDELETE=ar d$(ARLOCAL)
ARREPLACE=ar r$(ARLOCAL)


OTHERLIBS=`cat $(ORACLE_HOME)/rdbms/lib/sysliblist` $(MLSLIBS) $(LDSTRING)

LLIBPSO=

LLIBPSO=`cat $(ORACLE_HOME)/rdbms/lib/psoliblist`

XLIBHOME = /usr/lib
MOTIFLIBHOME = /usr/lib

MOTIFLIBS = -L$(MOTIFLIBHOME) -lXm -L$(XLIBHOME) -lXt -lX11 -lm

MOTIFLIBS = -L$(MOTIFLIBHOME) -lXm -lgen -L$(XLIBHOME) -lXt -lX11 -lw -lm

CLIBS=$(OTHERLIBS)

SO=a

NLSRTLHOME= $(SRCHOME)/nlsrtl3

NLSRTLLIB= -lnlsrtl3.a

LIBNLSRTL= $(LIBHOME)/libnlsrtl3.$(SO)
LLIBNLSRTL=-lnlsrtl3

NLSRTLINC = $(I_SYM)$(NLSRTLHOME)/public $(I_SYM)$(NLSRTLHOME)/sosd/public \
$(I_SYM)$(NLSRTLHOME)/include $(I_SYM)$(NLSRTLHOME)/src/nlsdata

NLSRTLPUBLIC = $(I_SYM)$(NLSRTLHOME)/public \
$(I_SYM)$(NLSRTLHOME)/sosd/public $(STDINCLUDE)

COREHOME= $(SRCHOME)/oracore3

LIBCORE= $(LIBHOME)/libcore3.$(SO)
LIBCV6= $(LIBHOME)/libc3v6.$(SO)
LLIBCORE= -lcore3
LLIBCV6= -lc3v6

CORELIBD= $(LIBNLSRTL) $(LIBCV6) $(LIBCORE)
CORELIBS= $(LLIBNLSRTL) $(LLIBCV6) $(LLIBCORE) $(LLIBNLSRTL) \
        $(LLIBCCOREFUND) $(LLIBCORE)

LIBNETWORK= $(LIBHOME)/libsqlnet.a
NTCONTAB= $(LIBHOME)/ntcontab.o

TNSLIBS= -lsqlnet
TNSLIBD= $(LIBSQLNET)

LIBSQLNET=$(LIBHOME)/libsqlnet.a
LLIBSQLNET=-lsqlnet
NETLIBD= $(OSNTAB) $(LIBSQLNET)
NETLIBS=  $(OSNTAB) $(LLIBSQLNET)

OSNTAB= $(LIBHOME)/osntab.o
OSNTABST= $(LIBHOME)/osntabst.o
LIBSQLNET= $(LIBHOME)/libsqlnet.a

SQLNETLIBS= -lsqlnet

LIBPLS= $(LIBHOME)/libpls.a
LLIBPLS= -lpls

ROSHOME= $(TK2HOME)/ros

ROSPUBLIC= $(I_SYM)$(ROSHOME)/include
ROSDEFS= $(I_SYM)$(ROSHOME)/defs

LIBROS= $(LIBHOME)/libros.a
LLIBROS= -lros

LIBTK2C= $(LIBHOME)/libtk2c.a
LLIBTK2C= -ltk2c
LIBTK2M= $(LIBHOME)/libtk2m.a
LLIBTK2M= -ltk2m

LIBQAP=
LLIBQAP=

LIBTK2P= $(LIBHOME)/libtk2p.a
LLIBTK2P= -ltk2p
LIBTK2UC= $(LIBHOME)/libuc.a
LLIBTK2UC= -luc
LIBTK2REM= $(LIBHOME)/librem.a
LLIBTK2REM= -lrem
LIBTK2OT= $(LIBHOME)/libot.a
LLIBTK2OT= -lot
LIBTK2OTX= $(LIBHOME)/libotx.a

LLIBTK2OTX= -lotx

LIBTK2UT= $(LIBHOME)/libut.a

LLIBTK2UT= -lut

LIBTK2SL= $(LIBHOME)/libsl.a
LLIBTK2SL= -lsl
LIBTK2RE= $(LIBHOME)/libre.a

LLIBTK2RE= -lre

TK2UICLIBD= $(LIBTK2RE) $(LIBTK2UC) $(LIBTK2C) $(LIBTK2OT) $(LIBTK2REM) \
        $(LIBROS) $(LIBTK2P) $(LIBTK2UT) $(LIBTK2SL)

TK2UICLIBS= $(DYNAMIC_ON_TK2) \
        $(LLIBTK2SL) $(LLIBTK2RE) $(LLIBTK2UC) $(LLIBTK2C) $(LLIBTK2OT) \
        $(LLIBTK2RE) $(LLIBTK2REM) $(LLIBROS) $(LLIBTK2C) $(LLIBTK2P) \
        $(LLIBTK2C) $(LLIBTK2P) -lm $(LLIBTK2REM) $(LLIBTK2C) $(LLIBTK2OT) \
        $(LLIBTK2UT) $(LLIBTK2UC) $(LLIBTK2SL) $(LLIBTK2C) \
        $(DYNAMIC_OFF_TK2)

TK2UIMLIBD= $(LIBTK2OT) $(LIBTK2RE) $(LIBTK2UC) $(LIBTK2REM) $(LIBROS) \
        $(LIBTK2M) $(LIBQAP) $(LIBTK2P) $(LIBTK2UT) $(LIBTK2SL)

TK2UIMLIBS= $(DYNAMIC_ON_TK2) \
        $(LLIBTK2OT) $(LLIBTK2RE) $(LLIBTK2UC) $(LLIBTK2REM) $(LLIBROS) \
        $(LLIBTK2M) $(LLIBQAP) $(LLIBTK2P) $(LLIBTK2M) $(LLIBTK2P) \
        $(LLIBTK2M) $(LLIBTK2OT) $(LLIBTK2UT) $(LLIBTK2SL) $(DYNAMIC_OFF_TK2)

PLSPECFILES=

LIBOCIC= $(LIBHOME)/libocic.a
LLIBOCIC= -locic

TTLIBD= $(NETLIBD) $(LIBORA) $(CORELIBD)

TTLIBS= $(NETLIBS) $(LLIBORA) $(LLIBSQLNET) $(LIBPLSHACK) $(LLIBORA)
$(CORELIBS) $(LDLIBS) $(CLIBS)

STLIBDNOPLS= $(OSNTABST) $(CONFIG) $(CORELIBD) $(NETLIBD) $(RDBMSLIBDNOPLS)
STLIBD= $(OSNTABST) $(CONFIG) $(CORELIBD) $(NETLIBD) $(RDBMSLIBD)
STLIBSNOPLS= $(OSNTABST) $(CONFIG) $(RDBMSLIBSNOPLS) $(RDBMSLIBSNOPLS) \
 $(PLSPECFILES) $(LLIBSQLNET) $(LLIBORA) $(LLIBSQLNET) $(CORELIBS) $(LLIBPSO) \
 $(LDLIBS) $(CLIBS)
STLIBS= $(OSNTABST) $(CONFIG) $(RDBMSLIBS) $(RDBMSLIBS) $(PLSPECFILES) \
 $(LLIBSQLNET) $(LLIBORA) $(LLIBSQLNET) $(CORELIBS) $(LLIBPSO) $(LDLIBS)
$(CLIBS)

LLIBNETV2= $(LIBNETV2)
LLIBNETWORK= $(LIBNETWORK)

CONFIG= $(LIBHOME)/config.o
OPIMAI= $(LIBHOME)/opimai.o
LIBORA= $(LIBHOME)/libora.a
LIBKNL= $(LIBHOME)/libknl.a
LIBKNLOPT= $(LIBHOME)/libknlopt.a
LLIBORA= -lora
LLIBKNL= -lknl
LLIBKNLOPT= -lknlopt

RDBMSLIBDNOPLS= $(LIBORA) $(LIBKNLOPT) $(LIBKNL)
RDBMSLIBD= $(LIBORA) $(LIBKNLOPT) $(LIBPLS) $(LIBKNL)
RDBMSLIBSNOPLS= $(LLIBORA) $(LLIBKNLOPT) $(LLIBKNL)
RDBMSLIBS= $(LLIBORA) $(LLIBKNLOPT) $(LLIBPLS) $(LLIBKNL)

LIBSOSD=
LLIBSOSD=

LIBPCORE=$(LIBHOME)/libpcore.a
LLIBPCORE= -lpcore

LIBCGEN= $(LIBHOME)/pdc.o
LIBFORGEN= $(LIBHOME)/pdf.o
LIBCOBGEN= $(LIBHOME)/pdb.o
LIBPASGEN= $(LIBHOME)/pdp.o
LIBADAGEN= $(LIBHOME)/pda.o
LIBPLIGEN= $(LIBHOME)/pd1.o
LIBOSDGEN= $(LIBHOME)/pds.o

CODEGENHOME= $(SRCHOME)/codegen

LIBSLAX=$(LIBHOME)/pxslax.o

SLAX=/usr/local/slax/newsx

.y.c:
        $(SLAX) -p -d -v $*.y

SQLHOME= $(ORACLE_HOME)/sqllib

SQLPUBLIC=$(I_SYM)$(SQLHOME)/public
LIBSQL= $(LIBHOME)/libsql.a
SQLLIBS= -lsql

LIBPROC20=$(LIBHOME)/libproc.a
LLIBPROC20= -lproc
LIBPRO= $(LIBPROC20)
LLIBPRO= $(LLIBPROC20)
PROLDLIBS= $(SQLLIBS) $(TTLIBS)

PROC=$(ORACLE_HOME)/bin/proc

#
# Redefining CC and OTHERLIBS - problem with LDSTRING and MTS / JATIN/HARISH
#

OTHERLIBS=`cat $(ORACLE_HOME)/rdbms/lib/sysliblist` $(MLSLIBS)


PROCOBJS=$(ORACLE_HOME)/proc/lib/main.o \
        $(ORACLE_HOME)/proc/lib/pcdsfv.o \
        $(ORACLE_HOME)/proc/lib/pcdlut.o
PROCPLSFLAGS= sqlcheck=full userid=$(USERID) dbms=v6_char
USERID= scott/tiger


SAMPLES=sample1 sample2 sample3 sample4 sample6 sample7 sample8 sample9
sample10 sample11 sample12 oraca sqlvcp cv_demo


# End of extract from /oracle/orahome/proc/lib/proc.mk
#
###################################################################


# --- MakeMaker pasthru section:

PASTHRU = INSTALLPRIVLIB="$(INSTALLPRIVLIB)"\
        INSTALLARCHLIB="$(INSTALLARCHLIB)"\
        INSTALLBIN="$(INSTALLBIN)"\
        INSTALLMAN1DIR="$(INSTALLMAN1DIR)"\
        INSTALLMAN3DIR="$(INSTALLMAN3DIR)"\
        LIBPERL_A="$(LIBPERL_A)"\
        LINKTYPE="$(LINKTYPE)"\
        PREFIX="$(PREFIX)"\
        INSTALLSITELIB="$(INSTALLSITELIB)"\
        INSTALLSITEARCH="$(INSTALLSITEARCH)"\
        INSTALLDIRS="$(INSTALLDIRS)"


# --- MakeMaker c_o section:

.c$(OBJ_EXT):
        $(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) $*.c

.C$(OBJ_EXT):
        $(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) $*.C

.cpp$(OBJ_EXT):
        $(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) $*.cpp

.cxx$(OBJ_EXT):
        $(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) $*.cxx

.cc$(OBJ_EXT):
        $(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) $*.cc


# --- MakeMaker xs_c section:

.xs.c:
        $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSPROTOARG)
$(XSUBPPARGS) $*.xs >$*.tc && mv $*.tc $@


# --- MakeMaker xs_o section:

.xs$(OBJ_EXT):
        $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSPROTOARG)
$(XSUBPPARGS) $*.xs >xstmp.c && mv xstmp.c $*.c
        $(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) $*.c


# --- MakeMaker top_targets section:

all ::  config $(INST_PM) subdirs linkext manifypods

subdirs :: $(MYEXTLIB)



config :: Makefile $(INST_LIBDIR)/.exists

config :: $(INST_ARCHAUTODIR)/.exists

config :: $(INST_AUTODIR)/.exists

config :: Version_check


$(INST_AUTODIR)/.exists :: /usr/local/lib/perl5/sun4-solaris/5.002/CORE/perl.h
        @$(MKPATH) $(INST_AUTODIR)
        @$(EQUALIZE_TIMESTAMP) $(PERL) $(INST_AUTODIR)/.exists
        -@$(CHMOD) 755 $(INST_AUTODIR)

$(INST_LIBDIR)/.exists :: /usr/local/lib/perl5/sun4-solaris/5.002/CORE/perl.h
        @$(MKPATH) $(INST_LIBDIR)
        @$(EQUALIZE_TIMESTAMP) $(PERL) $(INST_LIBDIR)/.exists
        -@$(CHMOD) 755 $(INST_LIBDIR)

$(INST_ARCHAUTODIR)/.exists ::
/usr/local/lib/perl5/sun4-solaris/5.002/CORE/perl.h
        @$(MKPATH) $(INST_ARCHAUTODIR)
        @$(EQUALIZE_TIMESTAMP) $(PERL) $(INST_ARCHAUTODIR)/.exists
        -@$(CHMOD) 755 $(INST_ARCHAUTODIR)

config :: $(INST_MAN3DIR)/.exists


$(INST_MAN3DIR)/.exists :: /usr/local/lib/perl5/sun4-solaris/5.002/CORE/perl.h
        @$(MKPATH) $(INST_MAN3DIR)
        @$(EQUALIZE_TIMESTAMP) $(PERL) $(INST_MAN3DIR)/.exists
        -@$(CHMOD) 755 $(INST_MAN3DIR)

$(O_FILES): $(H_FILES)

help:
        perldoc ExtUtils::MakeMaker

Version_check:
        @$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) \
                -MExtUtils::MakeMaker=Version_check \
                -e 'Version_check("$(MM_VERSION)")'


# --- MakeMaker linkext section:

linkext :: $(LINKTYPE)



# --- MakeMaker dlsyms section:


# --- MakeMaker dynamic section:

# $(INST_PM) has been moved to the all: target.
# It remains here for awhile to allow for old usage: "make dynamic"
dynamic :: Makefile $(INST_DYNAMIC) $(INST_BOOT) $(INST_PM)



# --- MakeMaker dynamic_bs section:

BOOTSTRAP = Oracle.bs

# As Mkbootstrap might not write a file (if none is required)
# we use touch to prevent make continually trying to remake it.
# The DynaLoader only reads a non-empty file.
$(BOOTSTRAP): Makefile  $(INST_ARCHAUTODIR)/.exists
        @echo "Running Mkbootstrap for $(NAME) ($(BSLOADLIBS))"
        @$(PERL) "-I$(PERL_ARCHLIB)" "-I$(PERL_LIB)" \
                -e 'use ExtUtils::Mkbootstrap;' \
                -e 'Mkbootstrap("$(BASEEXT)","$(BSLOADLIBS)");'
        @$(TOUCH) $(BOOTSTRAP)
        $(CHMOD) 644 $@

$(INST_BOOT): $(BOOTSTRAP) $(INST_ARCHAUTODIR)/.exists
        @rm -rf $(INST_BOOT)
        -cp $(BOOTSTRAP) $(INST_BOOT)
        $(CHMOD) 644 $@


# --- MakeMaker dynamic_lib section:

# This section creates the dynamically loadable $(INST_DYNAMIC)
# from $(OBJECT) and possibly $(MYEXTLIB).
ARMAYBE = :
OTHERLDFLAGS = -L$(LIBHOME) $(COMPOBJS) $(LLIBOCIC) $(TTLIBS)
INST_DYNAMIC_DEP =

$(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(BOOTSTRAP)
$(INST_ARCHAUTODIR)/.exists $(EXPORT_LIST) $(PERL_ARCHIVE)
$(INST_DYNAMIC_DEP)
        LD_RUN_PATH="$(LD_RUN_PATH)" $(LD) -o $@ $(LDDLFLAGS) $(LDFROM)
$(OTHERLDFLAGS) $(MYEXTLIB) $(LDLOADLIBS) $(EXPORT_LIST) $(PERL_ARCHIVE)
        $(CHMOD) 755 $@


# --- MakeMaker static section:

# $(INST_PM) has been moved to the all: target.
# It remains here for awhile to allow for old usage: "make static"
static :: Makefile $(INST_STATIC) $(INST_PM)



# --- MakeMaker static_lib section:

$(INST_STATIC): $(OBJECT) $(MYEXTLIB) $(INST_ARCHAUTODIR)/.exists
        $(AR) $(AR_STATIC_ARGS) $@ $(OBJECT) && $(RANLIB) $@
        @echo "$(EXTRALIBS)" > $(INST_ARCHAUTODIR)/extralibs.ld
        $(CHMOD) 755 $@


# --- MakeMaker installpm section:
inst_pm :: $(INST_PM)


# installpm: Oracle.pm => $(INST_LIBDIR)/Oracle.pm, splitlib=$(INST_LIB)

$(INST_LIBDIR)/Oracle.pm: Oracle.pm Makefile $(INST_LIBDIR)/.exists
$(INST_ARCHAUTODIR)/.exists
        @rm -f $@
        $(UMASK_NULL) && cp Oracle.pm $@
        @$(AUTOSPLITFILE) $@ $(INST_LIB)/auto


# installpm: Oraperl.pm => $(INST_LIB)/Oraperl.pm, splitlib=$(INST_LIB)

$(INST_LIB)/Oraperl.pm: Oraperl.pm Makefile $(INST_LIB)/.exists
$(INST_ARCHAUTODIR)/.exists
        @rm -f $@
        $(UMASK_NULL) && cp Oraperl.pm $@
        @$(AUTOSPLITFILE) $@ $(INST_LIB)/auto

$(INST_LIB)/.exists :: /usr/local/lib/perl5/sun4-solaris/5.002/CORE/perl.h
        @$(MKPATH) $(INST_LIB)
        @$(EQUALIZE_TIMESTAMP) $(PERL) $(INST_LIB)/.exists
        -@$(CHMOD) 755 $(INST_LIB)


# installpm: oraperl.ph => $(INST_LIB)/oraperl.ph, splitlib=$(INST_LIB)

$(INST_LIB)/oraperl.ph: oraperl.ph Makefile $(INST_LIB)/.exists
$(INST_ARCHAUTODIR)/.exists
        @rm -f $@
        $(UMASK_NULL) && cp oraperl.ph $@



# --- MakeMaker manifypods section:
POD2MAN_EXE = /usr/local/bin/pod2man
POD2MAN = $(PERL) -we '%m=@ARGV;for (keys %m){' \
-e 'next if -e $$m{$$_} && -M $$m{$$_} < -M $$_ && -M $$m{$$_} < -M
"Makefile";' \
-e 'print "Manifying $$m{$$_}\n";' \
-e 'system("$$^X \"-I$(PERL_ARCHLIB)\" \"-I$(PERL_LIB)\" $(POD2MAN_EXE)
$$_>$$m{$$_}")==0 or warn "Couldn\047t install $$m{$$_}\n";' \
-e 'chmod 0644, $$m{$$_} or warn "chmod 644 $$m{$$_}: $$!\n";}'

manifypods : Oraperl.pm
        @$(POD2MAN) \
        Oraperl.pm \
        $(INST_MAN3DIR)/DBD::Oraperl.$(MAN3EXT)

# --- MakeMaker processPL section:


# --- MakeMaker installbin section:


# --- MakeMaker subdirs section:

# none

# --- MakeMaker clean section:

# Delete temporary files but do not touch installed files. We don't delete
# the Makefile here so a later make realclean still has a makefile to use.

clean ::
        -rm -rf Oracle.c ./blib $(MAKE_APERL_FILE)
$(INST_ARCHAUTODIR)/extralibs.all perlmain.c mon.out core so_locations *~
*/*~ */*/*~ *$(OBJ_EXT) *$(LIB_EXT) perl.exe $(BOOTSTRAP) $(BASEEXT).bso
$(BASEEXT).def $(BASEEXT).exp
        -mv Makefile Makefile.old 2>/dev/null


# --- MakeMaker realclean section:

# Delete temporary files (via clean) and also delete installed files
realclean purge ::  clean
        rm -rf $(INST_AUTODIR) $(INST_ARCHAUTODIR)
        rm -f $(INST_DYNAMIC) $(INST_BOOT)
        rm -f $(INST_STATIC) $(INST_PM)
        rm -rf Makefile Makefile.old


# --- MakeMaker dist_basics section:

distclean :: realclean distcheck

distcheck :
        $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -e 'use ExtUtils::Manifest
"&fullcheck";' \
                -e 'fullcheck();'

skipcheck :
        $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -e 'use ExtUtils::Manifest
"&skipcheck";' \
                -e 'skipcheck();'

manifest :
        $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -e 'use ExtUtils::Manifest
"&mkmanifest";' \
                -e 'mkmanifest();'


# --- MakeMaker dist_core section:

dist : $(DIST_DEFAULT)

tardist : $(DISTVNAME).tar.$(SUFFIX)

$(DISTVNAME).tar.$(SUFFIX) : distdir
        $(PREOP)
        $(TAR) $(TARFLAGS) $(DISTVNAME).tar $(DISTVNAME)
        $(RM_RF) $(DISTVNAME)
        $(COMPRESS) $(DISTVNAME).tar
        $(POSTOP)

uutardist : $(DISTVNAME).tar.$(SUFFIX)
        uuencode $(DISTVNAME).tar.$(SUFFIX) \
                $(DISTVNAME).tar.$(SUFFIX) > \
                $(DISTVNAME).tar.$(SUFFIX).uu

shdist : distdir
        $(PREOP)
        $(SHAR) $(DISTVNAME) > $(DISTVNAME).shar
        $(RM_RF) $(DISTVNAME)
        $(POSTOP)


# --- MakeMaker dist_dir section:

distdir :
        $(RM_RF) $(DISTVNAME)
        $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -e 'use ExtUtils::Manifest
"/mani/";' \
                -e 'manicopy(maniread(),"$(DISTVNAME)", "$(DIST_CP)");'


# --- MakeMaker dist_test section:

disttest : distdir
        cd $(DISTVNAME) && $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) Makefile.PL
        cd $(DISTVNAME) && $(MAKE)
        cd $(DISTVNAME) && $(MAKE) test


# --- MakeMaker dist_ci section:

ci :
        $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -e 'use ExtUtils::Manifest
"&maniread";' \
                -e '@all = keys %{ maniread() };' \
                -e 'print("Executing $(CI) @all\n"); system("$(CI) @all");' \
                -e 'print("Executing $(RCS_LABEL) ...\n");
system("$(RCS_LABEL) @all");'


# --- MakeMaker install section:

install :: all pure_install doc_install

install_perl :: all pure_perl_install doc_perl_install

install_site :: all pure_site_install doc_site_install

install_ :: install_site
        @echo INSTALLDIRS not defined, defaulting to INSTALLDIRS=site

pure_install :: pure_$(INSTALLDIRS)_install

doc_install :: doc_$(INSTALLDIRS)_install
        @echo Appending installation info to $(INSTALLARCHLIB)/perllocal.pod

pure__install : pure_site_install
        @echo INSTALLDIRS not defined, defaulting to INSTALLDIRS=site

doc__install : doc_site_install
        @echo INSTALLDIRS not defined, defaulting to INSTALLDIRS=site

pure_perl_install ::
        @$(MOD_INSTALL) \
                read $(PERL_ARCHLIB)/auto/$(FULLEXT)/.packlist \
                write $(INSTALLARCHLIB)/auto/$(FULLEXT)/.packlist \
                $(INST_LIB) $(INSTALLPRIVLIB) \
                $(INST_ARCHLIB) $(INSTALLARCHLIB) \
                $(INST_EXE) $(INSTALLBIN) \
                $(INST_MAN1DIR) $(INSTALLMAN1DIR) \
                $(INST_MAN3DIR) $(INSTALLMAN3DIR)
        @$(WARN_IF_OLD_PACKLIST) \
                $(SITEARCHEXP)/auto/$(FULLEXT)


pure_site_install ::
        @$(MOD_INSTALL) \
                read $(SITEARCHEXP)/auto/$(FULLEXT)/.packlist \
                write $(INSTALLSITEARCH)/auto/$(FULLEXT)/.packlist \
                $(INST_LIB) $(INSTALLSITELIB) \
                $(INST_ARCHLIB) $(INSTALLSITEARCH) \
                $(INST_EXE) $(INSTALLBIN) \
                $(INST_MAN1DIR) $(INSTALLMAN1DIR) \
                $(INST_MAN3DIR) $(INSTALLMAN3DIR)
        @$(WARN_IF_OLD_PACKLIST) \
                $(PERL_ARCHLIB)/auto/$(FULLEXT)

doc_perl_install ::
        @$(DOC_INSTALL) \
                "$(NAME)" \
                "installed into" "$(INSTALLPRIVLIB)" \
                LINKTYPE "$(LINKTYPE)" \
                VERSION "$(VERSION)" \
                EXE_FILES "$(EXE_FILES)" \
                >> $(INSTALLARCHLIB)/perllocal.pod

doc_site_install ::
        @$(DOC_INSTALL) \
                "Module $(NAME)" \
                "installed into" "$(INSTALLSITELIB)" \
                LINKTYPE "$(LINKTYPE)" \
                VERSION "$(VERSION)" \
                EXE_FILES "$(EXE_FILES)" \
                >> $(INSTALLARCHLIB)/perllocal.pod


uninstall :: uninstall_from_$(INSTALLDIRS)dirs

uninstall_from_perldirs ::
        @$(UNINSTALL) $(PERL_ARCHLIB)/auto/$(FULLEXT)/.packlist

uninstall_from_sitedirs ::
        @$(UNINSTALL) $(SITEARCHEXP)/auto/$(FULLEXT)/.packlist


# --- MakeMaker force section:
# Phony target to force checking subdirectories.
FORCE:


# --- MakeMaker perldepend section:

PERL_HDRS = $(PERL_INC)/EXTERN.h $(PERL_INC)/INTERN.h \
    $(PERL_INC)/XSUB.h  $(PERL_INC)/av.h        $(PERL_INC)/cop.h \
    $(PERL_INC)/cv.h    $(PERL_INC)/dosish.h    $(PERL_INC)/embed.h \
    $(PERL_INC)/form.h  $(PERL_INC)/gv.h        $(PERL_INC)/handy.h \
    $(PERL_INC)/hv.h    $(PERL_INC)/keywords.h  $(PERL_INC)/mg.h \
    $(PERL_INC)/op.h    $(PERL_INC)/opcode.h    $(PERL_INC)/patchlevel.h \
    $(PERL_INC)/perl.h  $(PERL_INC)/perly.h     $(PERL_INC)/pp.h \
    $(PERL_INC)/proto.h $(PERL_INC)/regcomp.h   $(PERL_INC)/regexp.h \
    $(PERL_INC)/scope.h $(PERL_INC)/sv.h        $(PERL_INC)/unixish.h \
    $(PERL_INC)/util.h  $(PERL_INC)/config.h



$(OBJECT) : $(PERL_HDRS)

Oracle.c : $(XSUBPPDEPS)


# --- MakeMaker makefile section:

$(OBJECT) : $(FIRST_MAKEFILE)

# We take a very conservative approach here, but it's worth it.
# We move Makefile to Makefile.old here to avoid gnu make looping.
Makefile :      Makefile.PL $(CONFIGDEP)
        @echo "Makefile out-of-date with respect to $?"
        @echo "Cleaning current config before rebuilding Makefile..."
        -@mv Makefile Makefile.old
        -$(MAKE) -f Makefile.old clean >/dev/null 2>&1 || true
        $(PERL) "-I$(PERL_ARCHLIB)" "-I$(PERL_LIB)" Makefile.PL
        @echo ">>> Your Makefile has been rebuilt. <<<"
        @echo ">>> Please rerun the make command.  <<<"; false


# --- MakeMaker staticmake section:

# --- MakeMaker makeaperl section ---
MAP_TARGET    = perl
FULLPERL      = /usr/bin/perl

$(MAP_TARGET) :: $(MAKE_APERL_FILE)
        $(MAKE) -f $(MAKE_APERL_FILE) static $@

$(MAKE_APERL_FILE) : $(FIRST_MAKEFILE)
        @echo Writing \"$(MAKE_APERL_FILE)\" for this $(MAP_TARGET)
        @$(PERL) -I$(INST_ARCHLIB) -I$(INST_LIB) -I$(PERL_ARCHLIB)
-I$(PERL_LIB) \
                Makefile.PL DIR= \
                MAKEFILE=$(MAKE_APERL_FILE) LINKTYPE=static \
                MAKEAPERL=1 NORECURS=1 CCCDLFLAGS=


# --- MakeMaker test section:

TEST_VERBOSE=0
TEST_TYPE=test_$(LINKTYPE)

test :: $(TEST_TYPE)

test_dynamic :: all
        PERL_DL_NONLAZY=1 $(FULLPERL) -I$(INST_ARCHLIB) -I$(INST_LIB)
-I$(PERL_ARCHLIB) -I$(PERL_LIB) -e 'use Test::Harness qw(&runtests
$$verbose); $$verbose=$(TEST_VERBOSE); runtests @ARGV;' t/*.t
        PERL_DL_NONLAZY=1 $(FULLPERL) -I$(INST_ARCHLIB) -I$(INST_LIB)
-I$(PERL_ARCHLIB) -I$(PERL_LIB) test.pl

test_ : test_dynamic

test_static :: all $(MAP_TARGET)
        PERL_DL_NONLAZY=1 ./$(MAP_TARGET) -I$(INST_ARCHLIB) -I$(INST_LIB)
-I$(PERL_ARCHLIB) -I$(PERL_LIB) -e 'use Test::Harness qw(&runtests
$$verbose); $$verbose=$(TEST_VERBOSE); runtests @ARGV;' t/*.t
        PERL_DL_NONLAZY=1 ./$(MAP_TARGET) -I$(INST_ARCHLIB) -I$(INST_LIB)
-I$(PERL_ARCHLIB) -I$(PERL_LIB) test.pl



# --- MakeMaker postamble section:


# --- MakeMaker selfdocument section:


# End.

--The present day Systems Architect refuses to die!


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27779-0@oink>;
          Wed, 29 May 1996 18:06:30 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833389256:11088:6; Wed, 29 May 96 18:00:56 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa10863; 29 May 96 18:00 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id JAA25123 for dbi-users-real; Wed, 29 May 1996 09:47:09 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mail.Clark.Net ([168.143.0.10]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id JAA25119 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 09:47:06 -0700
Received: from clark.net (root@clark.net [168.143.0.7]) 
          by mail.Clark.Net (8.7.3/8.6.5) with ESMTP id MAA05219 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 12:44:19 -0400 (EDT)
Received: from JPOSNER (jposner.pcy.mci.net [206.128.186.112]) 
          by clark.net (8.7.1/8.7.1) with SMTP id MAA22655 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 12:44:15 -0400 (EDT)
Message-ID: <31AC7EC8.29CC@clark.net>
Date: Wed, 29 May 1996 12:43:52 -0400
From: Jeff Posner <jposner@clark.net>
Organization: MCI
X-Mailer: Mozilla 3.0b4 (WinNT; I)
MIME-Version: 1.0
To: DBI Users <dbi-users@fugue.com>
Subject: Memory Leak
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Tim, 

Have you had a chance to review this leak.  We had written
back and forth last week a couple of times. 

It is pretty severe leak and I don't know how to proceed
from here except to periodically exit and restart
the long running process, Ugh!

Thanks, 
Jeff


PS: Can someone else in dbu-users with the exact same environment
check this out and see if they leak also? Thanks.


Here's the summary:

> perl 5.002
> DBI-69
> DBD-31
> GCC 2.7.2
> Solaris 2.4
>
> #!/usr/local/bin/perl
> use Oraperl;
>
> $hDB = ora_login('your_db', 'your_user/your_pw', '') || die ;
>
> while (1) {
>     $csr=ora_open($hDB, 'select * from demand where ded_id=-1');
>     @titles=ora_titles($csr);  # THIS CAUSES A LEAK
>     printf "%d\n", $i++;
> }
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27779-2@oink>;
          Wed, 29 May 1996 18:06:42 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833389559:14694:1; Wed, 29 May 96 18:05:59 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa14032; 29 May 96 18:05 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa22255; 29 May 96 18:03 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id JAA25150 for dbi-users-real; Wed, 29 May 1996 09:55:34 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id JAA25146 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 09:55:32 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id aa10023; 29 May 96 17:52 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa03488; 29 May 96 17:05 +0100
Received: from toad by oink with SMTP (PP) id <27281-0@oink>;
          Wed, 29 May 1996 17:04:45 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA14198;
          Wed, 29 May 1996 17:04:37 +0000
Date: Wed, 29 May 1996 17:04:37 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605291604.AA14198@toad.ig.co.uk>
To: dbi-users@fugue.com, simonw@amtrak.co.uk
Subject: Re: DBI/DBD Performance
X-Sun-Charset: US-ASCII
content-length: 619
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Simon Windsor <simonw@amtrak.co.uk>
> 
> I am curious as to what level of performance I should be expecting.
> Currently we have installed, and working, DBI-v0.69 and
> DBD-Oracle-v0.31, and performance is on a par with Sqlplus. Typically,
> we can achieve about 10 insert/updates per second for a simple SQL
> statement. Is this good, or bad ?

How long is your piece of string?

In other words "it depends" on may factors you've not mentioned like,
for example, how many indicies the table has.

Make sure you're using repeated bind calls on a pre-prepared statement
and not re-preparing it each time.

Tim.
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <29438-12@oink>;
          Thu, 30 May 1996 07:07:19 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833430879:27751:1; Thu, 30 May 96 05:34:39 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa27549; 30 May 96 5:33 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id VAA27883 for dbi-users-real; Wed, 29 May 1996 21:20:54 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from rhino.coe.missouri.edu (rhino.coe.missouri.edu [128.206.59.236]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id VAA27879 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 21:20:52 -0700
Received: from localhost (pixel@localhost) 
          by rhino.coe.missouri.edu (8.7.3/8.7.3) with SMTP id XAA01194 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 23:20:51 -0500 (CDT)
X-Authentication-Warning: rhino.coe.missouri.edu: pixel owned process doing -bs
Date: Wed, 29 May 1996 23:20:51 -0500 (CDT)
From: James Cooper <pixel@tiger.coe.missouri.edu>
To: dbi-users@fugue.com
Subject: Another LONG question...
Message-ID: <Pine.SGI.3.93.960529231707.698I-100000@rhino.coe.missouri.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


well, maybe not *that* long... ;-)

..

A week ago I asked how to prevent the truncation of LONG fields during
SELECTs using DBD::Oracle.  A few folks answered, and suggested that I use
Oraperl.pm rather than DBI.pm..

That solution did work.  However, I was curious if there are plans to
include the Oraperl equivalent of $ora_trunc in a future release of
DBD::Oracle.  

Thanks

-- James

.........................................................................
                        James Paul Cooper * Pixel
                         MU College of Education
       pixel@coe.missouri.edu - http://tiger.coe.missouri.edu/~pixel/
.........................................................................

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29516-18@oink>;
          Thu, 30 May 1996 07:13:35 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833419059:16198:1; Thu, 30 May 96 02:17:39 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa15812; 30 May 96 2:16 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id RAA27272 for dbi-users-real; Wed, 29 May 1996 17:58:40 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mail.telstra.com.au (mail.telstra.com.au [192.148.160.10]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id RAA27268 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 17:58:37 -0700
Received: from mail_gw.fwall.telecom.com.au(192.148.147.10) by mail 
          via smap (V1.3) id sma019656; Thu May 30 10:54:49 1996
Received: from cdn_mail.dn.itg.telecom.com.au(144.135.109.134) 
          by mail_gw.telecom.com.au via smap (V1.3) id sma021530;
          Thu May 30 10:53:33 1996
Received: from frodo.dn.itg.telecom.com.au (frodo.dn.itg.telecom.com.au [144.136.188.211]) 
          by cdn_mail.dn.itg.telecom.com.au (8.6.11/8.6.9) with ESMTP 
          id KAA19649; Thu, 30 May 1996 10:53:31 +1000
Received: from localhost (localhost [127.0.0.1]) 
          by frodo.dn.itg.telecom.com.au (8.6.11/8.6.9) with SMTP id KAA28731;
          Thu, 30 May 1996 10:53:30 +1000
Message-Id: <199605300053.KAA28731@frodo.dn.itg.telecom.com.au>
X-Authentication-Warning: frodo.dn.itg.telecom.com.au: Host localhost didn't 
                          use HELO protocol
To: Tim Bunce <Tim.Bunce@ig.co.uk>
cc: dbi-users@fugue.com, sjg@frodo.dn.itg.telecom.com.au
Subject: Re: DBI/DBD-Oracle-0.29 problems
In-reply-to: Your message of "Wed, 29 May 1996 11:43:27 GMT." <9605291043.AA11541@toad.ig.co.uk>
Date: Thu, 30 May 1996 10:53:30 +1000
From: "Simon J. Gerraty" <sjg@frodo.dn.itg.telecom.com.au>

> > Turns out that the proc.mk file does not hold much that Makefile.PL is
> > interested in, it now includes a file env_precomp.mk which contains
> > the libraries to work with - in a very round about way. BTW
> > env_precomp.mk does not contain a version string either.
> 
> Please send me the files (privately).

Well what I did was cut and paste the output from that make sample1 I
showed you and used it in oraperl's Makefile ALL_ORA_LIBS, and it
linked ok and passed its tests.

I expect I can get the DBD stuff up the same way, but how to automat
the process?  I'd say do what I did:

find $ORACLE_HOME -name 'samp*.pc' -print 

the cd to the appropriate directory and run make -n -p proc.mk and
edit the output.

Much easier than reading *.mk

--sjg

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29516-22@oink>;
          Thu, 30 May 1996 07:14:14 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833420427:25318:1; Thu, 30 May 96 02:40:27 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa24392; 30 May 96 2:39 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id SAA27364 for dbi-users-real; Wed, 29 May 1996 18:24:17 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mas.atext.com (mas.atext.com [204.62.245.24]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id SAA27360 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 18:24:16 -0700
Received: (from parva@localhost) by mas.atext.com (8.6.9/8.6.9) id SAA29290;
          Wed, 29 May 1996 18:23:23 -0700
Date: Wed, 29 May 1996 18:23:23 -0700
From: Parva Oskoui <parva@excite.com>
Message-Id: <199605300123.SAA29290@mas.atext.com>
To: dbi-users@fugue.com
Subject: ora_bind


Does anyone have a working example of calling a PL/SQL procedure (or packaged
procedure)? We cannot pass parameters between the procedure and the Perl 
script. If the parameters are type IN, the script hangs, if they are type OUT,
we get white space back (haven't even tried it with INOUT yet). We are using 
ora_bind to pass parameters back and forth. (we seem to be ok, if we do the
open cursor, fetch and bind, etc. all in oraperl; i.e. avoid procedures...)

Here is an example (and thank you for any help anyone can give):

eval '$Oraperl::safe = 1'       if $] >= 5;
eval 'use Oraperl; 1' || die $@ if $] >= 5;
 
&ora_version;
 
 
print "start.\n";
$lda = &ora_login('', 'adhoc', 'adhoc');
die "error: $ora_errstr" if $ora_errno;
 
$s2 = &ora_open($lda, 'BEGIN test_perl3(:1); END;');
die "error: $ora_errstr" if $ora_errno;
 
$buf = 2;
&ora_bind($s2, $buf);
die "error: $ora_errstr" if $ora_errno;
 
print ("Returned Buffer Refined:$buf2:\n");
print ("Returned Buffer:$buf:\n");
($buf2) = split('\000', $buf);
print ("Returned Buffer Refined:$buf2:\n");
print ("Returned Buffer:$buf:\n");
 
&ora_close($s2);
die "error: $ora_errstr" if $ora_errno;
 
&ora_logoff($lda);
die "error: $ora_errstr" if $ora_errno;


...and the procedure test_perl3 is:

create procedure test_perl3(buffer out number) is
begin
/*
    select empno into buffer from emp where rownum = 1;
buffer := 99;
*/
insert into foo values ('Sample Line');
end;
/


Thanks
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29539-0@oink>;
          Thu, 30 May 1996 07:15:23 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833430318:20638:3; Thu, 30 May 96 05:25:18 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa20453; 30 May 96 5:24 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id VAA27857 for dbi-users-real; Wed, 29 May 1996 21:07:19 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from rhino.coe.missouri.edu (rhino.coe.missouri.edu [128.206.59.236]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id VAA27853 
          for <dbi-users@fugue.com>; Wed, 29 May 1996 21:07:18 -0700
Received: from localhost (pixel@localhost) 
          by rhino.coe.missouri.edu (8.7.3/8.7.3) with SMTP id XAA01164;
          Wed, 29 May 1996 23:07:11 -0500 (CDT)
X-Authentication-Warning: rhino.coe.missouri.edu: pixel owned process doing -bs
Date: Wed, 29 May 1996 23:07:11 -0500 (CDT)
From: James Cooper <pixel@tiger.coe.missouri.edu>
To: "Chawla, Rakesh" <RChawla@nibupls1.telecom.com.au>
cc: 'DBI Users' <dbi-users@fugue.com>
Subject: Re: Can Anyone HelpWith - Building DBD for Oracle ?
In-Reply-To: <31AD0DC9@msmailv0.telecom.com.au>
Message-ID: <Pine.SGI.3.93.960529230555.698G-100000@rhino.coe.missouri.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

>  -I/usr/people/rakesh/local/lib/perl5/IP22-irix/5.002/CORE  dbdimp.c
> cfe: Error: dbdimp.c, line 811: Incompatible pointer type assignment   
> (3.3.16.1, 3.5.4.1(21))
>      safefree(imp_sth->fbh);
>  --------------------^
> cfe: Error: dbdimp.c, line 811: Type imp_fbh_t *  of this argument  is   
> incompatible with type unsigned char *  of function prototype description   
> (3.3.16.1)
>      safefree(imp_sth->fbh);
>  --------------------^
> *** Error code 1 (bu21)

I ran into the same problem.  I think IRIX's cc is more finicky than other
compilers.  I changed line 811 to:

safefree((char *)imp_sth->fbh);

which typecasts the result as a char pointer.  It compiled after I did
that.  I also run IRIX 5.3.

Hope that helps

-- James

.........................................................................
                        James Paul Cooper * Pixel
                         MU College of Education
       pixel@coe.missouri.edu - http://tiger.coe.missouri.edu/~pixel/
.........................................................................

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04237-0@oink>;
          Thu, 30 May 1996 14:21:12 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833457215:25658:1; Thu, 30 May 96 12:53:35 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa25426; 30 May 96 12:52 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa13801; 30 May 96 12:52 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id EAA28557 for dbi-users-real; Thu, 30 May 1996 04:36:30 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay.orbit.net (george@relay.orbit.net [194.177.108.200]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id EAA28553 
          for <dbi-users@fugue.com>; Thu, 30 May 1996 04:36:28 -0700
Received: (from george@localhost) by relay.orbit.net (8.6.12/8.6.10) 
          id NAA16438; Thu, 30 May 1996 13:38:02 +0200
Date: Thu, 30 May 1996 13:38:02 +0200 (MET DST)
From: George Vicherek <george@ied.com>
X-Sender: george@relay.orbit.net
To: dbi-users@fugue.com
Subject: Perl, DBI/DBD-Informix on SCO 3.2.4...
Message-ID: <Pine.LNX.3.91.960530133126.16411A-100000@relay.orbit.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,

I am happily using isqlperl (Informix + perl4) on a SCO Unix box for some 
time now. However, I would like to use some of the features of perl 5.

I downloaded perl 5.002, DBD, DBI-Informix.
I have compiled perl5, no problems.
I have compiled DBD - test didn't go through becouse of lack of dynamic 
loading support in perl (the perl5 SCO config suggest static linking by 
default).

I went back and tried to compile perl5 with dynamic linking - no success.

Questinon:
Before I go any further, is dynamic loading supported on SCO 3.2.4?
if so, what do I have to do?
if not, how do I compile the DBI and DBD into perl staticaly?
do my questions make sense?

Many thanks,

George Vicherek
george@ied.com
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04237-4@oink>;
          Thu, 30 May 1996 14:21:32 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833458228:05343:2; Thu, 30 May 96 13:10:28 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa04396; 30 May 96 13:09 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id FAA28590 for dbi-users-real; Thu, 30 May 1996 05:06:28 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from carlton.innotts.co.uk (root@carlton.innotts.co.uk [194.176.128.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id FAA28586 
          for <dbi-users@fugue.com>; Thu, 30 May 1996 05:06:25 -0700
Received: from seriale05.innotts.co.uk (seriale05.innotts.co.uk [194.176.128.102]) 
          by carlton.innotts.co.uk (8.6.12/8.6.12) with SMTP id LAA27751;
          Thu, 30 May 1996 11:55:39 +0100
Received: by seriale05.innotts.co.uk with Microsoft Mail 
          id <01BB4E1F.1D648420@seriale05.innotts.co.uk>;
          Thu, 30 May 1996 11:57:02 +-100
Message-ID: <01BB4E1F.1D648420@seriale05.innotts.co.uk>
From: "I.M.& T." <citydev@innotts.co.uk>
To: "citydev@innotts.co.uk" <citydev@innotts.co.uk>, 
    "dbi-users@fugue.com" <dbi-users@fugue.com>, 
    'Tim Bunce' <Tim.Bunce@ig.co.uk>
Subject: RE: Help needed with perl/DBI/Oracle at Nottingham City Hospital
Date: Thu, 30 May 1996 11:56:13 +-100
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit


I am suitably humbled , particularly by your use of capital letters .
I beg your forgiveness !  :-)))))

As REQUESTED here are the logs :

1 perl Makefile.pl :

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.


Configuring DBD::Oracle ...

    Remember to actually read the README file!

Using Oracle in /oracle/product/v716
Oracle sysliblist: -lsocket -lnsl -lm
Using /oracle/product/v716/proc/lib/proc.mk (version 1.17)
System: perl5.002 holmes holmes 1.1-94c079 dcosx miserver-s 8512 r3000
Compiler: /usr/ccs/bin/cc -O -I/usr/include -I/usr/ucbinclude -DLANGUAGE_C
Oracle proc.mk would have used these values but we override them:
  CC:       cc
  CFLAGS:   -I. -O
  LDFLAGS:  -L$(LIBHOME)

Processing hints file hints/svr4.pl
Writing Makefile for DBD::Oracle 

2 make :

   umask 0 && cp Oraperl.pm ./blib/lib/Oraperl.pm
    umask 0 && cp oraperl.ph ./blib/lib/oraperl.ph
    umask 0 && cp Oracle.pm ./blib/lib/DBD/Oracle.pm
    /usr/local/bin/perl -I/usr/local/lib/perl5/MIServer-S-svr4/5.002 -I/usr/loca
l/lib/perl5 /usr/local/lib/perl5/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/
ExtUtils/typemap Oracle.xs >Oracle.tc && mv Oracle.tc Oracle.c
    /usr/ccs/bin/cc -c -I/oracle/product/v716/rdbms/demo -I/usr/local/lib/perl5/
site_perl/MIServer-S-svr4/DBI -I/usr/local/lib/perl5/MIServer-S-svr4/5.002/DBI -
I/usr/include -I/usr/ucbinclude -DLANGUAGE_C -O -DVERSION=\"0.31\" -DXS_VERSION=
\"0.31\" -Kpic -I/usr/local/lib/perl5/MIServer-S-svr4/5.002/CORE  Oracle.c
    /usr/ccs/bin/cc -c -I/oracle/product/v716/rdbms/demo -I/usr/local/lib/perl5/
site_perl/MIServer-S-svr4/DBI -I/usr/local/lib/perl5/MIServer-S-svr4/5.002/DBI -
I/usr/include -I/usr/ucbinclude -DLANGUAGE_C -O -DVERSION=\"0.31\" -DXS_VERSION=
\"0.31\" -Kpic -I/usr/local/lib/perl5/MIServer-S-svr4/5.002/CORE  dbdimp.c
Running Mkbootstrap for DBD::Oracle ()
    chmod 644 Oracle.bs
    LD_RUN_PATH="/usr/lib:/usr/ccs/lib" /usr/ccs/bin/cc -o ./blib/arch/auto/DBD/
Oracle/Oracle.so -G -L/usr/ccs/lib -L/usr/ucblib -L/usr/local/lib Oracle.o  dbdi
mp.o -L/oracle/product/v716/lib  -locic /oracle/product/v716/lib/osntab.o -lsqln
et -lora  -lsqlnet  -lora -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6           -lcore
 `cat /oracle/product/v716/rdbms/lib/sysliblist`   -lsocket -lnsl -lm
ld: /usr/lib/libsocket.so: warning: attempted multiple inclusion of file
ld: /usr/lib/libnsl.so: warning: attempted multiple inclusion of file
    chmod 755 ./blib/arch/auto/DBD/Oracle/Oracle.so
    cp Oracle.bs ./blib/arch/auto/DBD/Oracle/Oracle.bs
    chmod 644 ./blib/arch/auto/DBD/Oracle/Oracle.bs
Manifying ./blib/man3/DBD::Oraperl.3

3 make test TEST_VERBOSE=1
    PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib -I/usr/loca
l/lib/perl5/MIServer-S-svr4/5.002 -I/usr/local/lib/perl5 -e 'use Test::Harness q
w(&runtests $verbose); $verbose=1; runtests @ARGV;' t/*.t
t/base..............install_driver(Oracle) failed: Can't load './blib/arch/auto/
DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so: /usr/local/bin/perl: reloca
tion error: symbol not found: _fpsetmask at /usr/local/lib/perl5/DynaLoader.pm l
ine 140.

 at blib/lib/DBD/Oracle.pm line 22
    DBI::install_driver called at t/base.t line 16
1..5
ok 1
ok 2
ok 3
FAILED tests 4-5
    Failed 2/5 tests, 60.00% okay
    Test returned status 9 (wstat 2304)
Failed 1 test script, 0.00% okay. 2/5 subtests failed, 60.00% okay.
*** Error code 29 (bu21)

make: fatal error.

----------
From: 	Tim Bunce[SMTP:Tim.Bunce@ig.co.uk]
Sent: 	29 May 1996 16:16
To: 	dbi-users@fugue.com; citydev@innotts.co.uk
Subject: 	Re: Help needed with perl/DBI/Oracle at Nottingham City Hospital


> From: "I.M.& T." <citydev@innotts.co.uk>
> 
> However DBD-Oracle-0.31 produces the problem below on make test .
> I have downloaded and rebuilt perl5.002 and DBI-0.69 from fresh after
> cleaning the installation areas - but still the same problem .

>         PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib -I/usr/
> local/lib/perl5/MIServer-S-svr4/5.002 -I/usr/local/lib/perl5 -e 'use Test::Harne
> ss qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
> t/base..............install_driver(Oracle) failed: Can't load './blib/arch/auto/
> DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so: /usr/local/bin/perl: reloca
> tion error: symbol not found: _fpsetmask at /usr/local/lib/perl5/DynaLoader.pm l
> ine 140.

Umm. fpsetmask is an "IEEE floating-point environment control" function.
Find out what library on your system defined it (perhaps a libieee.a).

Your message didn't include a log of the build (as requested in the README).
Please send it.

[Minor diversion addressed to everyone] THE README ASKS FOR SPECIFIC INFORMATION
TO BE INCLUDED IN BUG REPORTS. IT DOES SO TO MAKE IT EASIER FOR ME TO WORK
OUT WHATS WRONG AND FIX IT WITH THE LEAST AMOUNT OF WASTED EFFORT AND EMAILS.
DON'T ASSUME THAT THE INFORMATION IS NOT RELEVANT. I SIMPLY DONT HAVE THE TIME.

[And now back to your regularly scheduled programming :-]

Thanks. I feel better now.

Tim.



---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04832-1@oink>;
          Thu, 30 May 1996 14:56:09 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833463297:22002:0; Thu, 30 May 96 14:34:57 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa21385; 30 May 96 14:33 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa01764; 30 May 96 14:30 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id GAA28756 for dbi-users-real; Thu, 30 May 1996 06:22:52 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id GAA28752 
          for <dbi-users@fugue.com>; Thu, 30 May 1996 06:22:46 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id af23369; 30 May 96 14:21 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa05514; 30 May 96 14:20 +0100
Received: from toad by oink with SMTP (PP) id <27767-0@oink>;
          Wed, 29 May 1996 18:03:17 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA14665;
          Wed, 29 May 1996 18:03:07 +0000
Date: Wed, 29 May 1996 18:03:07 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605291703.AA14665@toad.ig.co.uk>
To: evalinsk@mediacircus.com
Subject: Re: Make failure for DBD::Oracle/Solaris 2.5
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
content-length: 1653
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Eric Valinsky <evalinsk@mediacircus.com>
> 
> Tim--
> 
> Thank you very much for your prompt responses to my messages.  This one was
> a bit too terse for all of us here, since no one has quite seen a make file
> like this.
> 
> >> From: Eric Valinsky <evalinsk@mediacircus.com>
> >>
> >> >Umm. Try making this change to Makefile.PL:
> >> >
> >> >        - $opts{LIBS} = [ $sysliblist ];
> >> >        + $opts{LIBS} = [ "$sysliblist -locic" ];
> >>
> >> I tried this, got the following message:
> >>
> >>         Warning (will try anyway): No library found for -locic
> >>
> >> and the same make failure as before.
> >>
> >> What'll'I do now?
> >
> >Hack it into the generated Makefile such that it appears at the end of the
> >link command.
> 
> My questions are as follows:
> What is "it" that I should hack

"it" being the effect of the change shown above, e.g., add -locic.

> and where is the link command? Is it linkext?

> Pardon everyone's indulgence, but I am appending the entire 1019
> line generated make file here:

Not really needed but anyway... these are the important lines:

> EXTRALIBS  = -lsocket -lnsl -lm -ldl -laio -L$(LIBHOME) $(LLIBOCIC) $(TTLIBS)
> LDLOADLIBS = -lsocket -lnsl -lm -ldl -laio

> OTHERLDFLAGS = -L$(LIBHOME) $(COMPOBJS) $(LLIBOCIC) $(TTLIBS)
> 
> $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(BOOTSTRAP) $(INST_ARCHAUTODIR)/.exists $(EXPORT_LIST) $(PERL_ARCHIVE) $(INST_DYNAMIC_DEP)
>         LD_RUN_PATH="$(LD_RUN_PATH)" $(LD) -o $@ $(LDDLFLAGS) $(LDFROM)
> $(OTHERLDFLAGS) $(MYEXTLIB) $(LDLOADLIBS) $(EXPORT_LIST) $(PERL_ARCHIVE)

I'd suggest adding -locic to the end of the OTHERLDFLAGS definition.

Tim.
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <04833-2@oink>;
          Thu, 30 May 1996 14:56:14 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833462930:16927:2; Thu, 30 May 96 14:28:50 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa16728; 30 May 96 14:28 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id GAA28764 for dbi-users-real; Thu, 30 May 1996 06:24:23 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id GAA28760 
          for <dbi-users@fugue.com>; Thu, 30 May 1996 06:24:21 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ac23485; 30 May 96 14:22 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ar05514; 30 May 96 14:22 +0100
Received: from toad by oink with SMTP (PP) id <04065-0@oink>;
          Thu, 30 May 1996 13:07:18 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA18464;
          Thu, 30 May 1996 13:07:12 +0000
Date: Thu, 30 May 1996 13:07:12 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605301207.AA18464@toad.ig.co.uk>
To: citydev@innotts.co.uk, dbi-users@fugue.com
Subject: RE: Help needed with perl/DBI/Oracle at Nottingham City Hospital
X-Sun-Charset: US-ASCII
content-length: 616
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: "I.M.& T." <citydev@innotts.co.uk>
> 
> I am suitably humbled , particularly by your use of capital letters .
> I beg your forgiveness !  :-)))))

Forgiven!

:-)
 
> As REQUESTED here are the logs :

Thanks.

You still need to follow up on something else I said in my previous mail:

: Umm. fpsetmask is an "IEEE floating-point environment control" function.
: Find out what library on your system defined it (perhaps a libieee.a).

It's possible that a recent bug fix in Makefile.PL may resolve your
problem so I'll send you a copy of my current Makefile.PL in a seperate
message for you to try out.

Tim.
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <04833-4@oink>;
          Thu, 30 May 1996 14:56:22 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833463170:19291:1; Thu, 30 May 96 14:32:50 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa18911; 30 May 96 14:32 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id GAA28779 for dbi-users-real; Thu, 30 May 1996 06:27:06 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id GAA28775 
          for <dbi-users@fugue.com>; Thu, 30 May 1996 06:27:03 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ae23788; 30 May 96 14:24 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ad05514; 30 May 96 14:21 +0100
Received: from toad by oink with SMTP (PP) id <02818-0@oink>;
          Thu, 30 May 1996 10:47:38 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA17295;
          Thu, 30 May 1996 10:47:32 +0000
Date: Thu, 30 May 1996 10:47:32 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605300947.AA17295@toad.ig.co.uk>
To: RChawla@nibupls1.telecom.com.au, pixel@tiger.coe.missouri.edu
Subject: Re: Can Anyone HelpWith - Building DBD for Oracle ?
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
content-length: 459
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: James Cooper <pixel@tiger.coe.missouri.edu>
> 
> >      safefree(imp_sth->fbh);
> >  --------------------^
> > *** Error code 1 (bu21)
> 
> I ran into the same problem.  I think IRIX's cc is more finicky than other
> compilers.  I changed line 811 to:
> 
> safefree((char *)imp_sth->fbh);
> 
> which typecasts the result as a char pointer.  It compiled after I did
> that.  I also run IRIX 5.3.

Or just upgrade to the latest DBD::Oracle 0.31.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04832-5@oink>;
          Thu, 30 May 1996 14:56:26 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833463303:21966:3; Thu, 30 May 96 14:35:03 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa21597; 30 May 96 14:34 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id GAA28793 for dbi-users-real; Thu, 30 May 1996 06:28:56 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id GAA28789 
          for <dbi-users@fugue.com>; Thu, 30 May 1996 06:28:54 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ad23665; 30 May 96 14:23 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id am05514; 30 May 96 14:21 +0100
Received: from toad by oink with SMTP (PP) id <03085-0@oink>;
          Thu, 30 May 1996 11:44:27 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA17468;
          Thu, 30 May 1996 11:44:20 +0000
Date: Thu, 30 May 1996 11:44:20 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605301044.AA17468@toad.ig.co.uk>
To: sjg@frodo.dn.itg.telecom.com.au
Subject: Re: DBI/DBD-Oracle-0.29 problems
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
content-length: 1270
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: "Simon J. Gerraty" <sjg@frodo.dn.itg.telecom.com.au>
> 
> > > Turns out that the proc.mk file does not hold much that Makefile.PL is
> > > interested in, it now includes a file env_precomp.mk which contains
> > > the libraries to work with - in a very round about way. BTW
> > > env_precomp.mk does not contain a version string either.
> > 
> > Please send me the files (privately).
> 
> Well what I did was cut and paste the output from that make sample1 I
> showed you and used it in oraperl's Makefile ALL_ORA_LIBS, and it
> linked ok and passed its tests.
> 
> I expect I can get the DBD stuff up the same way, but how to automat
> the process?  I'd say do what I did:
> 
> find $ORACLE_HOME -name 'samp*.pc' -print 
> 
> the cd to the appropriate directory and run make -n -p proc.mk and
> edit the output.
> 
> Much easier than reading *.mk

Reading the mk files is more flexible. Keith Willard has kindly sent
me the mk files for Oracle 7.3 and I've made the minor changes needed
to support 7.3 (in the process I've found and fixed an old problem that
might have affected some other platforms and versions in the past).

I plan to spend some time reproducing and tracking down a memory leak
before releasing a new version. Maybe today or tomorrow.

Tim.
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <04833-6@oink>;
          Thu, 30 May 1996 14:56:30 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833463471:21998:1; Thu, 30 May 96 14:37:51 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa21266; 30 May 96 14:36 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id GAA28801 for dbi-users-real; Thu, 30 May 1996 06:29:29 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id GAA28797 
          for <dbi-users@fugue.com>; Thu, 30 May 1996 06:29:26 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ak24717; 30 May 96 14:28 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ak05514; 30 May 96 14:21 +0100
Received: from toad by oink with SMTP (PP) id <02781-0@oink>;
          Thu, 30 May 1996 10:37:00 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA17142;
          Thu, 30 May 1996 10:36:54 +0000
Date: Thu, 30 May 1996 10:36:54 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605300936.AA17142@toad.ig.co.uk>
To: dbi-users@fugue.com, pixel@tiger.coe.missouri.edu
Subject: Re: Another LONG question...
X-Sun-Charset: US-ASCII
content-length: 788
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: James Cooper <pixel@tiger.coe.missouri.edu>
> 
> well, maybe not *that* long... ;-)
> ..
> 
> A week ago I asked how to prevent the truncation of LONG fields during
> SELECTs using DBD::Oracle.  A few folks answered, and suggested that I use
> Oraperl.pm rather than DBI.pm..
> 
> That solution did work.  However, I was curious if there are plans to
> include the Oraperl equivalent of $ora_trunc in a future release of
> DBD::Oracle.  

Well, since the Oraperl emulation is a layer over DBD::Oracle, it is
already included. The issue is more about the stability of the interfaces.
The way Oraperl's $ora_trunc variable is used by DBD::Oracle is not
documented for a very good reason... it will change.

So my advise is, as always, stick with Oraperl for now if possible.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06043-0@oink>;
          Thu, 30 May 1996 15:58:21 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833467912:05921:0; Thu, 30 May 96 15:51:52 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa05243; 30 May 96 15:50 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa11265; 30 May 96 15:48 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id HAA28957 for dbi-users-real; Thu, 30 May 1996 07:25:30 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id HAA28950;
          Thu, 30 May 1996 07:25:17 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id ac11436; 30 May 96 14:24 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ac18071; 30 May 96 15:09 +0100
Received: from toad by oink with SMTP (PP) id <05281-0@oink>;
          Thu, 30 May 1996 15:07:43 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA20109;
          Thu, 30 May 1996 15:07:35 +0000
Date: Thu, 30 May 1996 15:07:35 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605301407.AA20109@toad.ig.co.uk>
To: dbi-announce@fugue.com
Subject: Announce: DBD-Oracle-0.32
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
content-length: 602
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


Changes in DBD::Oracle 0.32 (Oraperl 1.25), 30th May 1996

    Fixed memory leak when FETCH'ing attributes (&ora_titles() etc).
    Fixed Makefile.PL FileHandle problem (forgot 'use FileHandle;').
    Enhanced Makefile.PL support for Oracle 7.3.

On ftp.demon.co.uk now and enroute to CPAN via PAUSE.

Enjoy.

Tim.

p.s. My time is very short at the moment (working on a big project)
so I won't have much time for support etc. On the other hand the project
uses DBD::Oracle and needs to be _fast_ so I might finally get around
to adding the row cache and better stored procedure support. No promises.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06043-2@oink>;
          Thu, 30 May 1996 15:58:27 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833468002:06659:1; Thu, 30 May 96 15:53:22 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa06086; 30 May 96 15:52 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa10751; 30 May 96 15:49 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id HAA28965 for dbi-users-real; Thu, 30 May 1996 07:29:53 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id HAA28961 
          for <dbi-users@fugue.com>; Thu, 30 May 1996 07:29:47 -0700
Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) 
          id PAA10295; Thu, 30 May 1996 15:21:46 +0100
From: Alligator Descartes <descarte@hermetica.com>
Message-Id: <199605301421.PAA10295@fruitbat.mcqueen.com>
Subject: Re: Perl, DBI/DBD-Informix on SCO 3.2.4...
To: George Vicherek <george@ied.com>
Date: Thu, 30 May 1996 15:21:45 +0100 (BST)
Cc: dbi-users@fugue.com
In-Reply-To: <Pine.LNX.3.91.960530133126.16411A-100000@relay.orbit.net> from "George Vicherek" at May 30, 96 01:38:02 pm
X-Pants: ** The return address of this email should be: descarte@hermetica.com
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 1136


> I am happily using isqlperl (Informix + perl4) on a SCO Unix box for some 
> time now. However, I would like to use some of the features of perl 5.
> 
> I downloaded perl 5.002, DBD, DBI-Informix.
> I have compiled perl5, no problems.
> I have compiled DBD - test didn't go through becouse of lack of dynamic 
> loading support in perl (the perl5 SCO config suggest static linking by 
> default).
> 
> I went back and tried to compile perl5 with dynamic linking - no success.
> 
> Questinon:
> Before I go any further, is dynamic loading supported on SCO 3.2.4?

No idea.

> if so, what do I have to do?
> if not, how do I compile the DBI and DBD into perl staticaly?

Build the DBI extension. Type 'make perl' at the end. That'll give you a new
binary in that directory called 'perl' which has the DBI extension linked into
it. Copy that over your old perl binary. Do the same thing for the
DBD::Informix extension.

> George Vicherek

-- 
Alligator Descartes	|       Nexus - Multi-User Virtual Reality 
Anathematician		|         http://www.hermetica.com/nexus
descarte@hermetica.com	| Muse of the Day: "Juliette" - Marquis de Sade
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <07666-0@oink>;
          Thu, 30 May 1996 20:19:05 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833483913:16180:5; Thu, 30 May 96 20:18:33 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa14367; 30 May 96 20:18 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id MAA29812 for dbi-users-real; Thu, 30 May 1996 12:01:45 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from allison.clark.net (allison.clark.net [168.143.0.3]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id MAA29808 
          for <dbi-users@fugue.com>; Thu, 30 May 1996 12:01:43 -0700
Received: from clark.net (root@clark.net [168.143.0.7]) 
          by allison.clark.net (8.6.12/8.6.5) with ESMTP id PAA22672;
          Thu, 30 May 1996 15:01:28 -0400
Received: from JPOSNER (jposner.pcy.mci.net [206.128.186.112]) 
          by clark.net (8.7.1/8.7.1) with SMTP id OAA28230;
          Thu, 30 May 1996 14:58:18 -0400 (EDT)
Message-ID: <31ADEFB3.605D@clark.net>
Date: Thu, 30 May 1996 14:57:55 -0400
From: Jeff Posner <jposner@clark.net>
Organization: MCI
X-Mailer: Mozilla 3.0b4 (WinNT; I)
MIME-Version: 1.0
To: Tim Bunce <Tim.Bunce@ig.co.uk>
CC: DBI Users <dbi-users@fugue.com>
Subject: Re: Announce: DBD-Oracle-0.32
References: <9605301407.AA20109@toad.ig.co.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Tim,

A million thanks, sincerely, for the fix to the memory leak.  We
were really under the gun on this.  The whole team sends its appreciation.

Jeff

Tim Bunce wrote:
> 
> Changes in DBD::Oracle 0.32 (Oraperl 1.25), 30th May 1996
> 
>     Fixed memory leak when FETCH'ing attributes (&ora_titles() etc).
>     Fixed Makefile.PL FileHandle problem (forgot 'use FileHandle;').
>     Enhanced Makefile.PL support for Oracle 7.3.
> 
> On ftp.demon.co.uk now and enroute to CPAN via PAUSE.
> 
>
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <10312-0@oink>;
          Fri, 31 May 1996 07:05:54 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833496234:24970:3; Thu, 30 May 96 23:43:54 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa24744; 30 May 96 23:43 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id PAA00506 for dbi-users-real; Thu, 30 May 1996 15:38:09 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from sultan.hsii.ccare.com (sultan.hsii.ccare.com [192.101.181.3]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id PAA00502 
          for <dbi-users@fugue.com>; Thu, 30 May 1996 15:38:06 -0700
Received: from msgw.hsii.ccare.com by SULTAN.HSII.CCARE.COM (PMDF V5.0-5 #4597) 
          id <01I5BPS0X6XS002DLA@SULTAN.HSII.CCARE.COM> 
          for dbi-users@fugue.com; Thu, 30 May 1996 17:38:01 -0500 (CDT)
Received: by msgw.hsii.ccare.com with Microsoft Mail 
          id <31AE23B5@msgw.hsii.ccare.com>;
          Thu, 30 May 1996 17:39:49 -0500 (CDT)
Date: Thu, 30 May 1996 17:34:00 -0500 (CDT)
From: "Willard, Keith" <KWillard@msmail.hsii.ccare.com>
Subject: remote logins with oraperl/DBD Oracle
To: dbilist <dbi-users@fugue.com>
Message-id: <31AE23B5@msgw.hsii.ccare.com>
X-Mailer: Microsoft Mail V3.0
Content-transfer-encoding: 7BIT
Encoding: 51 TEXT


I apologize if this has been covered recently but I am having trouble 
getting my running version of the DBD-Oracle (I have running versions of .28 
built against Oracle 7.2.3 and am currently trying to build .31 against 
Oracle 7.3.2) to perform remote (on another machine) connections even though 
it is very happy to do so to a server that is on the same machine as the 
perl process.


However, by setting up by tnsnames.ora file on my client machine I can get 
sqlplus to do the remote login just fine.  This makes it clear that the 
sqlnet, the network and the remote  server  are all just happy.    I found 
the following in the the docs


>$lda = &ora_login('personnel', 'scott', 'tiger') || die $ora_errstr;
>
>This function is equivalent to the OCI olon and orlon functions.
>Really, it should have been called &ora_logon(), but I made the mistake
>a long time ago and fixing it would break too many existing programs.
>
>B<DBD:> note that TNS aliases are currently not supported. If 'foo' is
>an alias for 'T:host:foo' then you must explicitly use 'T:host:foo' (or
>an empty string and rely on ORACLE_SID or TWO_TASK environment variables)."


So
if the name of the remote host running Oracle is remotehost,
my database is 'test',
the account name is 'name',
and password is 'pw'

I took this to mean I should try

     lda=&ora_login("T:remotehost:test", "name", "pw");

This doesn't work.  What should I be doing instead?

As an aside,  if  the oraperl is not looking at the tnsnames.ora file how is 
it getting the listening port on the remote machine?

Thanks for any help,

 --keith willlard







---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <10413-22@oink>;
          Fri, 31 May 1996 07:16:03 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833517801:25793:2; Fri, 31 May 96 05:43:21 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25619; 31 May 96 5:42 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id VAA01187 for dbi-users-real; Thu, 30 May 1996 21:37:47 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from colossus.cse.psu.edu (root@colossus.cse.psu.edu [130.203.1.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id VAA01183 
          for <dbi-users@fugue.com>; Thu, 30 May 1996 21:37:46 -0700
Received: from localhost by colossus.cse.psu.edu with SMTP id <78399>;
          Fri, 31 May 1996 00:37:40 -0400
X-Mailer: exmh version 1.6.5 12/11/95
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: "Willard, Keith" <KWillard@msmail.hsii.ccare.com>
cc: dbi-users@fugue.com
Subject: Re: remote logins with oraperl/DBD Oracle
In-reply-to: Your message of "Thu, 30 May 1996 18:34:00 EDT." <31AE23B5@msgw.hsii.ccare.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 31 May 1996 00:35:12 -0400
From: John D Groenveld <groenvel@cse.psu.edu>
Message-Id: <96May31.003740edt.78399@colossus.cse.psu.edu>

> I took this to mean I should try
> 
>      lda=&ora_login("T:remotehost:test", "name", "pw");
                       ^^^^^^^^^^^^^^^^^
			SQLNET v1 string? 
 
> This doesn't work.  What should I be doing instead?

How about using the same connect string you used for sqlplus? If it looks like 
'sqlplus scott/tiger@sqlnetv2alias' then you Oraperl/DBD line should read 
'lda=&ora_login("", "scott/tiger\@sqlnetv2alias", "");'. Or you could just 
make sure the environment variable TWO_TASK is set to the correct SQLNET v1 
connect string or V2 alias.
John

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <10579-1@oink>;
          Fri, 31 May 1996 07:25:17 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833523848:01044:3; Fri, 31 May 96 07:24:08 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa00782; 31 May 96 7:23 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id XAA01332 for dbi-users-real; Thu, 30 May 1996 23:20:42 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mail.pi.se (mail.pi.se [194.52.20.8]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id XAA01328 
          for <dbi-users@fugue.com>; Thu, 30 May 1996 23:20:40 -0700
Received: from ubu.dc.statoil.se (mail.igis.se [194.132.192.91]) 
          by mail.pi.se (8.7.5/8.7.3) with SMTP id IAA08585;
          Fri, 31 May 1996 08:19:46 +0200 (MET DST)
Received: from dune.dc.statoil.se (dune.dc.statoil.se [10.0.1.4]) 
          by ubu.dc.statoil.se (940816.SGI.8.6.9/941003) with ESMTP 
          id IAA16490; Fri, 31 May 1996 08:19:14 +0200
Received: from dune.dc.statoil.se (localhost [127.0.0.1]) 
          by dune.dc.statoil.se (940816.SGI.8.6.9/941003) with SMTP 
          id IAA09960; Fri, 31 May 1996 08:19:13 +0200
Message-ID: <31AE8F61.41C6@igis.se>
Date: Fri, 31 May 1996 08:19:13 +0200
From: Robin Langdon <robin@igis.se>
X-Mailer: Mozilla 3.0b4 (X11; I; IRIX 5.3 IP22)
MIME-Version: 1.0
To: Tim Bunce <Tim.Bunce@ig.co.uk>
CC: dbi-users@fugue.com
Subject: Re: Update problem with DBD-Oracle-0.31
References: <9605291056.AA11632@toad.ig.co.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

> I recommend you delete your entire /usr/local/src/fcgi-perl5/lib/perl5 tree
> and then rebuild and install a fresh perl5.002 using the defaults, 

Conclusion: Make sure Perl is installed correctly!!

After removing everything remotely connected to Perl and re-installing, we
eliminated the problem with the Perl config and guess what! The update problem
is no longer a problem.

Thanks Tim for your suggestions, I realise you are a busy man these days so I
appreciate the help.

It is also great to here that the memory leak problem has been fixed - time to
download 0.32...

Robin.
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <14032-1@oink>;
          Fri, 31 May 1996 14:28:59 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833543512:03713:2; Fri, 31 May 96 12:51:52 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa03136; 31 May 96 12:50 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id EAA01814 for dbi-users-real; Fri, 31 May 1996 04:41:24 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from deimos (deimos.sovam.com [194.67.1.156]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id EAA01810 
          for <dbi-users@fugue.com>; Fri, 31 May 1996 04:41:15 -0700
Received: from nike.sovam.com ([194.67.3.241]) by deimos.sovam.com with SMTP 
          id <17291-14407>; Fri, 31 May 1996 15:40:39 +0400
Message-ID: <31AEDABC.1E92@online.ru>
Date: Fri, 31 May 1996 15:40:44 +0400
From: "Roman L. Podshivalov" <romas@online.ru>
Reply-To: romas@online.ru
Organization: ROL
X-Mailer: Mozilla 3.0b4 (Win95; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: Tim.Bunce@ig.co.uk
Subject: Bug somewhere ???
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

hi all. look 
i've got simple script:
--------------------------------------
#!/usr/local/bin/perl

use DBI;

$drh = DBI->install_driver('Oracle') || die "install_driver: 
$DBI::errstr\n";
$dbh = $drh->connect('', 'client/server@TEST') || die "connect: 
$DBI::errstr\n";
$stm = $dbh->prepare('select userid from tata where username = ?') ||
                die "prepare: $DBI::errstr\n";
$stm->execute('peder') || die "execute: $DBI::errstr\n";
($pwd) = $stm->fetchrow; $stm->finish;
if(!defined $pwd){
        print "no rows fetched\n";
} else {
        print "$pwd\n";
}
$dbh->disconnect;
-------------------------------------

It works well when table looks like :

SQL> desc tata
 Name                            Null?    Type
 ------------------------------- -------- ----
 USERID                                   NUMBER(38)
 USERNAME                                 VARCHAR2(8)

SQL>
like 
#./ch.pl
1
#
!!!!!!!!!!!But when i drop table and recreate it like :
SQL> desc tata;
 Name                            Null?    Type
 ------------------------------- -------- ----
 USERID                                   NUMBER(38)
 USERNAME                                 CHAR(8)

SQL>
i've got
#./ch.pl
no rows fetched
#

hehe i dont forget to insert data :-)

It looks like some probs in OCI obnrdn/obndrv with internal <-> external 
data type conversion, because it has same effect in my OCI program where 
i'm always using VARCHAR2_TYPE as external data type in obndrn.

PS: 	Oracle 7.2.2.2
	Sun Solaris 2.4
	DBI 0.68
	DBD::Oracle 0.29
-- 
                                            Sovam Teleport 
Roman L. Podshivalov               phone (+7-501) 258-4170 
<mailto:romas@online.ru>           fax   (+7-501) 258-4133
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <14032-7@oink>;
          Fri, 31 May 1996 14:29:24 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833546612:04726:1; Fri, 31 May 96 13:43:32 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa02211; 31 May 96 13:42 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id FAA01863 for dbi-users-real; Fri, 31 May 1996 05:32:39 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bsfiles.nerc-bas.ac.uk (bsfiles.nerc-bas.ac.uk [192.171.137.25]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id FAA01859 
          for <dbi-users@fugue.com>; Fri, 31 May 1996 05:32:34 -0700
Received: from bssmlsa.nerc-bas.ac.uk.nerc-bas.ac.uk 
          by bsfiles.nerc-bas.ac.uk (8.6.10/NERC-1.2(Solaris 2.x) id NAA10304;
          Fri, 31 May 1996 13:32:21 +0100
Date: Fri, 31 May 1996 13:32:19 +0100
Message-Id: <18283.199605311232@bssmlsa.nerc-bas.ac.uk.nerc-bas.ac.uk>
From: Andrew G Wood <agw@mail.nerc-bas.ac.uk>
To: romas@online.ru
CC: dbi-users@fugue.com, Tim.Bunce@ig.co.uk
In-reply-to: <31AEDABC.1E92@online.ru> (romas@online.ru)
Subject: Re: Bug somewhere ???
Reply-to: agw@mail.nerc-bas.ac.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII

>>>>> ""Roman" == "Roman L Podshivalov" <romas@online.ru> writes:

    > hi all. look i've got simple script:
    > -------------------------------------- #!/usr/local/bin/perl

    > use DBI;

    > $drh = DBI->install_driver('Oracle') || die "install_driver:
    > $DBI::errstr\n"; $dbh = $drh->connect('', 'client/server@TEST')
    > || die "connect: $DBI::errstr\n"; $stm = $dbh->prepare('select
    > userid from tata where username = ?') || die "prepare:
    > $DBI::errstr\n"; $stm->execute('peder') || die "execute:
    > $DBI::errstr\n"; ($pwd) = $stm->fetchrow; $stm->finish;
    > if(!defined $pwd){ print "no rows fetched\n"; } else { print
    > "$pwd\n"; } $dbh->disconnect;
    > -------------------------------------

    > It works well when table looks like :

    SQL> desc tata
    >  Name                           Null?    Type
    > ------------------------------- -------- ----
    > USERID                                   NUMBER(38)
    > USERNAME                                 VARCHAR2(8)

    SQL>
    > like #./ch.pl 1 # !!!!!!!!!!!But when i drop table and recreate
    > it like :
    SQL> desc tata;
    >  Name                           Null?    Type
    > ------------------------------- -------- ----
    > USERID                                   NUMBER(38)
    > USERNAME                                 CHAR(8)

    SQL>
    > i've got #./ch.pl no rows fetched #

Yep that's about what I would expect .... I think you have not RTFM ....

    CHAR DATATYPE

    The CHAR datatype specifies a fixed length character string.  When
    you create a table with a CHAR column, you can supply the column
    length in bytes.  Oracle subsequently ensures that all values stored
    in that column have this length.  If you insert a value that is
    shorter than the column length, Oracle blank-pads the value to
    column length.  If you try to insert a value that is too long for
    the column, Oracle returns an error.

    The default length for a CHAR column is 1 byte.  The maximum length
    of CHAR data is 255 bytes.  Oracle compares CHAR values using blank-
    padded comparison semantics.


    VARCHAR2 DATATYPE

    The VARCHAR2 datatype specifies a variable length character string.
    When you create a VARCHAR2 column, you can supply the maximum number
    of bytes of data that it can hold.  Oracle subsequently stores each
    value in the column exactly as you specify it, provided it does not
    exceed the column's maximum length.  If you try to insert a value
    that exceeds this length, Oracle returns an error.

    You must specify a maximum length for a VARCHAR2 column.  The
    maximum length of VARCHAR2 data is 2000 bytes.  Oracle compares
    VARCHAR2 values using non-padded comparison semantics.

So using the CHAR datatype column I would expect ...

$stm->execute('peder   ') 

... to work?

But then again I could be wrong :-)

Andy.

+--------------------------------------------+
|   Dr Andy Wood, Database Administrator     |
|   British  Antarctic  Survey               |
|   High Cross, Madingley Road            +----------------------------------+
|   Cambridge,   CB3 0ET,   UK            |    A.Wood@bas.ac.uk              |
|      +44 (0) 1223 361188                |    agw@mail.nerc-bas.ac.uk       |
+-----------------------------------------|    A.G.Wood@bcs.org.uk           |
                                          +----------------------------------+
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <14032-10@oink>;
          Fri, 31 May 1996 14:29:37 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833548045:18734:2; Fri, 31 May 96 14:07:25 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa17802; 31 May 96 14:06 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id FAA01913 for dbi-users-real; Fri, 31 May 1996 05:59:33 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from deimos (deimos.sovam.com [194.67.1.156]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id FAA01909 
          for <dbi-users@fugue.com>; Fri, 31 May 1996 05:59:16 -0700
Received: from nike.sovam.com ([194.67.3.241]) by deimos.sovam.com with SMTP 
          id <17309-14408>; Fri, 31 May 1996 16:59:03 +0400
Message-ID: <31AEED17.43F6@online.ru>
Date: Fri, 31 May 1996 16:59:03 +0400
From: "Roman L. Podshivalov" <romas@online.ru>
Reply-To: romas@online.ru
Organization: ROL
X-Mailer: Mozilla 3.0b4 (Win95; I)
MIME-Version: 1.0
To: agw@mail.nerc-bas.ac.uk
CC: dbi-users@fugue.com, Tim.Bunce@ig.co.uk
Subject: Re: Bug somewhere ???
References: <18283.199605311232@bssmlsa.nerc-bas.ac.uk.nerc-bas.ac.uk>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Andrew G Wood wrote:
> 
> >>>>> ""Roman" == "Roman L Podshivalov" <romas@online.ru> writes:
> 
>     > hi all. look i've got simple script:
>     > -------------------------------------- #!/usr/local/bin/perl
> 
>     > use DBI;
> 
>     > $drh = DBI->install_driver('Oracle') || die "install_driver:
>     > $DBI::errstr\n"; $dbh = $drh->connect('', 'client/server@TEST')
>     > || die "connect: $DBI::errstr\n"; $stm = $dbh->prepare('select
>     > userid from tata where username = ?') || die "prepare:
>     > $DBI::errstr\n"; $stm->execute('peder') || die "execute:
>     > $DBI::errstr\n"; ($pwd) = $stm->fetchrow; $stm->finish;
>     > if(!defined $pwd){ print "no rows fetched\n"; } else { print
>     > "$pwd\n"; } $dbh->disconnect;
>     > -------------------------------------
> 
>     > It works well when table looks like :
> 
>     SQL> desc tata
>     >  Name                           Null?    Type
>     > ------------------------------- -------- ----
>     > USERID                                   NUMBER(38)
>     > USERNAME                                 VARCHAR2(8)
> 
>     SQL>
>     > like #./ch.pl 1 # !!!!!!!!!!!But when i drop table and recreate
>     > it like :
>     SQL> desc tata;
>     >  Name                           Null?    Type
>     > ------------------------------- -------- ----
>     > USERID                                   NUMBER(38)
>     > USERNAME                                 CHAR(8)
> 
>     SQL>
>     > i've got #./ch.pl no rows fetched #
> 
> Yep that's about what I would expect .... I think you have not RTFM ....
> 
>     CHAR DATATYPE
> 
>     The CHAR datatype specifies a fixed length character string.  When
>     you create a table with a CHAR column, you can supply the column
>     length in bytes.  Oracle subsequently ensures that all values stored
>     in that column have this length.  If you insert a value that is
>     shorter than the column length, Oracle blank-pads the value to
>     column length.  If you try to insert a value that is too long for
>     the column, Oracle returns an error.
> 
>     The default length for a CHAR column is 1 byte.  The maximum length
>     of CHAR data is 255 bytes.  Oracle compares CHAR values using blank-
>     padded comparison semantics.
> 
>     VARCHAR2 DATATYPE
> 
>     The VARCHAR2 datatype specifies a variable length character string.
>     When you create a VARCHAR2 column, you can supply the maximum number
>     of bytes of data that it can hold.  Oracle subsequently stores each
>     value in the column exactly as you specify it, provided it does not
>     exceed the column's maximum length.  If you try to insert a value
>     that exceeds this length, Oracle returns an error.
> 
>     You must specify a maximum length for a VARCHAR2 column.  The
>     maximum length of VARCHAR2 data is 2000 bytes.  Oracle compares
>     VARCHAR2 values using non-padded comparison semantics.
> 
> So using the CHAR datatype column I would expect ...
> 
> $stm->execute('peder   ')

But why it works with CHAR datatype like :
$stm = $dbh->prepare('select userid from tata where username = 'peder');
$stm->execute;
($some) = $stm->fetchrow;

> 
> ... to work?
> 
> But then again I could be wrong :-)
> 
> Andy.
> 
> +--------------------------------------------+
> |   Dr Andy Wood, Database Administrator     |
> |   British  Antarctic  Survey               |
> |   High Cross, Madingley Road            +----------------------------------+
> |   Cambridge,   CB3 0ET,   UK            |    A.Wood@bas.ac.uk              |
> |      +44 (0) 1223 361188                |    agw@mail.nerc-bas.ac.uk       |
> +-----------------------------------------|    A.G.Wood@bcs.org.uk           |
>                                           +----------------------------------+

-- 
                                            Sovam Teleport 
Roman L. Podshivalov               phone (+7-501) 258-4170 
<mailto:romas@online.ru>           fax   (+7-501) 258-4133
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14771-1@oink>;
          Fri, 31 May 1996 17:01:06 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833549876:29750:1; Fri, 31 May 96 14:37:56 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa28131; 31 May 96 14:35 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id GAA01971 for dbi-users-real; Fri, 31 May 1996 06:30:05 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from sultan.hsii.ccare.com (sultan.hsii.ccare.com [192.101.181.3]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id GAA01967 
          for <dbi-users@fugue.com>; Fri, 31 May 1996 06:30:01 -0700
Received: from msgw.hsii.ccare.com by SULTAN.HSII.CCARE.COM (PMDF V5.0-5 #4597) 
          id <01I5CKX6DHVK0028GO@SULTAN.HSII.CCARE.COM> 
          for dbi-users@fugue.com; Fri, 31 May 1996 08:29:24 -0500 (CDT)
Received: by msgw.hsii.ccare.com with Microsoft Mail 
          id <31AEF4AA@msgw.hsii.ccare.com>;
          Fri, 31 May 1996 08:31:22 -0500 (CDT)
Date: Fri, 31 May 1996 08:26:00 -0500 (CDT)
From: "Willard, Keith" <KWillard@msmail.hsii.ccare.com>
Subject: Re: remote logins with oraperl/DBD Oracle
To: dbilist <dbi-users@fugue.com>
Message-id: <31AEF4AA@msgw.hsii.ccare.com>
X-Mailer: Microsoft Mail V3.0
Content-transfer-encoding: 7BIT
Encoding: 11 TEXT


using John's suggestion with the sqlv2net alias (as found in my tnsnames.ora 
file) worked for me just fine.

Thank you very much!

 --keith willard




---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14771-15@oink>;
          Fri, 31 May 1996 17:02:57 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833556343:06307:9; Fri, 31 May 96 16:25:43 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa04897; 31 May 96 16:24 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id IAA02111 for dbi-users-real; Fri, 31 May 1996 08:10:06 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from carlton.innotts.co.uk (root@carlton.innotts.co.uk [194.176.128.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id IAA02107 
          for <dbi-users@fugue.com>; Fri, 31 May 1996 08:10:04 -0700
Received: from seriale0d.innotts.co.uk (seriale0d.innotts.co.uk [194.176.128.110]) 
          by carlton.innotts.co.uk (8.6.12/8.6.12) with SMTP id QAA24814;
          Fri, 31 May 1996 16:10:49 +0100
Received: by seriale0d.innotts.co.uk with Microsoft Mail 
          id <01BB4F0B.E8007800@seriale0d.innotts.co.uk>;
          Fri, 31 May 1996 16:12:03 +-100
Message-ID: <01BB4F0B.E8007800@seriale0d.innotts.co.uk>
From: "I.M.& T." <citydev@innotts.co.uk>
To: 'Tim Bunce' <Tim.Bunce@ig.co.uk>
Cc: 'Perl DBI' <dbi-users@fugue.com>
Subject: RE: Help needed with perl/DBI/Oracle at Nottingham City Hospital
Date: Fri, 31 May 1996 16:11:19 +-100
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

No luck with the new Makefile.PL it gives the same error on make test .

Note :

nm *.a | grep fpsetmask | grep FUNC shows fpsetmask is
in /usr/lib/libc.a . Looking at the makefile it doesn't appear to be 
explicitly linking this in . 

I have a theory  :

Maybe ( perhaps etc. ) it is linking in the dynamic version of this library
libc.so.1 which according to nm doesn't contain fpsetmask . Note LINKTYPE
is DYNAMIC .

A temporary solution :

If I edit the Makefile ( YES I KNOW I SHOULDN'T DO THIS BUT I AM
A DESPERATE MAN ) and add -lc after each occurrence of -lm 
make test works (I think.

After make install I will  test our perl application .

Thanks for your perseverance - Steve Musgrave

----------
From: 	Tim Bunce[SMTP:Tim.Bunce@ig.co.uk]
Sent: 	30 May 1996 14:07
To: 	citydev@innotts.co.uk; dbi-users@fugue.com
Subject: 	RE: Help needed with perl/DBI/Oracle at Nottingham City Hospital


> From: "I.M.& T." <citydev@innotts.co.uk>
> 
> I am suitably humbled , particularly by your use of capital letters .
> I beg your forgiveness !  :-)))))

Forgiven!

:-)
 
> As REQUESTED here are the logs :

Thanks.

You still need to follow up on something else I said in my previous mail:

: Umm. fpsetmask is an "IEEE floating-point environment control" function.
: Find out what library on your system defined it (perhaps a libieee.a).

It's possible that a recent bug fix in Makefile.PL may resolve your
problem so I'll send you a copy of my current Makefile.PL in a seperate
message for you to try out.

Tim.



---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <16364-0@oink>;
          Fri, 31 May 1996 19:31:14 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833563610:28966:4; Fri, 31 May 96 18:26:50 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa28335; 31 May 96 18:25 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id KAA02434 for dbi-users-real; Fri, 31 May 1996 10:16:56 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id KAA02430 
          for <dbi-users@fugue.com>; Fri, 31 May 1996 10:16:51 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id aj25988; 31 May 96 17:16 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ak13525; 31 May 96 17:01 +0100
Received: from toad by oink with SMTP (PP) id <14711-0@oink>;
          Fri, 31 May 1996 16:51:18 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA25129;
          Fri, 31 May 1996 16:51:10 +0000
Date: Fri, 31 May 1996 16:51:10 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605311551.AA25129@toad.ig.co.uk>
To: sam@wkp.com
Subject: Re: Oracle header files - Pro*c 1.6
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
content-length: 1177
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Sam Sarmad <sam@wkp.com>

The README says that problems should be reported to the dbi-users list (CC'd)

> I am trying to compile DBD-Oracle-0.29 on a Silicon Graphics running IRIX-5.3.
> (DBI-0.69 has compiled fine).
> 
> 23# make
>         cc -c -I/usr/local/oracle3/rdbms/demo -I/usr/db/perl5/lib/site_perl/IP22
> -irix/DBI -I/usr/db/perl5/lib/IP22-irix/5.002/DBI -D_POSIX_SOURCE -ansiposix -D_
> BSD_TYPES -Olimit 3000 -DLANGUAGE_C -O -DVERSION=\"0.29\" -DXS_VERSION=\"0.29\"
>  -I/usr/db/perl5/lib/IP22-irix/5.002/CORE  Oracle.c
> cfe: Error: ./Oracle.h: 30: Cannot open file oratypes.h for #include
> cfe: Error: ./Oracle.h: 32: Cannot open file ocidfn.h for #include
> cfe: Error: ./Oracle.h: 35: Cannot open file ociapr.h for #include
> *** Error code 1 (bu21)
> 
> Now, we have Oracle Pro*c version 1.6.  These header files did not appear
> until version 2.0.
> Does any one know how I can go through this without the header files?

I'm sure there are some header files supplied that give the required
definitions. They might just have different names or be in different
directories.

Else ask someone to send version 2 files to you. They _might_ work.

Tim.
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <16364-3@oink>;
          Fri, 31 May 1996 19:31:28 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833564382:07745:2; Fri, 31 May 96 18:39:42 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa07422; 31 May 96 18:39 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id KAA02558 for dbi-users-real; Fri, 31 May 1996 10:34:48 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id KAA02554 
          for <dbi-users@fugue.com>; Fri, 31 May 1996 10:34:43 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ah15794; 31 May 96 18:28 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ag13525; 31 May 96 17:01 +0100
Received: from toad by oink with SMTP (PP) id <14596-0@oink>;
          Fri, 31 May 1996 16:18:35 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA24940;
          Fri, 31 May 1996 16:18:27 +0000
Date: Fri, 31 May 1996 16:18:27 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605311518.AA24940@toad.ig.co.uk>
To: jposner@clark.net
Subject: Re: Announce: DBD-Oracle-0.32
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
content-length: 273
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Jeff Posner <jposner@clark.net>
> 
> Tim,
> 
> A million thanks, sincerely, for the fix to the memory leak.  We
> were really under the gun on this.  The whole team sends its appreciation.

Glad to be able to help. Sorry it took so long to get around to it.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16367-18@oink>;
          Fri, 31 May 1996 19:32:36 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833567046:26940:2; Fri, 31 May 96 19:24:06 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa26071; 31 May 96 19:22 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id KAA02648 for dbi-dev-real; Fri, 31 May 1996 10:53:02 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id KAA02644 
          for <dbi-dev@fugue.com>; Fri, 31 May 1996 10:52:52 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net 
          id an04376; 31 May 96 17:41 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ai13525; 31 May 96 17:01 +0100
Received: from toad by oink with SMTP (PP) id <14647-0@oink>;
          Fri, 31 May 1996 16:33:32 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA25058;
          Fri, 31 May 1996 16:33:24 +0000
Date: Fri, 31 May 1996 16:33:24 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9605311533.AA25058@toad.ig.co.uk>
To: bkarwin@interbase.borland.com
Subject: Re: Writing a DBD
Cc: dbi-dev@fugue.com
X-Sun-Charset: US-ASCII
content-length: 3714
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424

[cc'd to dbi-dev]

> From: bkarwin@interbase.borland.com (Bill Karwin)
> 
> Tim, I've been trying to write a DBD for InterBase, but
> I'm afraid I just can't make heads or tails of writing
> a DBD module.
> 
> I've been coming back every couple of months and taking a look
> at the DBI and Oracle.xs and dbdimp.c, and it is very frustrating.
> I don't know the Oracle API, so I can't tell which code in dbdimp.c
> is Oracle specific and which is part of the Perl XS interface.
> The lack of documentation or comments in the code is a hinderance.

Other DBD's have been written. Reasonable knowledge of perl internals
is a requirement (and I don't have time to teach that). Sorry.

> I am doing a presentation on July 27th at the Borland Developer's
> Conference on writing InterBase apps using Perl.  I'm going to have
> to use Interperl or make a Perl 5 adaptation of Interperl, because
> I have only a week left before I have to submit my presentation
> notes for publication.
> 
> But I'd still like to develop an InterBase DBD module.
> Are there any areas you can point me to for some help?
> 
> I also have concerns about the future of DBI and DBD:
> 
> - Lack of documentation both for the application programmer
>   and the DBD developer.  After three years of development,
>   I find it very troubling that no real documentation or
>   even commented code is available.  I am from the school
>   of thought that documentation and commented code are just as
>   important to a product as the code itself is.
> 
> - Periodic changes to the DBI spec, which have gone undocumented.
>   I don't want to get into a dog-chasing-tail situation of having
>   to hack my DBD every time the DBI spec changes.
> 
> - News that the DBI spec is going to be trashed in favor of an
>   ODBC-like interface.

Trashed is too strong a word. ODBC will (probably) be grafted on
the side and then used as the 'standard' for the rest of the API
(e.g., return codes, attribute names, assorted conventions etc).

>   Why should I write a DBD that is going to be obsolete?

I envisage DBD's being usable for some time after ODBC support is
added.

> - A DBI that isn't extensible to allow me to surface unique
>   InterBase features.

It is: $h->func(@args, 'your_private_method')

(sadly only listed in the DBI Changes file, till now).

>   ODBC is simply a lowest-common-denominator
>   approach to database programming, and it feels very constraining
>   after programming with the native API of a database vendor.
>   InterBase has a very sophisticated transaction model, to which
>   most other vendors don't even come close.

At the end of the day it might be best just to roll your own, like
Sybase, from scratch using h2xs etc.

> I don't fault you for keeping the project in an Alpha state.
> I understand the restrictions of doing this in your "spare" time.
> And I really like the idea of a standardized Perl database API.
> But for the reasons listed above, I'm not sure that I want to
> use DBI for InterBase.

Okay. I won't be upset if you didn't.

> I thought of writing my own module, and then writing a DBD package
> entirely in Perl that merely called into my module.  That way
> if people want the full InterBase functionality, they can use
> my API.  If they want DBI comformance, they can use my DBD binding.
> This way I can write my module in the short term, and then get
> some help and add DBD compatibility later.

Sure. mSQL support took that route.

> --
> Bill Karwin                                 bkarwin@interbase.borland.com
> Borland International                        InterBase Technical Services
> "Once you've seen one picture of the Mandelbrot set, you've seen them all."

Good luck.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21094-26@oink>;
          Sun, 2 Jun 1996 11:50:48 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833574363:14933:0; Fri, 31 May 96 21:26:03 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa14275; 31 May 96 21:25 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa29878; 31 May 96 21:24 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id MAA03104 for dbi-users-real; Fri, 31 May 1996 12:57:41 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from linux2.socomm.net (root@ns.socomm.net [206.31.121.1]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id MAA03100 
          for <dbi-users@fugue.com>; Fri, 31 May 1996 12:57:40 -0700
Received: from hostmaster (hostmaster.socomm.net [207.15.160.254]) 
          by linux2.socomm.net (8.6.12/8.6.12) with SMTP id OAA23098;
          Fri, 31 May 1996 14:57:17 -0500
Message-Id: <1.5.4.32.19960531200106.006d9928@socomm.net>
X-Sender: tagreen@socomm.net
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 31 May 1996 15:01:06 -0500
To: dbi-users@fugue.com
From: "Todd A. Green" <tagreen@socomm.net>
Subject: Oracle DBD Install Problem
Cc: Tim.Bunce@ig.co.uk

I'm attempting to get the DBD::Oracle setup.

I have installed DBI 0.69, but didn't see problems.

Please not the error below:

linux2:/usr/src/perl5.002/ext/DBD-Oracle-0.32# perl Makefile.PL
".69" is not exported by the DBI module at /usr/lib/perl5/Exporter.pm line 95
        Exporter::export called at /usr/lib/perl5/Exporter.pm line 149
        Exporter::import called at Makefile.PL line 14
        main::BEGIN called at /usr/lib/perl5/site_perl/DBI.pm line 0
        eval {...} called at /usr/lib/perl5/site_perl/DBI.pm line 0
Can't continue after import errors at Makefile.PL line 14
BEGIN failed--compilation aborted at Makefile.PL line 14.
linux2:/usr/src/perl5.002/ext/DBD-Oracle-0.32#

Any Ideas?

---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <21091-31@oink>;
          Sun, 2 Jun 1996 11:50:50 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833578277:13204:0; Fri, 31 May 96 22:31:17 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa11168; 31 May 96 22:29 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id NAA03245 for dbi-dev-real; Fri, 31 May 1996 13:58:42 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mailbox.osf.org (mailbox.osf.org [130.105.1.8]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id NAA03241 
          for <dbi-dev@fugue.com>; Fri, 31 May 1996 13:58:40 -0700
Received: from gandalf (gandalf [130.105.3.186]) 
          by mailbox.osf.org (8.6.12/8.6.x) with SMTP id QAA27044;
          Fri, 31 May 1996 16:55:35 -0400
Date: Fri, 31 May 1996 16:55:35 -0400
Message-Id: <199605312055.QAA27044@mailbox.osf.org>
X-Sender: dougm@postman.osf.org
X-Mailer: Windows Eudora Version 2.0.3
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: Tim Bunce <Tim.Bunce@ig.co.uk>, bkarwin@interbase.borland.com
From: dougm@osf.org (Doug MacEachern)
Subject: Re: Writing a DBD
Cc: dbi-dev@fugue.com

At 04:33 PM 5/31/96 +0000, Tim Bunce wrote:
>[cc'd to dbi-dev]
>
>> From: bkarwin@interbase.borland.com (Bill Karwin)
>> 
>> Tim, I've been trying to write a DBD for InterBase, but
>> I'm afraid I just can't make heads or tails of writing
>> a DBD module.
>> 
>> I've been coming back every couple of months and taking a look
>> at the DBI and Oracle.xs and dbdimp.c, and it is very frustrating.
>> I don't know the Oracle API, so I can't tell which code in dbdimp.c
>> is Oracle specific and which is part of the Perl XS interface.
>> The lack of documentation or comments in the code is a hinderance.

Not having written a DBD driver myself, I'm no expert, but I have considered
writing one for Postgress95.  DBI/DBD is a big project, and I feel that is
(or will be) the best way for developing *vendor-independent* database
driven applications in perl.  In fact, I have embedded the DBI interface in
C programs to take advantage of it's generic interface.  As you say, you are
not familar with the Oracle interface, I doubt there are any DBI/DBD users
that know every database API, which is what's so great about DBI!!!!  Yes,
it is still in alpha, but I have not run into any major problems.

>
>Other DBD's have been written. Reasonable knowledge of perl internals
>is a requirement (and I don't have time to teach that). Sorry.

Reasonable, yes, which is not as much as Bill or others might think.  Tim
did most of the initial work with DBI and DBD::Oracle, now, do a 'diff' on
two driver's dbdimp.c files.  Compare, say, mSQL and Informix, this makes it
much more clear as to where the vendor specific API stuff fits in.  Do the
same with the .xs and .pm files.  You should be able to get away without
touching much of the existing code.

>
>> I am doing a presentation on July 27th at the Borland Developer's
>> Conference on writing InterBase apps using Perl.  I'm going to have
>> to use Interperl or make a Perl 5 adaptation of Interperl, because
>> I have only a week left before I have to submit my presentation
>> notes for publication.
>> 
>> But I'd still like to develop an InterBase DBD module.
>> Are there any areas you can point me to for some help?

Maybe you should go with Interperl5 for now, then look at DBD::Sybase, which
is written entirely in perl, using the Sybase::CTlib module.

>> 
>> I also have concerns about the future of DBI and DBD:
>> 
>> - Lack of documentation both for the application programmer
>>   and the DBD developer.  After three years of development,
>>   I find it very troubling that no real documentation or
>>   even commented code is available.  I am from the school
>>   of thought that documentation and commented code are just as
>>   important to a product as the code itself is.

This area is lacking, but the main developers, i.e. Tim, are doing most of
this work in their spare time.  However, if you report a bug, or have any
type of question, the response time is outstanding.

>> 
>> - Periodic changes to the DBI spec, which have gone undocumented.
>>   I don't want to get into a dog-chasing-tail situation of having
>>   to hack my DBD every time the DBI spec changes.
>> 
>> - News that the DBI spec is going to be trashed in favor of an
>>   ODBC-like interface.
>
>Trashed is too strong a word. ODBC will (probably) be grafted on
>the side and then used as the 'standard' for the rest of the API
>(e.g., return codes, attribute names, assorted conventions etc).
>
>>   Why should I write a DBD that is going to be obsolete?
>
>I envisage DBD's being usable for some time after ODBC support is
>added.

Indeed.

>
>> - A DBI that isn't extensible to allow me to surface unique
>>   InterBase features.
>
>It is: $h->func(@args, 'your_private_method')

Yes, and for many applications, these unique features may not be needed.

>
>(sadly only listed in the DBI Changes file, till now).
>
>>   ODBC is simply a lowest-common-denominator
>>   approach to database programming, and it feels very constraining
>>   after programming with the native API of a database vendor.
>>   InterBase has a very sophisticated transaction model, to which
>>   most other vendors don't even come close.
>
>At the end of the day it might be best just to roll your own, like
>Sybase, from scratch using h2xs etc.

Agreed, and as mentioned above, have a look at DBD::Sybase.

>
>> I don't fault you for keeping the project in an Alpha state.
>> I understand the restrictions of doing this in your "spare" time.
>> And I really like the idea of a standardized Perl database API.
>> But for the reasons listed above, I'm not sure that I want to
>> use DBI for InterBase.
>
>Okay. I won't be upset if you didn't.

I will be :(

>
>> I thought of writing my own module, and then writing a DBD package
>> entirely in Perl that merely called into my module.  That way
>> if people want the full InterBase functionality, they can use
>> my API.  If they want DBI comformance, they can use my DBD binding.
>> This way I can write my module in the short term, and then get
>> some help and add DBD compatibility later.
>
>Sure. mSQL support took that route.

Yes, please consider any type of DBD/Interbase support.

>
>> --
>> Bill Karwin                                 bkarwin@interbase.borland.com
>> Borland International                        InterBase Technical Services
>> "Once you've seen one picture of the Mandelbrot set, you've seen them all."
>
>Good luck.
>
>Tim.

"Good luck" sounds like you're saying goodbye, Tim ;)
Just consider all the options again, Bill, many people would love to see a
DBD::Interbase driver (and some don't even know it yet ;)  

Regards,

-Doug

---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <21189-0@oink>;
          Sun, 2 Jun 1996 11:52:35 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833614273:01313:2; Sat, 01 Jun 96 08:31:13 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa00619; 1 Jun 96 8:30 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id AAA05203 for dbi-users-real; Sat, 1 Jun 1996 00:18:36 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from ki1.chemie.fu-berlin.de (ki1.Chemie.FU-Berlin.DE [160.45.24.21]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id AAA05199 
          for <dbi-users@fugue.com>; Sat, 1 Jun 1996 00:18:30 -0700
Received: by ki1.chemie.fu-berlin.de (Smail3.1.28.1) 
          from uriela.in-berlin.de (192.109.42.147) with smtp 
          id <m0uPkwn-0000XfC>; Sat, 1 Jun 96 09:18 MEST
Received: by uriela.in-berlin.de (/\oo/\ Smail3.1.29.1 #29.8) 
          id <m0uPkwj-000LsVC@uriela.in-berlin.de>; Sat, 1 Jun 96 09:18 MET DST
Received: by ki1.chemie.fu-berlin.de (Smail3.1.28.1) 
          from sunmbx.netmbx.de (192.76.152.9) with smtp id <m0uPkwf-0000c2C>;
          Sat, 1 Jun 96 09:17 MEST
Received: by sunmbx.netmbx.de (/\==/\ Smail3.1.28.1) from anna.in-berlin.de 
          with smtp id <m0uPkzP-000JtgC>; Sat, 1 Jun 96 09:20 MET DST
Received: by anna.in-berlin.de (940816.SGI.8.6.9/940406.SGI) id JAA00822;
          Sat, 1 Jun 1996 09:14:54 +0200
Date: Sat, 1 Jun 1996 09:14:54 +0200
Message-Id: <199606010714.JAA00822@anna.in-berlin.de>
From: Andreas Koenig <k@anna.in-berlin.de>
To: pixel@tiger.coe.missouri.edu, Mike Moran <mhm@austin.ibm.com>
CC: dbi-users@fugue.com
In-reply-to: <Pine.SGI.3.93.960531193248.3955D-100000@rhino.coe.missouri.edu> (message from James Cooper on Fri, 31 May 1996 19:34:12 -0500 (CDT))
Subject: Re: DBD::DB2 -- released?
Reply-to: andreas.koenig@mind.de

>>>>> On Fri, 31 May 1996 19:34:12 -0500 (CDT), James Cooper <pixel@tiger.coe.missouri.edu> said:

 james> Hello,

 james> I know that a DB2 driver for DBI was in the works, and I thought I recall
 james> it anounced on the list.

 james> However, I've checked a few different CPAN mirrors, and alas...no
 james> DBD::DB2.

 james> Here's where I've looked:

 james> 	ftp.mcqueen.com

mcqueen is not a CPAN site

 james> 	ftp.digital.com
 james> 	ftp.uoknor.edu

 james> Am I overlooking it?

Where do I look for a module on CPAN?
Where do I look for a module on CPAN?
Where do I look for a module on CPAN?

        -> in the directory modules

Where do I look for a module on CPAN in the directory modules?
Where do I look for a module on CPAN in the directory modules?
Where do I look for a module on CPAN in the directory modules?

~ftp/pub/modules% ls -l
total 203
-rw-r--r--  1 nobody     97075 May 24 20:47 00modlist.long.html
-rw-r--r--  1 root       32368 Jun  1 01:21 01modules.index.html
-rw-r--r--  1 root       64762 Jun  1 05:19 02packages.details.txt
-rw-r--r--  1 root        9050 Jun  1 05:19 02packages.details.txt.gz
lrwxrwxrwx  1 root          10 Oct  7  1995 by-authors -> ../authors/@
drwxr-xr-x 24 root        1024 Apr  2 17:21 by-category/
drwxr-xr-x109 root        2048 May 23 01:20 by-module/


        A) -> in the text index

~ftp/pub/modules% grep DB2 02packages.details.txt
DB2::Constants                            +0  MHM/DBD-DB2-0.55.tar.gz
DBD::DB2                               +0.55  MHM/DBD-DB2-0.55.tar.gz


        B) -> in the html index

~ftp/pub/modules% grep DB2 01modules.index.html  
DBD         <A HREF="../authors/Mike_Moran">MHM</A>       <A HREF="../authors/id/MHM/DBD-DB2-0.55.tar.gz">DBD-DB2-0.55.tar.gz</A>              33k  17 May 1996


        C) -> in the by-module directory

~ftp/pub/modules% cd by-module/DBD
~ftp/pub/modules/by-module/DBD% ls
ADESC/                    DBD-Oracle-0.31.tar.gz@   DBI-0.68.readme@
BENLI/                    DBD-Oracle-0.32.readme@   DBI-0.68.tar.gz@
DBD-DB2-0.55.readme@      DBD-Oracle-0.32.tar.gz@   DBI-0.69.readme@
DBD-DB2-0.55.tar.gz@      DBD-QBase-0.03.readme@    DBI-0.69.tar.gz@
DBD-Oracle-0.29.readme@   DBD-QBase-0.03.tgz@       MEWP/
DBD-Oracle-0.29.tar.gz@   DBD-Sybase-0.01.readme@   MHM/
DBD-Oracle-0.30.readme@   DBD-Sybase-0.01.tar.gz@   TIMB/
DBD-Oracle-0.30.tar.gz@   DBD-mSQL-0.60pl9.readme@
DBD-Oracle-0.31.readme@   DBD-mSQL-0.60pl9.tar.gz@


        D) -> in the html module list

~ftp/pub/modules% grep DB2 00modlist.long.html 
::DB2          adcO  DB2 Driver for DBI                           <A HREF="../authors/00whois.html#MHM">MHM</A>


Sure you will get some navigating tools RSN, but first of all it
should be comprehensible for mere humans.

andreas


PS. Mike, could you please rename DB2::Constants to
DBD::DB2::Constants? I know, it sounds picky, but it is irritating
when people step over the namespace borders for me. I expect others
will be irritated too. Sooner or later, maybe too late.


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21198-3@oink>;
          Sun, 2 Jun 1996 11:53:27 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833589746:29321:3; Sat, 01 Jun 96 01:42:26 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa29097; 1 Jun 96 1:41 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id RAA03890 for dbi-users-real; Fri, 31 May 1996 17:34:16 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from rhino.coe.missouri.edu (rhino.coe.missouri.edu [128.206.59.236]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id RAA03886 
          for <dbi-users@fugue.com>; Fri, 31 May 1996 17:34:14 -0700
Received: from localhost (pixel@localhost) 
          by rhino.coe.missouri.edu (8.7.3/8.7.3) with SMTP id TAA04690 
          for <dbi-users@fugue.com>; Fri, 31 May 1996 19:34:12 -0500 (CDT)
X-Authentication-Warning: rhino.coe.missouri.edu: pixel owned process doing -bs
Date: Fri, 31 May 1996 19:34:12 -0500 (CDT)
From: James Cooper <pixel@tiger.coe.missouri.edu>
To: dbi-users@fugue.com
Subject: DBD::DB2 -- released?
Message-ID: <Pine.SGI.3.93.960531193248.3955D-100000@rhino.coe.missouri.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


Hello,

I know that a DB2 driver for DBI was in the works, and I thought I recall
it anounced on the list.

However, I've checked a few different CPAN mirrors, and alas...no
DBD::DB2.

Here's where I've looked:

	ftp.mcqueen.com
	ftp.digital.com
	ftp.uoknor.edu

Am I overlooking it?

Thanks

-- James

.........................................................................
                        James Paul Cooper * Pixel
                         MU College of Education
       pixel@coe.missouri.edu - http://tiger.coe.missouri.edu/~pixel/
.........................................................................

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28153-7@oink>;
          Mon, 3 Jun 1996 07:06:29 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833725419:25715:5; Sun, 02 Jun 96 15:23:39 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25580; 2 Jun 96 15:23 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id GAA08070 for dbi-dev-real; Sun, 2 Jun 1996 06:44:34 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from fruitbat.mcqueen.com ([194.72.106.246]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id GAA08058 
          for <dbi-dev@fugue.com>; Sun, 2 Jun 1996 06:44:15 -0700
Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) 
          id OAA24903; Sun, 2 Jun 1996 14:33:40 +0100
From: Alligator Descartes <descarte@hermetica.com>
Message-Id: <199606021333.OAA24903@fruitbat.mcqueen.com>
Subject: Re: Writing a DBD
To: dougm@osf.org (Doug MacEachern)
Date: Sun, 2 Jun 1996 14:33:40 +0100 (BST)
Cc: Tim.Bunce@ig.co.uk, bkarwin@interbase.borland.com, dbi-dev@fugue.com, 
    descarte@fruitbat.mcqueen.com (Alligator Descartes)
In-Reply-To: <199605312055.QAA27044@mailbox.osf.org> from "Doug MacEachern" at May 31, 96 04:55:35 pm
X-Pants: ** The return address of this email should be: descarte@hermetica.com
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 2844


There is a certain amount of documentation, albeit incomplete and a bit out
of date on:

	http://www.hermetica.com/technologia/DBI

on how to write drivers and stuff.

Being the first person other than Tim to write one, and then write another
( I just didn't learn, did I? ), I'd suggest looking at the above
"How to write a driver" page. It's sketchy, but it does highlight the
areas you want to look at.

Basically, ( and I'll be corrected over this! ), you want to:

*** WARNING!! Written off the top of my head! Beware inconsistencies and general
    lies! ***

1) Copy Oracle.xs to Interbase.xs
2) Change all ocurrences of 'Oracle' to 'Interbase'
3) Copy Makefile.PL and frig it to fit Interbase's libraries and includes
   system. I'd suggest taking a look at DBD::mSQL and DBD::Informix to see
   different methods of using Makefile.PL, since Oracle is a bit more 
   convoluted.
4) Copy Oracle.pm to INterbase.pm
5) Start hacking dbdimp.c.

	a) The first function to have a go at is:

		dbd_db_login

	   This one handles the low-level connection code. It's called from
	   Interbase.xs, which in turn is called by Interbase.pm. This is
	   how a good few of the methods are invoked.

        b) dbd_db_disconnect

	   This one handles disconnection from the database. Always a good
           idea to implement!

        c) do_error

	   This handles returning error numbers and messages from the module
           back into $DBI::errnum and $DBI::errstr. Quite an easy one to do.
           Oracle, Informix and mSQL all use different techniques, so you can
           see the different ways it can be done.

6) Once you've hacked dbd_db_login and dbd_db_disconnect, try make'ing the
   module. You'll have to comment out anything that looks Oracle related, but
   make sure you just comment the lines and not the actual functions.

   If you're lucky and there's a following wind, it'll build.

7) Type 'make install'
8) Run a test script along the lines of:

use DBI;
$drh = DBI->install_driver( 'Interbase' ) || die "Cannot load driver: $!\n";
$dbh = $drh->connect( .... );
if ( !defined $dbh ) {
    print "Failed to connect: $DBI::errstr\n";
$dbh->disconnect;

( Apologies Tim for using the hated DBI->install_driver, but we want to make
  sure the sodding thing'll load! 8-) )

If that script runs OK, you may be in business. Start editing the other methods
such as dbd_st_prepare/dbd_st_describe and so on to enabling SELECTs. Take a
look at mSQL and Informix drivers for this as well, since they use a slightly
more standard way of doing it, since Oracle's API is engineered to the point of 
insanity.

Hope this helps someone!

-- 
Alligator Descartes	|       Nexus - Multi-User Virtual Reality 
Anathematician		|         http://www.hermetica.com/nexus
descarte@hermetica.com	| Muse of the Day: "Juliette" - Marquis de Sade
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <28155-3@oink>;
          Mon, 3 Jun 1996 07:06:33 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833743470:22972:1; Sun, 02 Jun 96 20:24:30 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa22738; 2 Jun 96 20:23 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id LAA08774 for dbi-dev-real; Sun, 2 Jun 1996 11:53:55 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from postman.osf.org (postman.osf.org [130.105.1.152]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id LAA08770 
          for <dbi-dev@fugue.com>; Sun, 2 Jun 1996 11:53:54 -0700
Received: from defiant.osf.org (defiant.osf.org [130.105.3.33]) 
          by postman.osf.org (8.7.5/8.7.3) with SMTP id OAA09941;
          Sun, 2 Jun 1996 14:49:36 -0400 (EDT)
Received: by defiant.osf.org (1.38.193.4/4.7) id AA11708;
          Sun, 2 Jun 1996 14:49:35 -0400
Date: Sun, 2 Jun 1996 14:47:00 -0400 (EDT)
From: Doug MacEachern <dougm@osf.org>
Subject: Re: Writing a DBD
To: Alligator Descartes <descarte@hermetica.com>
Cc: Tim.Bunce@ig.co.uk, bkarwin@interbase.borland.com, dbi-dev@fugue.com, 
    Alligator Descartes <descarte@fruitbat.mcqueen.com>
In-Reply-To: <199606021333.OAA24903@fruitbat.mcqueen.com>
Message-Id: <Pine.3.07.9606021459.A11679-b100000@defiant.osf.org>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Sun, 2 Jun 1996, Alligator Descartes wrote:

> 
> There is a certain amount of documentation, albeit incomplete and a bit out
> of date on:
> 
> 	http://www.hermetica.com/technologia/DBI
> 
> on how to write drivers and stuff.
[snip great info]
> use DBI;
> $drh = DBI->install_driver( 'Interbase' ) || die "Cannot load driver: $!\n";
> $dbh = $drh->connect( .... );
> if ( !defined $dbh ) {
>     print "Failed to connect: $DBI::errstr\n";
> $dbh->disconnect;
> 
> ( Apologies Tim for using the hated DBI->install_driver, but we want to make
>   sure the sodding thing'll load! 8-) )

I don't think using install_driver is so bad.  My main concern is that the
arguments to DBI->connect are consistent no matter what driver you are
using.  Currently they are not :(

> 
> If that script runs OK, you may be in business. Start editing the other methods
> such as dbd_st_prepare/dbd_st_describe and so on to enabling SELECTs. Take a
> look at mSQL and Informix drivers for this as well, since they use a slightly
> more standard way of doing it, since Oracle's API is engineered to the point of 
> insanity.
> 
> Hope this helps someone!

You have put together some *very* useful information.

Thank you,

-Doug

> 
> -- 
> Alligator Descartes	|       Nexus - Multi-User Virtual Reality 
> Anathematician		|         http://www.hermetica.com/nexus
> descarte@hermetica.com	| Muse of the Day: "Juliette" - Marquis de Sade



---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <28155-11@oink>;
          Mon, 3 Jun 1996 07:09:28 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833759263:21811:5; Mon, 03 Jun 96 00:47:43 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa21722; 3 Jun 96 0:47 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id QAA09157 for dbi-dev-real; Sun, 2 Jun 1996 16:15:43 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from caymen.interbase.borland.com (caymen.interbase.borland.com [143.186.76.90]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id QAA09153 
          for <dbi-dev@fugue.com>; Sun, 2 Jun 1996 16:15:42 -0700
Received: from ivy.interbase.borland.com by caymen.interbase.borland.com 
          with smtp (Smail3.1.28.1 #1) id m0uQMJX-00000BC;
          Sun, 2 Jun 96 16:12 PDT
Received: by ivy.interbase.borland.com (4.1/SMI-4.1) id AA16399;
          Sun, 2 Jun 96 16:14:03 PDT
Date: Sun, 2 Jun 96 16:14:03 PDT
From: bkarwin@interbase.borland.com (Bill Karwin)
Message-Id: <9606022314.AA16399@ivy.interbase.borland.com>
X-Mailer: Mail User's Shell (6.4 2/14/89)
To: dbi-dev@fugue.com
Subject: Re: Writing a DBD

Thanks for the generous reply, Alligator!  I'll save it for later.

I looked at the files on hermetica last week, and found some
guidelines similar to the ones you outline.  The summary, then is
basically "use Oracle.* as templates, and adjust for your chosen
RDBMS libraries".

However, I am not a guru with perlguts, and the Oracle DBD is (as
far as I can tell) sprinkled with oraperl compatibility methods,
which confuses the picture.

Perhaps I'm seeing a more general problem with XS documentation.
The xs, xstut and perlguts portions of the Perl doc give pretty
elementary examples, and then there are examples out there like
POSIX.xs and Oracle.xs which are very sophisticated.  As far as I
have seen, there are no examples, docs or books that guide people
like me from the early stuff to the sophisticated stuff.

I'm getting there, though.  This weekend I've locked myself in my
room with all the docs and examples I could get my hands on, and
I'm about 1/3 done writing an InterBase XSUB kit and Perl package.

After I've learned the perl guts in this hands-on way, I'll come
back to Oracle.pm and see if I can make an InterBase DBD.

--
Bill Karwin                                 bkarwin@interbase.borland.com
Borland International                        InterBase Technical Services
"Once you've seen one picture of the Mandelbrot set, you've seen them all."

> From: Alligator Descartes <descarte@hermetica.com>
> 
> Basically, ( and I'll be corrected over this! ), you want to:
[the details]
> Hope this helps someone!
> 
> -- 
> Alligator Descartes	|       Nexus - Multi-User Virtual Reality 
> Anathematician		|         http://www.hermetica.com/nexus
> descarte@hermetica.com	| Muse of the Day: "Juliette" - Marquis de Sade
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04506-9@oink>;
          Tue, 4 Jun 1996 07:07:51 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833830279:18425:2; Mon, 03 Jun 96 20:31:19 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa18301; 3 Jun 96 20:30 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa20091; 3 Jun 96 20:28 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id MAA10428 for dbi-users-real; Mon, 3 Jun 1996 12:03:15 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from sheriff.wellsfargo.com ([204.30.29.4]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id MAA10424 
          for <dbi-users@fugue.com>; Mon, 3 Jun 1996 12:03:06 -0700
Received: from unixm1.wellsfargo.com by sheriff.wellsfargo.com;
          (5.65v3.2/1.1.8.2/17Aug95-1000AM) id AA05697;
          Mon, 3 Jun 1996 12:04:35 -0700
Received: from msm1.WellsFargo.COM (msm1.wellsfargo.com [151.151.198.110]) 
          by unixm1.wellsfargo.com (8.6.9/tl-950720-1) with SMTP id MAA14358;
          Mon, 3 Jun 1996 12:02:45 -0700
Received: by msm1.WellsFargo.COM with Microsoft Mail 
          id <31B336F0@msm1.WellsFargo.COM>; Mon, 03 Jun 96 12:03:12 PDT
From: "Kaliaperumal, Murali" <Murali.Kaliaperumal@wellsfargo.com>
To: dbi <dbi-users@fugue.com>
Cc: "Owens, Robert" <owensb@m010101.msm1.wellsfargo.com>, 
    dbi-cc <tim.bunce@ig.co.uk>
Subject: error in installing dbd
Date: Mon, 03 Jun 96 12:06:00 PDT
Message-Id: <31B336F0@msm1.WellsFargo.COM>
Encoding: 16 TEXT, 7 TEXT, 64 UUENCODE
X-Mailer: Microsoft Mail V3.0
X-Ms-Attachment: TST.LST 361 06-03-1996 11:44
X-Ms-Attachment: WINMAIL.DAT 2569 06-03-1996 11:55


The following is error log when I tried to install the DBD.

First I installed perl5.002. That went thru' without any problem.
Next I installed DBI 0.69 . Even that went thru' successfully.
After this When I tried DBD 0.29  I got the following  error.

[[ TST.LST : 2889 in TST.LST ]]


Can you please suggest me what is the problem.

My E-mail id  murali@wellsfargo.com


Thanks.


#/opt/perl5/bin/perl Makefile.PL | tee dbd.lst
Can't load module DBI, dynamic loading not available in this perl.
  (You may need to build a new perl executable which either supports
  dynamic loading or has the DBI module statically linked into it.)
 at /opt/perl5/lib/site_perl/DBI.pm line 32
BEGIN failed--compilation aborted at Makefile.PL line 11.

The following binary file has been uuencoded to ensure successful
transmission.  Use UUDECODE to extract.

begin 600 WINMAIL.DAT
M>)\^(DD+`@*0!@`.`````0`#`0``(``@``````!%``(!D`8`"````%135"Y,
M4U0`'`("$X`#``X```#,!P8``P`+`"P`"````!L!`A&`!@"@"0```0`)```#
MN@0`````(00`````!0````D"``````4````!`O___P!E````00O&`(@`(``@
M```````@`"```````"@````@````(`````$``0``````````````````````
M````````````````____`/@```?P```'\```!_````?P```'\```!_````?P
M```'\```!_````?P```'\```!_````?P```'\```!_````?P```'\```!_``
M``?P```'\```!_````?P```'\```!_````?P```/\```'_```#_P``!_\```
M__```?_P``/_!0````D"`0````4````!`@$````%````"0(`````!0````$"
M____`"$$``!!"T8`9@`@`"```````"``(```````*````"`````@`````0`(
M`````````````````````````````````````````+\``+\```"_OP"_````
MOP"_`+^_``#`P,``P-S``/#(I```````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````````````````/#[_P"DH*``@("`````_P``_P```/__`/\`
M``#_`/\`__\``/___P```````/CX^/CX^/CX^/CX^/CX^/CX^/CX^/CX^```
M``````````````````````````````````````#X``````````#_________
M____________________`/@``````````/__________________________
M__\`^```````````_____________________________P#X``````````#_
M____________________________`/@``````````/__________________
M__________\`^```````````_____________________________P#X````
M``````#_____________________________`/@``````````/__________
M__________________\`^```````````____________________________
M_P#X``````````#_____________________________`/@``````````/__
M__________________________\`^```````````____________________
M_________P#X``````````#_____________________________`/@`````
M`````/____________________________\`^```````````____________
M_________________P#X``````````#_____________________________
M`/@``````````/____________________________\`^```````````____
M_________________________P#X``````````#_____________________
M________`/@``````````/____________________________\`^```````
M````_____________________________P#X``````````#_____________
M________________`/@``````````/____________________________\`
M^```````````_____________________P````````````````````#_____
M________________`/__!_@``````````````/____________________\`
M_P?X````````````````_____________________P`'^```````````````
M``#_____________________`/@``````````````````/______________
M______\`````````````````````````````````````````````````````
M````!0````D"`0````4````!`@$````#``````#X````````````````____
M_________________P`'^````````````````-GP`A"``0`(````5%-4+DQ3
$5``<`O__
`
end
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <04505-10@oink>;
          Tue, 4 Jun 1996 07:07:52 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833851437:21159:4; Tue, 04 Jun 96 02:23:57 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa19955; 4 Jun 96 2:23 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id OAA10643 for dbi-users-real; Mon, 3 Jun 1996 14:15:41 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from labs-n.bbn.com (LABS-N.BBN.COM [128.89.0.100]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id OAA10639 
          for <dbi-users@fugue.com>; Mon, 3 Jun 1996 14:15:39 -0700
From: krajan@BBN.COM
Message-Id: <199606032115.OAA10639@toccata.fugue.com>
To: dbi-users@fugue.com
cc: delatizky@BBN.COM, krajan@BBN.COM, Tim.Bunce@ig.co.uk
Subject: Problems installing DBD module
Date: Mon, 03 Jun 96 17:15:18 -0400

Hi:

Two of the Five tests failed while testing the DBD module. I have
appended all the log file.

Any help would be greatly appreciated.

Thanks.

Kobita Rajan
email:	krajan@bbn.com
phone: 617-873-4383


1. Log of all steps of the build

1.1 perl Makefile.perl

===============================================================================
Configuring DBD::Oracle ...

        Remember to actually read the README file!

Using Oracle in /u5/app/oracle/product/7.3.2
Warning: OCI (Pro*C) does not appear to be installed.
Oracle sysliblist: -lsocket -lnsl -lm -ldl
Unable to locate proc.mk (use -m /path/to/proc.mk to specify)
===============================================================================

1.2 perl Makefile.PL -m $ORACLE_HOME/precomp/demo/proc/proc.mk

===============================================================================
Configuring DBD::Oracle ...

        Remember to actually read the README file!

Using Oracle in /u5/app/oracle/product/7.3.2
Warning: OCI (Pro*C) does not appear to be installed.
Oracle sysliblist: -lsocket -lnsl -lm -ldl
Use of uninitialized value at Makefile.PL line 260.
ERROR parsing /u5/app/oracle/product/7.3.2/precomp/demo/proc/proc.mk (version ''
):
        Unable to determine what to link with.
Use of uninitialized value at Makefile.PL line 68.
Using /u5/app/oracle/product/7.3.2/precomp/demo/proc/proc.mk version
System: perl5.002 sunos peacock.bbn.com 5.5 generic sun4d sparc sunw,sparcserver
-1000  sun4-solaris dl_dlopen.xs
Compiler: gcc -O -I/usr/local/include
Oracle proc.mk would have used these values but we override them:

Checking if your kit is complete...
Looks good

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBD::Oracle
===============================================================================

1.3 make

===============================================================================
umask 0 && cp Oraperl.pm blib/lib/Oraperl.pm
umask 0 && cp oraperl.ph blib/lib/oraperl.ph
umask 0 && cp Oracle.pm blib/lib/DBD/Oracle.pm
perl -I/usr/local/lib/perl5 -I/usr/local/lib/perl5 /usr/local/lib/perl5/ExtUtils
/xsubpp  -typemap /usr/local/lib/perl5/ExtUtils/typemap Oracle.xs >Oracle.tc &&
mv Oracle.tc Oracle.c
cc -c -I. -I/u5/app/oracle/product/7.3.2/precomp/public -I/u5/app/oracle/product
/7.3.2/rdbms/demo -I/usr/local/lib/perl5/site_perl/sun4-solaris/DBI -I/usr/local
/lib/perl5/DBI -I/usr/local/include -O -DVERSION=\"0.29\" -DXS_VERSION=\"0.29\"
-fpic -I/usr/local/lib/perl5/CORE -Wall -pedantic -Wno-comment -Wtraditional Ora
cle.c
/usr/ucb/cc:  language optional software package not installed
make: *** [Oracle.o] Error 1
===============================================================================

1.4 make -e

===============================================================================
/usr/local/bin/gcc -c -I. -I/u5/app/oracle/product/7.3.2/precomp/public -I/u5/ap
p/oracle/product/7.3.2/rdbms/demo -I/usr/local/lib/perl5/site_perl/sun4-solaris/
DBI -I/usr/local/lib/perl5/DBI -I/usr/local/include -O -DVERSION=\"0.29\" -DXS_V
ERSION=\"0.29\" -fpic -I/usr/local/lib/perl5/CORE -Wall -pedantic -Wno-comment -
Wtraditional Oracle.c
/usr/local/bin/gcc -c -I. -I/u5/app/oracle/product/7.3.2/precomp/public -I/u5/ap
p/oracle/product/7.3.2/rdbms/demo -I/usr/local/lib/perl5/site_perl/sun4-solaris/
DBI -I/usr/local/lib/perl5/DBI -I/usr/local/include -O -DVERSION=\"0.29\" -DXS_V
ERSION=\"0.29\" -fpic -I/usr/local/lib/perl5/CORE -Wall -pedantic -Wno-comment -
Wtraditional dbdimp.c
dbdimp.c: In function `dbd_db_FETCH':
dbdimp.c:263: warning: value computed is not used
dbdimp.c: In function `dbd_st_FETCH':
dbdimp.c:906: warning: value computed is not used
dbdimp.c: At top level:
dbdimp.c:126: warning: `dump_error_status' defined but not used
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
LD_RUN_PATH="/lib" ld -o blib/arch/auto/DBD/Oracle/Oracle.so -G -L/usr/local/lib
 Oracle.o dbdimp.o -L/u5/app/oracle/product/7.3.2/lib /u5/app/oracle/product/7.3
.2/lib/crti.o /u5/app/oracle/product/7.3.2/lib/crt1.o /u5/app/oracle/product/7.3
.2/lib/__fstd.o   -lsocket -lnsl -lm -ldl
chmod 755 blib/arch/auto/DBD/Oracle/Oracle.so
cp Oracle.bs ./blib/arch/auto/DBD/Oracle/Oracle.bs
chmod 644 blib/arch/auto/DBD/Oracle/Oracle.bs
Manifying ./blib/man3/DBD::Oraperl.3
===============================================================================

1.5 make test

===============================================================================
PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib -I/usr/local/lib/perl
5 -I/usr/local/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=
0; runtests @ARGV;' t/*.t
t/base..............install_driver(Oracle) failed: Can't load './blib/arch/auto/
DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1: /usr/bin/perl: fatal: rel
ocation error: symbol not found: oerhms: referenced in ./blib/arch/auto/DBD/Orac
le/Oracle.so at /usr/local/lib/perl5/DynaLoader.pm line 140.

 at blib/lib/DBD/Oracle.pm line 20
        DBI::install_driver called at t/base.t line 16
FAILED tests 4-5
        Failed 2/5 tests, 60.00% okay
        Test returned status 2 (wstat 512)
t/main..............ok
Failed 1 test script, 50.00% okay. 2/6 subtests failed, 66.67% okay.
make: *** [test_dynamic] Error 29
===============================================================================

1.6 make test TEST_VERBOSE=1

===============================================================================
PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib -I/usr/local/lib/perl
5 -I/usr/local/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=
1; runtests @ARGV;' t/*.t
t/base..............install_driver(Oracle) failed: Can't load './blib/arch/auto/
DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1: /usr/bin/perl: fatal: rel
ocation error: symbol not found: oerhms: referenced in ./blib/arch/auto/DBD/Orac
le/Oracle.so at /usr/local/lib/perl5/DynaLoader.pm line 140.

 at blib/lib/DBD/Oracle.pm line 20
        DBI::install_driver called at t/base.t line 16
1..5
ok 1
ok 2
ok 3
FAILED tests 4-5
        Failed 2/5 tests, 60.00% okay
        Test returned status 2 (wstat 512)
t/main..............t/main.t
DBI test application $Revision: 1.1 $
1..1
ok 1
ok
Failed 1 test script, 50.00% okay. 2/6 subtests failed, 66.67% okay.
make: *** [test_dynamic] Error 29
===============================================================================

2. Version of Oracle and Perl

2.1 Oracle Version : 7.3.2

2.2 Perl Version : 5.002

3. Output of perl -V

===============================================================================
Summary of my perl5 (5.0 patchlevel 2) configuration:
  Platform:
    osname=solaris, osver=2.5, archname=sun4-solaris
    uname='sunos peacock.bbn.com 5.5 generic sun4d sparc sunw,sparcserver-1000 '
    hint=recommended, useposix=true 
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.7.2
    cppflags='-I/usr/local/include'
    ccflags ='-I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-fpic', lddlflags='-G -L/usr/local/lib'

@INC: /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl .
===============================================================================



--------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08588-37@oink>;
          Tue, 4 Jun 1996 14:02:22 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833889626:16844:1; Tue, 04 Jun 96 13:00:26 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa16658; 4 Jun 96 13:00 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa21350; 4 Jun 96 12:59 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id EAA11933 for dbi-users-real; Tue, 4 Jun 1996 04:44:37 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gatekeeper.volpe.dot.gov (gatekeeper.volpe.dot.gov [204.166.190.3]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id EAA11929 
          for <dbi-users@fugue.com>; Tue, 4 Jun 1996 04:44:33 -0700
Received: from mailgate.volpe.dot.gov by gatekeeper.volpe.dot.gov;
          (5.65/1.1.8.2/25May95-1202PM) id AA28881;
          Tue, 4 Jun 1996 07:44:32 -0400
Received: from volpegate.volpe.dot.gov by mailgate.volpe.dot.gov;
          (5.65/1.1.8.2/12Dec95-1149AM) id AA02571;
          Tue, 4 Jun 1996 07:44:31 -0400
Received: by volpegate.dot.gov with Microsoft Mail 
          id <31B395F9@volpegate.dot.gov>; Tue, 04 Jun 96 07:48:41 EDT
From: "Walzer, Jonathan (Unisys)" <Walzer@volpe3.dot.gov>
To: 'DBI Mailing List' <dbi-users@fugue.com>
Subject: Positioned Updates/Deletes
Date: Tue, 04 Jun 96 07:48:00 EDT
Message-Id: <31B395F9@volpegate.dot.gov>
Encoding: 10 TEXT
X-Mailer: Microsoft Mail V3.0


I see a note in the DBI (pseudo)-spec that positioned updates/deletes are   
not currently supported by DBperl.  While I'm well aware of the in-flux   
status of the API, has this situation changed at all (ie - can I do   
positioned updates or deletes in newer releases of the DBI?  Or does the   
Oraperl emeulation layer support this?  I've noticed nothing in the docs   
to indicate that it does).

Read/write named cursors would be a VERY useful feature for some apps.   
I'm working on.  
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08588-43@oink>;
          Tue, 4 Jun 1996 14:03:01 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833891478:05842:2; Tue, 04 Jun 96 13:31:18 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa04589; 4 Jun 96 13:30 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id FAA11992 for dbi-users-real; Tue, 4 Jun 1996 05:24:12 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from colossus.cse.psu.edu (root@colossus.cse.psu.edu [130.203.1.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id FAA11988 
          for <dbi-users@fugue.com>; Tue, 4 Jun 1996 05:24:11 -0700
Received: from localhost by colossus.cse.psu.edu with SMTP id <78758>;
          Tue, 4 Jun 1996 08:23:36 -0400
X-Mailer: exmh version 1.6.5 12/11/95
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: "Kaliaperumal, Murali" <Murali.Kaliaperumal@wellsfargo.com>
cc: dbi-users@fugue.com
Subject: Re: error in installing dbd
In-reply-to: Your message of "Mon, 03 Jun 1996 15:06:00 EDT." <31B336F0@msm1.WellsFargo.COM>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 4 Jun 1996 08:23:04 -0400
From: John D Groenveld <groenvel@cse.psu.edu>
Message-Id: <96Jun4.082336edt.78758@colossus.cse.psu.edu>

We need to see the information as requested in the README's in order to help you. Read the README and repost your query.
Thanks,
John
BTW DBD-Oracle is at version 0.32

---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <13139-6@oink>;
          Wed, 5 Jun 1996 07:08:12 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833924154:13169:2; Tue, 04 Jun 96 22:35:54 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa12981; 4 Jun 96 22:35 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id OAA13179 for dbi-users-real; Tue, 4 Jun 1996 14:19:42 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from fruitbat.mcqueen.com ([194.72.106.246]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id OAA13175 
          for <dbi-users@fugue.com>; Tue, 4 Jun 1996 14:19:35 -0700
Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) 
          id WAA09792 for dbi-users@fugue.com; Tue, 4 Jun 1996 22:11:50 +0100
From: Alligator Descartes <descarte@hermetica.com>
Message-Id: <199606042111.WAA09792@fruitbat.mcqueen.com>
Subject: WWW page update
To: dbi-users@fugue.com
Date: Tue, 4 Jun 1996 22:11:49 +0100 (BST)
X-Pants: ** The return address of this email should be: descarte@hermetica.com
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 396


I've updated the WWW pages at:

	http://www.hermetica.com/technologia/DBI

to reflect the new Oracle drivers. DBD::Oracle-0.32 is available from mcqueen
if people are having troubles on CPAN.

A.

-- 
Alligator Descartes	|       Nexus - Multi-User Virtual Reality 
Anathematician		|         http://www.hermetica.com/nexus
descarte@hermetica.com	| Muse of the Day: "Deathchase" - Mervyn Estcourt
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13242-0@oink>;
          Wed, 5 Jun 1996 07:11:32 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833925067:02305:0; Tue, 04 Jun 96 22:51:07 BST
Received: from relay-1.mail.demon.net ([158.152.1.140]) 
          by punt-1.mail.demon.net id aa01982; 4 Jun 96 22:50 +0100
Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net 
          id aa06294; 4 Jun 96 22:48 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id OAA13269 for dbi-users-real; Tue, 4 Jun 1996 14:39:31 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from click3x.com (fwoutside.click3x.com [199.95.136.2]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id OAA13265 
          for <dbi-users@fugue.com>; Tue, 4 Jun 1996 14:39:29 -0700
Received: by clickfw.click3x.com id <20482>; Tue, 4 Jun 1996 17:37:08 -0400
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Tue, 4 Jun 1996 18:38:15 -0400
To: Tim Bunce <Tim.Bunce@ig.co.uk>
From: Eric Valinsky <evalinsk@mediacircus.com>
Subject: Re: Make failure for DBD::Oracle/Solaris 2.5
Cc: dbi-users@fugue.com
Message-Id: <96Jun4.173708edt.20482@clickfw.click3x.com>


Problem: Trying to make DBD::Oracle .29
         OS: Solaris 2.5
         Oracle: 7.2.3
         make would give me relocation failures.

>From: Tim Bunce <Tim.Bunce@ig.co.uk>
>
>I'm out of ideas at the moment. I suggest you persure trying to build the
>Pro*C demos with help from Oracle.
>
>Come back via dbi-users with a fresh set of info (I forget stuff fast)
>if you get anywhere or get a new problem.
>
>Good luck.
>
>Tim.


This was it!  As you implied, I was not able to build the demo Pro*C apps
either.

With the help of Oracle, we determined that there were two ld's.  The one
we wanted was in /usr/ccs/bin (not /usr/ucb), which we obtained by
switching the path around.  Next step was to relink proc by running make -f
proc.mk install from the $ORACLE_HOME/proc/lib directory.

I was then able to make and run the demo apps, and, most importantly, make,
test, and install DBD::Oracle.

Thanks loads.
Eric

--The present day Systems Architect refuses to die!


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13242-5@oink>;
          Wed, 5 Jun 1996 07:13:54 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833934725:12486:3; Wed, 05 Jun 96 01:32:05 BST
Received: from [204.254.239.2] ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa11521; 5 Jun 96 1:30 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id RAA13750 for dbi-users-real; Tue, 4 Jun 1996 17:21:34 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gatekeeper.wellsfargo.com (gatekeeper.wellsfargo.com [192.246.108.4]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id RAA13746 
          for <dbi-users@fugue.com>; Tue, 4 Jun 1996 17:21:32 -0700
Received: from unixm2.wellsfargo.com by gatekeeper.wellsfargo.com;
          (5.65v3.2/1.1.8.2/17Aug95-1000AM) id AA12810;
          Tue, 4 Jun 1996 17:21:30 -0700
Received: from unixm1.wellsfargo.com (unixm1.wellsfargo.com [151.151.24.71]) 
          by unixm2.wellsfargo.com (8.6.9/tl-950720-1) with ESMTP id RAA14317;
          Tue, 4 Jun 1996 17:21:21 -0700
Received: from msm1.WellsFargo.COM (msm1.wellsfargo.com [151.151.198.110]) 
          by unixm1.wellsfargo.com (8.6.9/tl-950720-1) with SMTP id RAA05885;
          Tue, 4 Jun 1996 17:20:18 -0700
Received: by msm1.WellsFargo.COM with Microsoft Mail 
          id <31B4D305@msm1.WellsFargo.COM>; Tue, 04 Jun 96 17:21:25 PDT
From: "Kaliaperumal, Murali" <Murali.Kaliaperumal@wellsfargo.com>
To: dbi <dbi-users@fugue.com>
Cc: dbi-cc <tim.bunce@ig.co.uk>
Subject: Error in installing DBD::Oracle for perl5 /HP-UX 10.01
Date: Tue, 04 Jun 96 17:22:00 PDT
Message-Id: <31B4D305@msm1.WellsFargo.COM>
Encoding: 79 TEXT
X-Mailer: Microsoft Mail V3.0


The following is error log when I tried to install the DBD.

First I installed perl5.002. That went thru' without any problem.
Next I installed DBI 0.69 . Even that went thru' successfully.
After this When I tried DBD 0.29  I got the following  error.

 ----------------------------------------------------------------------------  
 -------------------------------------------------
1. The log of  "perl Makefile.Pl "

     -----------------------------------------------------------------------  
 ---------------------
     Can't load module DBI, dynamic loading not available in this perl.
       (You may need to build a new perl executable which either supports
     dynamic loading or has the DBI module statically linked into it.)
      at /opt/perl5/lib/site_perl/DBI.pm line 32
     BEGIN failed--compilation aborted at Makefile.PL line 11.
     -----------------------------------------------------------------------  
 ----------------------------

2. Log of  "make "

     -----------------------------------------------------------------------  
 --------------
     Make: No arguments or description file.  Stop.
     -----------------------------------------------------------------------  
 ---------------

3. Log of "make test"

     -----------------------------------------------------------------------  
 --------------
     Make: Don't knowhow to make test. Stop
     -----------------------------------------------------------------------  
 ----------------

4. Version   of    Oracle    7.2.3.0.0   /  HP-UX  10.01
                 Perl         5.002
                 DBI          0.69 
                 DBD        0.29

5. The output of perl -V

     -----------------------------------------------------------------------  
 ---------------------------

Summary of my perl5 (5.0 patchlevel 2) configuration:
  Platform:
    osname=hpux, osver=10, archname=PA-RISC1.1
    uname='hp-ux everest b.10.01 b 9000887 1477354251 16-user license '
    hint=recommended, useposix=true
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_HPUX_SOURCE'
    ccflags ='-D_HPUX_SOURCE'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib/pa1.1 /lib /usr/lib /usr/ccs/lib
    libs=-lnet -lnsl_s -lndbm -ldld -lm -lc -lndir -lcrypt
    libc=/lib/libc.sl, so=sl
  Dynamic Linking:
    dlsrc=dl_none.xs, dlext=none, d_dlsymun=, ccdlflags=''
    cccdlflags='', lddlflags=''

@INC: /opt/perl5/lib/PA-RISC1.1/5.002 /opt/perl5/lib 
/opt/perl5/lib/site_perl/PA-RISC1.1 /opt/perl5/lib/site_perl .
 ----------------------------------------------------------------------------  
 ----------------------------------------------------------------------------  
 --------

6.  I didn't get any core dump.



Thanks
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <16533-0@oink>;
          Wed, 5 Jun 1996 13:58:00 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833973989:23007:2; Wed, 05 Jun 96 12:26:29 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa22367; 5 Jun 96 12:25 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id DAA14936 for dbi-dev-real; Wed, 5 Jun 1996 03:50:13 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id DAA14932 
          for <dbi-dev@fugue.com>; Wed, 5 Jun 1996 03:50:09 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id aa19159; 5 Jun 96 11:50 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ac05533; 5 Jun 96 11:48 +0100
Received: from toad by oink with SMTP (PP) id <15783-0@oink>;
          Wed, 5 Jun 1996 10:59:03 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA14708;
          Wed, 5 Jun 1996 10:58:55 +0000
Date: Wed, 5 Jun 1996 10:58:55 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9606050958.AA14708@toad.ig.co.uk>
To: bkarwin@interbase.borland.com, dougm@osf.org
Subject: Re: Writing a DBD
Cc: dbi-dev@fugue.com
X-Sun-Charset: US-ASCII
content-length: 873
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: dougm@osf.org (Doug MacEachern)
> 
> At 04:33 PM 5/31/96 +0000, Tim Bunce wrote:

> >Other DBD's have been written. Reasonable knowledge of perl internals
> >is a requirement (and I don't have time to teach that). Sorry.
> 
> Reasonable, yes, which is not as much as Bill or others might think.  Tim
> did most of the initial work with DBI and DBD::Oracle, now, do a 'diff' on
> two driver's dbdimp.c files.  Compare, say, mSQL and Informix, this makes it
> much more clear as to where the vendor specific API stuff fits in.  Do the
> same with the .xs and .pm files.  You should be able to get away without
> touching much of the existing code.

Note that to be of much use you should diff the dbdimp.c files for the
earliest versions. Most (probably all) DBD implementors have not kept
in sync with the DBD::Oracle 'reference' implementation. (Tut tut :-)

Tim.
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <16533-2@oink>;
          Wed, 5 Jun 1996 13:58:16 +0100
Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833977444:27559:2; Wed, 05 Jun 96 13:24:04 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net 
          id aa26636; 5 Jun 96 13:23 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id FAA15038 for dbi-users-real; Wed, 5 Jun 1996 05:16:12 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) 
          by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id FAA15034 
          for <dbi-users@fugue.com>; Wed, 5 Jun 1996 05:16:09 -0700
Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) 
          id NAA13480; Wed, 5 Jun 1996 13:08:42 +0100
From: Alligator Descartes <descarte@hermetica.com>
Message-Id: <199606051208.NAA13480@fruitbat.mcqueen.com>
Subject: Re: Writing a DBD
To: Tim.Bunce@ig.co.uk (Tim Bunce)
Date: Wed, 5 Jun 1996 13:08:41 +0100 (BST)
Cc: dbi-users@fugue.com
In-Reply-To: <9606050958.AA14708@toad.ig.co.uk> from "Tim Bunce" at Jun 5, 96 10:58:55 am
X-Pants: ** The return address of this email should be: descarte@hermetica.com
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 1291


> > Reasonable, yes, which is not as much as Bill or others might think.  Tim
> > did most of the initial work with DBI and DBD::Oracle, now, do a 'diff' on
> > two driver's dbdimp.c files.  Compare, say, mSQL and Informix, this makes it
> > much more clear as to where the vendor specific API stuff fits in.  Do the
> > same with the .xs and .pm files.  You should be able to get away without
> > touching much of the existing code.
> 
> Note that to be of much use you should diff the dbdimp.c files for the
> earliest versions. Most (probably all) DBD implementors have not kept
> in sync with the DBD::Oracle 'reference' implementation. (Tut tut :-)

True, I must admit. Unfortunately, I would say that the implementation of
DBD::Informix and DBD::mSQL are closer to each other than either are to
DBD::Oracle! Oracle's way of doing stuff is quite brain-damaged in places....

I still maintain diffing DBD::Oracle and looking at the other two main C-based
drivers is the best way ahead. It also means you don't need to know a thing
about OCI, which I have the benefit of knowing.

> Tim.

-- 
Alligator Descartes	|       Nexus - Multi-User Virtual Reality 
Anathematician		|         http://www.hermetica.com/nexus
descarte@hermetica.com	| Muse of the Day: "Deathchase" - Mervyn Estcourt
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16532-3@oink>;
          Wed, 5 Jun 1996 13:58:20 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 833974156:14442:2; Wed, 05 Jun 96 12:29:16 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa12800; 5 Jun 96 12:28 +0100
Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) 
          id DAA14927 for dbi-dev-real; Wed, 5 Jun 1996 03:49:55 -0700
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.6.12/8.6.11) with SMTP id DAA14923 
          for <dbi-dev@fugue.com>; Wed, 5 Jun 1996 03:49:52 -0700
Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net 
          id ac18838; 5 Jun 96 11:48 +0100
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id af05533; 5 Jun 96 11:48 +0100
Received: from toad by oink with SMTP (PP) id <15895-0@oink>;
          Wed, 5 Jun 1996 11:46:24 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA14830;
          Wed, 5 Jun 1996 11:46:17 +0000
Date: Wed, 5 Jun 1996 11:46:17 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9606051046.AA14830@toad.ig.co.uk>
To: descarte@hermetica.com, dougm@osf.org
Subject: Re: Writing a DBD
Cc: bkarwin@interbase.borland.com, dbi-dev@fugue.com, 
    descarte@fruitbat.mcqueen.com
X-Sun-Charset: US-ASCII
content-length: 1265
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Doug MacEachern <dougm@osf.org>
> 
> On Sun, 2 Jun 1996, Alligator Descartes wrote:
> 
> > There is a certain amount of documentation, albeit incomplete and a bit out
> > of date on:
> > 
> > 	http://www.hermetica.com/technologia/DBI
> > 
> > on how to write drivers and stuff.
> [snip great info]
> > use DBI;
> > $drh = DBI->install_driver( 'Interbase' ) || die "Cannot load driver: $!\n";
> > $dbh = $drh->connect( .... );
> > if ( !defined $dbh ) {
> >     print "Failed to connect: $DBI::errstr\n";
> > $dbh->disconnect;
> > 
> > ( Apologies Tim for using the hated DBI->install_driver, but we want to make
> >   sure the sodding thing'll load! 8-) )
> 
> I don't think using install_driver is so bad.  My main concern is that the
> arguments to DBI->connect are consistent no matter what driver you are
> using.  Currently they are not :(

DBD implementors must fix their connect calls to have the standard args!
($dbname, $user, $passwd, \%attr)

Using DBI->connect() is required in order to stand much chance of using
ODBC without any code changes.

As I've said before DBI->connect will _croak_ if install_driver fails
or return undef if connect fails. There's no reason not to use it
(once DBD implementors fix their broken connect calls).

Tim.
---+++---
