This discussion is archived
1 Reply Latest reply: Jan 25, 2013 4:52 AM by Srini Chavali-Oracle RSS

compiling problem in oracle 11g environment

971139 Newbie
Currently Being Moderated
Hello mates,

We have recently migrated from oracle10g to oracle11g. we have lot of pro*c and forms programs.
my requirement is to compile all those pro*c and form programs in 11g.
for compiling pro*c programs we have compilation scripts. these compilation scripts are prepared
based on oracle10g. pro*c programs are compiling fine by using this compilation scripts.

after migrated to 11g, ihave used same 10g compilation scripts to compile pro*c programs.

1.while compiling the programs first time, i got these errors

/oracle/app/product/11.2.0.3_cli/lib32/libsql10.a: No such file or directory
/oracle/app/product/11.2.0.3_cli/rdbms/lib32/kpudfo.o: No such file or directory
/oracle/app/product/11.2.0.3_cli/lib32/libpls10.a: No such file or directory
/oracle/app/product/11.2.0.3_cli/lib32/libpls10.a: No such file or directory
/oracle/app/product/11.2.0.3_cli/lib32/libpls10.a: No such file or directory

so i have replace all libsql10.a,libpls10.a,libpls10.a,libpls10.a to libsql11.a,libpls11.a,libpls11.a,libpls11.a

2.then these errors got resolved but second time compilation it shown below error.

/oracle/app/product/11.2.0.3_cli/rdbms/lib/kpudfo.o: No such file or directory

so i have removed kpudfo.o file from compilation script.

3. i have compiled third time then it shown diffrent error as shown below

ld: fatal: library -lnapt: not found
ld: fatal: file /oracle/app/product/11.2.0.3_cli/lib/libclntsh.so: wrong ELF class: ELFCLASS64
ld: fatal: file /oracle/app/product/11.2.0.3_cli/rdbms/lib/cdf.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to ./ebsparam

i have changed script
"/usr/local/bin/gcc -m32 -g -DSOLARIS -DSOLARIS2 -I$HOME/include"
to
"/usr/local/bin/gcc -m64 -g -DSOLARIS -DSOLARIS2 -I$HOME/include"

4. then i have compiled again then it shown error as below

ld: fatal: file /usr18/SIR02551/mydomain/BD/obj/ebsparam.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to ./ebsparam
collect2: ld returned 1 exit status

.....

because of 32 bit problem i have changed script to 32 to 64. but now it is showing this error
what is the problem i am not able to understand.


please help on this

Thanks

Edited by: ramadurga.v on Jan 25, 2013 3:10 PM

Edited by: ramadurga.v on Jan 25, 2013 3:26 PM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points