Building Gen remote file on UNIX fails with "incompatible with prototype"
search cancel

Building Gen remote file on UNIX fails with "incompatible with prototype"

book

Article ID: 196200

calendar_today

Updated On:

Products

Gen Gen - Workstation Toolset Gen - Run Time Distributed

Issue/Introduction

When building the Gen 8.6 remote file (.rmt) file (generated for C, Oracle, Unix) the following error is issued in the .out file:

"/export/home/test1/build/srv.c", line xxxx: argument #2 is incompatible with prototype: prototype: pointer to void : "/opt/86ora/runtime/include/tiabinc.h", line xx argument : struct  {unsigned short len, array[2] of unsigned char arr}..."

Environment

Gen 8.6 Build Tool on UNIX/Linux

Resolution

This error points to one of the following: 

  • An invalid coded statement with the Gen Action Block or Prad, where the compile error exists.
  • An inconsistency in the implementation of the attribute(s), within the Data Structure List (DSL) regarding either the column implementation and/or the FK implementation if applicable.
  • An inconsistency between the implemented attribute(s) with the physical Oracle database.

Recommendation is to run a consistency check within the Gen Toolset within the following areas:  On the offending Action Block or Prad, on the DSL table(s) containing the column or FK, and also when generating the remote file .rmt itself.   Resolve all consistency check errors related to the offending attribute(s)/Columns(s) and retest.  If no consistency check errors are discovered, manually check the implementation of the attribute within the DSL against the physical Oracle database tables to insure consistency.