Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ld:0711-736 ERROR:XCOFF64 object files are not allowed in 32-bit mode

Status
Not open for further replies.

HarpreetSachdeva

Programmer
Apr 11, 2003
25
GB
Hello,
I have a pro*C library build up and running against Oracle8 and now the data base has been migrated to Oracle 9.2 now when I am trying to complile my pro *C code to build the library I am receiving following error code.

ERROR:Input file adapdb.o:
XCOFF64 object files are not allowed in 32-bit mode.
make: The error code from last command is 8
stop
make: The error code from last command is 2

Please help me to sort out this problem.

Thanks
Harpreet
 
I'm presuming that your o/s is AIX, is that correct?

First, as you can imagine, you cannot link together 32-bit and 64-bit files. You specify the mode that the linker is using with the switches "-b32" or "-b64".

If you use neither, then the linker takes its cue from the value of your environment variable OBJECT_MODE (value "32" or "64"). 32-bit mode is the default if you do not explicity set a value for OBJECT_MODE. (If any values besides "32" or "64" appear on OBJECT_MODE, than the linker prints and error message and exit with a non-zero return code.)

So we can proceed, please confirm your operating system and the value (or lack thereor) of your OBJECT_MODE variable.



[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[ Providing low-cost remote Database Admin services]
Click here to join Utah Oracle Users Group on Tek-Tips if you use Oracle in Utah USA.
 
Hello Mufasa,
Thanks a lot for your reply Yes you are right I am using AIX and initialy the the OBJECT_MODE environment variable was not set but when I set OBJECT_MODE to 64 I was able to build the library but when I tried to execute the associated executable at that time I received the error code :
"Unable to load the associated library as was not able to find magic number"

Will I have to build the asscoiated application also because I am only building the library and not the associated executable.

Thanks
Harpreet.
 
Error Message said:
Unable to load the associated library as was not able to find magic number

I have no idea what a "magic number" is. At this point, I hope you have a Customer Service ID (CSI) with Oracle Support to ask them about "magic numbers"[smile]. The nice thing about Oracle Support is that they can/will continue to help you until you are satisfied that your problem is gone.

I am sorry that I could not get you past the "magic number" problem...but this entire issue is very obscure anyway. I'm just delighted that the stuff I gave you in my first post seemed to help.

Once you do resolve the problem, please post your resolution here so we can all learn and I can add your solution to my "Santa's KnowledgeBase".

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[ Providing low-cost remote Database Admin services]
Click here to join Utah Oracle Users Group on Tek-Tips if you use Oracle in Utah USA.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top