Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> oracle 9i database on a aix 4.3.3 server trying to use a 32 bit compiler- error ksms.imp

oracle 9i database on a aix 4.3.3 server trying to use a 32 bit compiler- error ksms.imp

From: <mkoomans_at_uniongas.com>
Date: 21 Apr 2004 10:09:43 -0700
Message-ID: <abbf1986.0404210909.c183e0a@posting.google.com>


We are trying to get a new setup to work. We have an Oracle 9.2.0.4 database on AIX 4.3.3. This database is using the 64 bit kernel extension. We have installed Server Express 2.1 for 4.3.3 (MF cobol compiler) which is a 32 bit app. We tried to edit the makefile used for AIX 4.3.3, MF cobol compiler OCDS, Oracle database 8.1.6. We learned about needing to relink rstora32, and the procob32… that has been done. We changed out markefile to point to all the 9i oracle 32 bit directories. We are note experienced with makefiles and not sure our makefile is ok.

We are now having problems with the 32 bit version of ksms.imp. At first the file was empty. To resolve that problem we: Generated the ksms.imp as follows..
@ORACLE_HOME/bin/genksms > $ORACLE_HOME/lib32/ksms.imp and relinked the "genksms" binary:
make –f $ORACLE_HOME/rdbms/lib32/ins_rdbms.mk $ORACLE_HOME/bin/genksms Do you know if we built this correctly?
We do not seem to be able to compile without using the variable ..please note the error with the variable for ksms.imp and without that variable….

I hve included the makefile below

Thanks

  1. Problem when makefile has commented out line

           #LIMPEXP=$(LIBHOME)/ksms.imp

This error is received for every line of code

ld: 0711-418 ERROR: Import or export file /u00/app/oracle/product/9.2.0/lib32/ks

ms.imp at line 4219:

        A symbol name may only be followed by an export attribute

        or an address. The line is being ignored.

 2. Error when makefile does NOT comment out line

 LIMPEXP=$(LIBHOME)/ksms.imp

This is a sample of errors noted :

ld: 0711-317 ERROR: Undefined symbol: .lxuStrLen

ld: 0711-317 ERROR: Undefined symbol: naesh1a

ld: 0711-317 ERROR: Undefined symbol: naesh1u

ld: 0711-317 ERROR: Undefined symbol: naemd5v

…. etc

ld: 0711-317 ERROR: Undefined symbol: ._mFg2star

ld: 0711-317 ERROR: Undefined symbol: _mFargt

ld: 0711-317 ERROR: Undefined symbol: _mFentry

ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

make: 1254-004 The error code from the last command is 8.

MAKEFILE contents

#
# Makefile - COBOL compiler
#

COBOL=cob32
#
# Some additional Pro*COBOL options

DBMS= dbms=v7
#

include $(ORACLE_HOME)/precomp/lib/env_precomp.mk
#
# Non Standard

PCCINC1 = $(BANNER_HOME)/cob
#######################################################################
# The following macros should not need to be modified for the
# local environment.
#######################################################################
#
# Suffixes pseudo-target

.SUFFIXES: .cob .pco .o .gnt
#
# Compiler flags

COBFLAGS= -xv -PC "IBMCOMP noecho notrunc nobound confirm errlist assign=external"
GNTFLAGS= -uv -PC "IBMCOMP noecho notrunc nobound confirm errlist assign=external"
#
# ORACLE library directory

LIBHOME=$(ORACLE_HOME)/lib32
LIBDIR=$(LIBDIR32)
#
# Link flags
#

LDFLAGS=-L$(LIBHOME)
#
# Pro*COBOL precompiler

PROCOB=$(ORACLE_HOME)/bin/procob32
#
# Pro*COBOL include library

PCCINC=$(ORACLE_HOME)/precomp/public
PCCINC2=$(ORACLE_HOME)/precomp/lib32
#
# Pro*COBOL precompiler flags

PCCFLAGS= include=$(PCCINC) include=$(PCCINC2) include=$(PCCINC1) \

        ireclen=132 oreclen=132 \
        host=Cobol litdelim=apost maxopencursors=50 ltype=none \
        hold_cursor=no release_cursor=no select_error=yes
maxliteral=160 \
        $(COMP5) $(DBMS) $(CHECKOPT) picx=varchar2 unsafe_null=yes 

#
# Pro*COBOL output file suffix

