我要评分
获取效率
正确性
完整性
易理解

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.
    1
    extern
    

    The following figure shows the modification result:

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