Dear Tim,

I have run into this problem myself and _not_ implemented the required changes (I also 
have access to a DEC Alpha in addition to my SGI, so I just do my DBI work on the 
DEC). A friend, who only uses SGIs described these necessary steps to me...

Under recent Irix OS releases, you can compile in one of three modes.  This is 
described if you type: "man abi". A small excerpt from it reads:

>      IRIX supports three ABIs:
>
>      o32  The old 32-bit ABI which was standard on IRIX 5 systems.
>
>      n64  The 64-bit ABI which was introduced on IRIX 6.0 systems.
>
>      n32  The new high performance 32-bit ABI which was introduced on IRIX
>           6.2.
>
>

Oracle ships their libraries in the -o32 format, probably to achieve maximum 
compatibility across the Irix family.  Most modern SGI programs are either -n32 or 
-n64 (a surprising number are -n32, including most of the SGI "Freeware" which 
includes the GNU stuff).  Perl is included in the Freeware and is usually compiled 
-n32 (type 'perl -V' to see the switches used in the build of Perl). As your loader 
told you, the different formats are not compatible.

I am told that the solution is to re-build Perl, using the -o32 switch, along with any 
additional modules you built from CPAN (which are compiled, ie which contain XS code). 
Then you can rebuild DBI and DBD:Oracle and link to the Oracle libraries.

I have built Perl 5.6.0 for Irix now, and had no trouble doing it, however, I built it 
with -n32 (again) to be compatible with other things I had on the machine, so I don't 
know how the -o32 switch will go.

I also heard a rumour, perhaps on this maillist, that the next release of the Oracle 
libraries is to be -n64.

Hope this helps,
Mark

> In attempting to compile DBD-Oracle-1.06 on IRIX 6.5.11 against Oracle 7.3.4
>
> [... deleted ...]

> ld32: FATAL   12 : Expecting n32 objects:
> /d5/app/oracle/product/7.3.4/lib/libclient.a(ofen.o) is o32.
> *** Error code 2 (bu21)
>
> My Oracle libraries seem to be of a different format. I've tried
> changing -n32 to -o32, but of course that just gets me in deeper over
> my head. If anyone has some kind words of guidance for me, I'd
> appreciate it.
>
> Thanks.
> --
> Tim Clinton

--
Mark Dalphin                          email: [EMAIL PROTECTED]
Mail Stop: 29-2-A                     phone: +1-805-447-4951 (work)
One Amgen Center Drive                       +1-805-375-0680 (home)
Thousand Oaks, CA 91320                 fax: +1-805-499-9955 (work)



Reply via email to