GCC+Pro*C+OraV7=ld error cg92_used undefined

From: Stephane Hamel <shamel_at_tdsb-s.mais.hydro.qc.ca>
Date: Fri, 10 Dec 1993 19:24:27 GMT
Message-ID: <CHu38r.1vK_at_ireq.hydro.qc.ca>


OS: Solaris 2.2
RDBMS: Oracle V7.0.15
CC: gcc cygnus-2.3.3

When trying to compile any of the sample or for that mather, any small .pc program, we always get the same error.

Here's a complete log:

  • Log ---

gcc -I. -O -o oratest oratest.c /opt/oracle/product/7.0.15/lib/libsql.a /opt/oracle/product/7.0.15/lib/osntab.o -lsqlnet -lora /opt/oracle/product/7.0.15/lib/libpls.a -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore -lsocket -lnsl -lm -ldl -laio -lsocket -lnsl -lm -ldl -laio

ld: warning: file /usr/lib/libsocket.so: attempted multiple inclusion of file libsocket.so
ld: warning: file /usr/lib/libnsl.so: attempted multiple inclusion of file libnsl.so
ld: warning: file /usr/lib/libm.so: attempted multiple inclusion of file libm.so
ld: warning: file /usr/lib/libdl.so: attempted multiple inclusion of file libdl.so
ld: warning: file /usr/lib/libaio.so: attempted multiple inclusion of file libaio.so
Undefined                       first referenced
 symbol                             in file
__cg92_used                         /opt/oracle/product/7.0.15/lib/libsql.a(sqlexp.o)
ld: fatal: Symbol referencing errors. No output written to oratest *** Error code 1
make: Fatal error: Command failed for target `oratest'
  • End Log ---

Any hint? Any idea? Do we need a specific C compiler? (I seriously hope not!)

---
 Stephane Hamel, Sysadmin/DBA *.mais.hydro.qc.ca
 Hydro-Quebec TDSB, Montreal, Quebec
 E-mail: shamel_at_mais.hydro.qc.ca  Voice: (514) 858-7004
Received on Fri Dec 10 1993 - 20:24:27 CET

Original text of this message