Rate This Document
Findability
Accuracy
Completeness
Readability

Same Variable Repeatedly Defined by Different Files During Greenplum Compilation

Symptom

During Greenplum compilation, the message "the use of 'tempnam' is dangerous, better use 'mkstemp'" is displayed.

The complete error information is as follows:

Key Process and Cause Analysis

The same variable is repeatedly defined by different files.

Conclusion and Solution

  1. Modify the source code /src/bin/pg_dump/cdb/cdb_dump.c and add the extern declaration before the conflicting variable in the file.
    extern

    The following figure shows the modification result:

  2. Recompile and install Greenplum by referring to Compiling and Installing Greenplum.