Compile 64bit .so file on Solaris 10

From: John Dunn <>
Date: Tue, 29 Apr 2008 08:31:56 +0100
Message-ID: <2F802216565E44489600A03F763219A83E9580@mia.SEFASBRISTOL>

I am porting an old Oracle PL/SQL application from 32bit Oracle 8i on Solaris8 to Oracle10 on Solaris 10.  

The PL/SQL calls an external procedure stored in a C library .so file. On Oracle10/Solaris 10 it gives the error  

wrong ELF class: ELFCLASS32.  

So I assume I need to create a 64 bit version.  

As far as I can tell the shared library was previously compiled using  

cc -G -dy mytest.c -o  

but this seems to still create a 32 bit version.

How do I compile to 64 bit?        

John Dunn

Product Consultant

Sefas Innovation Limited

Direct Dial + 44 (0) 117 373 6122 <blocked::file:///C:/Documents and Settings/ransty/Application Data/Microsoft/Signatures/>

Sefas Innovation Ltd, CityPoint, Temple Gate, Bristol BS1 6PL, UK. Tel: +44 (0) 117 373 6114 Fax: +44 (0) 117 373 6115

Sefas Innovation Limited. Registered No: 3769761 England. Registered Office: One New Street, Wells, Somerset, BA5 2LA, United Kingdom. VAT Registration No: GB 741 5377 32

Unless stated to be non-confidential, this email and any attachments are private and confidential and are for the addressee only. Sefas monitors e-mails to ensure its systems operate effectively and to minimize the risk of viruses. Whilst Sefas has taken reasonable steps to scan this email, it does not accept liability for any virus that may be contained in it.

Internet communications are not 100% secure and as such Sefas is not responsible for their abuse by 3rd parties, nor for any alteration or corruption in transmission.    

Received on Tue Apr 29 2008 - 02:31:56 CDT

Original text of this message