Error Messages During Compilation

 

Error Message
  • Exception: java.io.IOException:  CreateProcess: nmake error=2  Compilation Failed. (or)

  • Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86

Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'

Stop.

NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual

Studio\VC98\bin\NMAKE.EXE"' : return code '0x2'

Stop.

NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual

Studio\VC98\bin\nmake.exe"' : return code '0x2'

Stop.

Compilation Failed

Reason

Agent Compiler requires the environment variables of VC++ to be set appropriately before starting it. This is because, the "nmake" utility is used to compile the generated source files. If you are using MS VC++, you can do this by running "vcvars32.bat"

present in the "Bin" directory of your VC++ installation.

For example, make the following entry in you AgentCompiler.bat file or Agent Toolkit.bat (which ever you are using to start the Agent Compiler):

call   "<path to VC++ Installation>\bin\vcvars32.bat"

Below are some sample statements:

call "c:\ProgramFiles\Microsoft Visual Studio\VC98\Bin\vcvars32.bat"

call "d:\Program Files\devstudio\VC\bin\vcvars32.bat"

Then start the Agent Compiler and try to compile.

If you want to use Borland C++, then set the "PATH" to the the "Bin" directory of your Borland C++ installation.

For example,

set path=%path%;C:\Program Files\Borland\CBuilder5\Bin;

 

 

Error Message

don't know how to make .\src\snmpv3\security\des_enc.c

Reason

This error occurs if code is generated with Privacy DES Support option enabled, without copying the DES source files which are used for supporting the SNMPv3 privacy feature.

 

 

Error Message

Compilation errors while generating code for a MIB  which has an external index reference.

Reason

a) In general, an external index in a table should be an index of another table and cannot be a scalar object.

b) If you are compiling a MIB with external indexes and selected nodes code generation, then all the MIBs referred should have been added to the "Selected Nodes List".

c) Also, the MibFile name and MODULE name should be the same, otherwise the external indexes in another MIB would face some problems.

For example, to generate code for RMON2-MIB, you have to add all the MIBs on which the particular MIB depends. That is, for generating code for RMON-MIB, you have to load RMON-MIB, TOKEN-RING-RMON-MIB, and RFC1213-MIB. Then generate code and compile.

 

Error Message

If one of the compilation parameter "-c" flag is removed from the Makefile(s), then the compilation errors like missing _start definition, main if missing and other executable definition errors are occuring. How to build the agent with the same compilation parameters that is used in our application code.

Reason

The Makefile(s) of agent has the compilation flag as one of the parameter as "-c" using which first the *.c and *.h are compiled as object files (*.o) and then these object files are linked using the linker. 

If you don't want to use "-c", then you need to write your own Makefile (as like in your application) to compile the agent's *.c and *.h files.

 

 



Copyright © 2012, ZOHO Corp. All Rights Reserved.