Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to use gcc to compile a pro*c program

807578Sep 9 2004 — edited Sep 9 2004
my machine :
SunOS 5.8 Generic_108528-23 sun4u sparc SUNW,Ultra-4
oracle 9.2.0.4
gcc version 2.95.3 20010315 (release)

I have a pro*c program newsms.pc and can't compiled,error messages are

gcc -c newsms.c -D_REENTRANT -I./ -I/opt/oracle/product/9.2.0/precomp/public -I/opt/oracle/product/9.2.0/rdbms/public -I/opt/oracle/product/9.2.0/rdbms/demo -I/opt/oracle/product/9.2.0/plsql/public -I/opt/oracle/product/9.2.0/network/public -DSLMXMX_ENABLE -DSLTS_ENABLE -D_SVID_GETTOD
gcc -o newsms newsms.o -L./ -lsocket -lnsl -lm -lrt -lpthread -L./ -lsocket -lnsl -lm -lrt -lpthread -L/opt/oracle/product/9.2.0/lib/ -lclntsh -lclient9 /opt/oracle/product/9.2.0/lib/libsql9.a /opt/oracle/product/9.2.0/lib/scorept.o /opt/oracle/product/9.2.0/lib/sscoreed.o /opt/oracle/product/9.2.0/rdbms/lib/kpudfo.o `cat /opt/oracle/product/9.2.0/lib/ldflags` `cat /opt/oracle/product/9.2.0/lib/ldflags` -lclient9 `cat /opt/oracle/product/9.2.0/lib/ldflags` `cat /opt/oracle/product/9.2.0/lib/ldflags` -lclient9 /opt/oracle/product/9.2.0/lib/libpls9.a /opt/oracle/product/9.2.0/lib/libplp9.a `cat /opt/oracle/product/9.2.0/lib/sysliblist` -lm -lthread -m64
ld: fatal: file /opt/oracle/product/9.2.0/lib//libclntsh.so: wrong ELF class: ELFCLASS64
ld: fatal: file /opt/oracle/product/9.2.0/lib/scorept.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to newsms
collect2: ld returned 1 exit status
make: *** [newsms] Error 1

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 7 2004
Added on Sep 9 2004
2 comments
244 views