The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
awk doubt Pradee Shell Programming and Scripting 3 11-15-2007 07:35 AM
awk doubt.. esham Shell Programming and Scripting 11 10-10-2007 11:24 PM
doubt in sed matrixmadhan UNIX for Dummies Questions & Answers 3 08-03-2005 08:34 AM
KSH doubt !!! witt Shell Programming and Scripting 5 10-29-2001 05:41 PM
awk doubt vadivel UNIX for Dummies Questions & Answers 7 10-02-2001 04:41 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-15-2006
Playing with Ubuntu Now!
 

Join Date: Oct 2005
Location: Chennai
Posts: 364
doubt while compiling using cc

I was trying to compile a proc code. All steps when fine, except the last step which threw an error -
Quote:
cc -o test test.o -L $ORACLE_HOME/lib -l clntsh
/usr/ccs/bin/ld: /applic/oracle/product/9.2.0.3/lib/libclntsh.sl: Mismatched ABI. 64-bit PA shared library found in 32-bit link.
I was just trying to compile it manually. Any ideas what this error means. Does it mean I am using the wrong library?
Reply With Quote
Forum Sponsor
  #2  
Old 09-15-2006
Playing with Ubuntu Now!
 

Join Date: Oct 2005
Location: Chennai
Posts: 364
Got it working

The library was pointing to a 64 bit library. Changed the directory where to serach for the library. Searched google and found the solution. it should have been
Quote:
cc -o test test.o -L $ORACLE_HOME/lib32 -l clntsh
Here is the link - oracle

Should learn to first try and then post.
Regards
Reply With Quote
  #3  
Old 09-16-2006
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,610
just another way,


change your ORACLE_LIB path to /lib32 in LD_LIBRARY_PATH env variable

and just

Code:
cc filename.c -o filename -lclntsh
Reply With Quote
  #4  
Old 09-16-2006
Playing with Ubuntu Now!
 

Join Date: Oct 2005
Location: Chennai
Posts: 364
thanks

Thanks Madhan, Will keep this in mind in future.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0