Error/Warning when executing CA Gen mkdbs.bat for Oracle
search cancel

Error/Warning when executing CA Gen mkdbs.bat for Oracle

book

Article ID: 136603

calendar_today

Updated On:

Products

Gen Gen - Run Time Distributed

Issue/Introduction

The following error is displayed when executing the CA Gen mkdbs.bat batch file to rebuild the DLL for Oracle supported by the Windows server application or block mode application.


Example:

For Oracle11:

LINK: fatal error LNK1181: Unable to open input file 'orasql11.lib'.


For Oracle12:

LINK: fatal error LNK1181: Unable to open input file 'orasql12.lib'.

Environment

Release : r8.5, r8.6

Component : CA Gen Run Time

Cause

This error occurs because %ORACLE_HOME%\precomp\lib is not specified in the environment variable LIB. When executing mkdbs.bat,%ORACLE_HOME%\precomp\lib must be specified in the environment variable LIB. This error occurs regardless of the Oracle version.

Resolution


If the environment variable LIB is specified, the build will end normally, but the following warning messages might be displayed.


tioraddl.c(480): warning C4267: '=': conversion from 'size_t' to 'unsigned short', possible loss of data

tioraddl.c(487): warning C4267: '=': conversion from 'size_t' to 'unsigned short', possible loss of data

tioraddl.c(543): warning C4267: '=': conversion from 'size_t' to 'unsigned short', possible loss of data

...

tirora.c(306): warning C4273: 'getenv': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\stdlib.h(1191): note: see previous definition of 'getenv'


This warning messages are displayed regardless of the Visual Studio version. (The Visual Studio installation directory displayed may change depending on the environment.)

The warning messages are also not dependent on Oracle version.

You can safely ignore all the warning messages.