C++ templates and Oracle OCI on SPARC

From: Jason May <jmay_at_ctp.com>
Date: Wed, 23 Feb 1994 19:40:23 GMT
Message-ID: <CLozzC.6op_at_butch.lmsc.lockheed.com>


Has anyone seen this problem before?

We're using Sun's SPARCCompiler C++ 3.0.1 to build a C++ program that uses the Oracle OCI library. The release version of this compiler could not handle C++ templates in libraries (static or shared).

I got a patch for the compiler, patch# 100967-06. This appears to fix the template problem, but now the compiler is have trouble with the Oracle libraries.

At link time, I'm getting the following errors:

nm: /usr/local/oracle/lib/libsqlnet.a:(osnpop.o): no name list
nm: /usr/local/oracle/lib/libsqlnet.a:(osntei.o): no name list
nm: /usr/local/oracle/lib/libsqlnet.a:(osntxo.o): no name list
nm: /usr/local/oracle/lib/libsqlnet.a:(osnt3n.o): no name list
nm: /usr/local/oracle/lib/libsqlnet.a:(snlm.o): no name list
nm: /usr/local/oracle/lib/libsqlnet.a:(nttost.o): no name list
nm: /usr/local/oracle/lib/libsqlnet.a:(ntt3n.o): no name list
CC[ptlink] warning: ##### nm failed on /usr/local/oracle/lib/libsqlnet.a, ignoring ... #####

There's a similar bunch of errors for the libora.a and libnetwork.a libraries; after dumping out the error messages, the compile hangs.

These errors never appeared when compiling with the pre-patch version of the compiler.

I haven't been able to find any documentation for the 'no name list' error message. 'ptlink' is Sun's template processing module (it's a cfront compiler), and it appears that it's searching through the libraries for something and is having trouble with the Oracle libraries, but since this is also undocumented I have no idea what it's trying to do.

Any suggestions are greatly appreciated.

-Jason


   Jason W. May						jmay_at_ctp.com
   CTP, Inc.   304 Vassar St.   Cambridge MA 02139     (617)374-8223

=======================================================================
Received on Wed Feb 23 1994 - 20:40:23 CET

Original text of this message