ProC compilation problems with Oracle V2.1.4

From: Yu Kin Ho <eugene_at_unlv.edu>
Date: 17 Feb 1995 02:56:46 GMT
Message-ID: <3i139e$rjg_at_homesick.cs.unlv.edu>


Our Oracle server has been upgraded to Version 7.1.4 currently and we are running Solaris 2.3.
We have some programs in pro*C used to compile and run from the old version, now couldn't be compiled correctly.

Before I have my own makefile which now doesn' work. So I tried to use the proc.mk file in $(ORACLE_HOME)/proc/lib. I edited the proc.mk file just adding a library.

Here is the compilation commands generated by the proc.mk.

cc -I. -O -xcg92 -L/private/local/oracle7/lib -o UpdateClarkTable UpdateClarkTable.o -lsql
/private/local/oracle7/lib/osntab.o -lsqlnet -lora -lsqlnet -lora -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6
-lcore `cat /private/local/oracle7/rdbms/lib/sysliblist` /private/local/adm/acct/src/global/libBill.a

And here is the error message:

Undefined                       first referenced
 symbol                             in file
__cg92_libc                         (command line)
ld: fatal: Symbol referencing errors. No output written to UpdateClarkTable *** Error code 1
make: Fatal error: Command failed for target `build'

I suspected this error from the option -xcg92. Therefore, I took it off and recompiled. But still, I got another error message.

cc -I. -O -L/private/local/oracle7/lib -o UpdateClarkTable UpdateClarkTable.o -lsql /private/local/oracle7/lib/osntab.o -lsqlnet -lora -lsqlnet -lora -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore `cat
/private/local/oracle7/rdbms/lib/sysliblist` /private/local/adm/acct/src/global/libBill.a

Undefined                       first referenced
 symbol                             in file
__cg92_used                         /private/local/oracle7/lib/libsql.a(sqlexp.o)
ld: fatal: Symbol referencing errors. No output written to UpdateClarkTable

Could you please help me figure out the problems?

Thank you so much.

--Eugene Ho

//////////////////////////////////////////////////////////////////
// Eugene Ho //
// Research Assistant, NSCEE/UNLV //
// //
// National Supercomputing Center for Energy and Environment //
// University of Nevada, Las Vegas //
// 4505 S. Maryland Parkway //
// Box 454028 //
// Las Vegas, Nevada 89154-4028 //
// //
// Phone: (702) 895-4701 //
// Fax: (702) 895-4156 //
// Email: eugene_at_aurora.nscee.edu //
//////////////////////////////////////////////////////////////////
Received on Fri Feb 17 1995 - 03:56:46 CET

Original text of this message