COBEXT=cob
GENOBJS = \
        $(BANNER_HOME)/cob/GUASETR.o \
        $(BANNER_HOME)/cob/GUAGETP.o

#
#######################################################################
# Library macro definitions - derived from ORACLE makefile
#######################################################################
#
LLIBSQL=-lsql9
LLIBNET=
NETLIBS= $(LLIBNET)

LLIBCLIENT=-lclient9
LLIBCOMMON=-lcommon9
LLIBGENERIC=-lgeneric9
LLIBORA=$(LLIBCLIENT) $(LLIBCOMMON) $(LLIBGENERIC) LLIBNLSRTL=-lnls9
LLIBCORE= -lcore9
CORELIBS=$(LLIBNLSRTL) $(LLIBCV6) $(LLIBCORE) $(LLIBNLSRTL) $(LLIBCORE) $(LLIBNLSRTL)
SPLIBS=
LOCALLIBS= -ldl
EXOSLIBS=
LIBBSD=
OTHERLIBS = `cat ${ORACLE_HOME}/lib32/sysliblist | sed 's/-bI://g'` SECLIBS=
M6LIBS=
CLIBS=$(LOCALLIBS) $(EXOSLIBS) $(LIBBSD) $(OTHERLIBS) $(SECLIBS) $(M6LIBS)
MATHLIB=-lm
LDLIBS=$(SPLIBS) $(CLIBS) $(MATHLIB)
TTLIBS=$(LLIBORA) $(NETLIBS) $(LLIBORA) $(LIBPLSHACK) \         $(LLIBTRACE) $(CORELIBS) $(LDLIBS) TOP = $(ORACLE_HOME)/precomp
COBSQLINTF = $(TOP)/lib32/cobsqlintf.o
#
# Oracle 9i compilation

LLIBPTHREADS=-lpthreads_compat -lpthreads LLIBNETS=`cat ${ORACLE_HOME}/lib32/ldflags` SCOREPT=$(LIBHOME)/scorept.o
SSCOREED=$(LIBHOME)/sscoreed.o
NAEET=$(LIBHOME)/naeet.o
NAECT=$(LIBHOME)/naect.o
NAEDHS=$(LIBHOME)/naedhs.o
LIBPLS9=$(LIBHOME)/libpls9.a
LIBPLP9=$(LIBHOME)/libplp9.a
LIBWTC9=$(LIBHOME)/libwtc9.a

KPUDFO=$(ORACLE_HOME)/rdbms/lib32/kpudfo.o LIMPEXP=$(LIBHOME)/ksms.imp
LLIBMISC=-ln9 -lnl9 -lnro9 -lvsn9 -lmm -ltrace9 -lld NAUTAB=$(ORACLE_HOME)/lib32/nautab.o
#

LLIBOTH=$(SCOREPT) $(SSCOREED) $(NAUTAB) $(NAEET) $(NAECT) LLIBOTHSEC=$(NAEDHS) $(LIBPLS9) $(LIBPLP9) $(LIBWTC9) $(LIMPEXP) $(LLIBMISC) $(KPUDFO)
#

LLIBADDS=$(LLIBPTHREADS) $(LLIBNETS) $(LLIBOTH) $(LLIBOTHSEC) LLIBS=$(COBSQLINTF) $(LLIBSQL) $(TTLIBS) $(LLIBADDS)
#
#######################################################################
# Rules for building modules
#######################################################################
#
# Rules for building a cob file from a .pco file
.pco.cob:
 $(PROCOB) $(PCCFLAGS) iname=$*.pco oname=$*.cbl  grep -v "EXEC SQL INCLUDE" $*.cbl >$*.$(COBEXT)  

.cob.o:
 $(COBOL) $(COBFLAGS) -c -o $*.o $*.$(COBEXT)
#

.cob$(GNT):
 $(COB2GNT_32)
#
# Rules for building a dynamic loadable file (.gnt) from a .pco file
#

.o:
 $(COBOL) -x $*.o $(GENOBJS) $(LDFLAGS) $(LLIBS) -o $*
#

.pco.gnt:
 $(PROCOB) $(PCCFLAGS) iname=$*.pco oname=$*.$(COBEXT)  $(COBOL) $(GNTFLAGS) $*.$(COBEXT) -o $*.gnt
#
Received on Wed Apr 21 2004 - 12:09:43 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US