Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.

  Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.

  Snippets are delimited with '================'.

  Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.

  Explanation of the issue, and recommended solution, should take a handful of sentences.

  Snippets:

  [make: *** [Makefile:272: pgtclId.o] Error 1]: [Makefile error ]
=============
[pgtcl.c:88:50: error: ‘Pg_select’ undeclared (first use in this function)
   88 |                                                  Pg_select,
      |                                                  ^~~~~~~~~
pgtcl.c:94:50: error: ‘Pg_result’ undeclared (first use in this function); did you mean ‘pg_result’?
   94 |                                                  Pg_result,
      |                                                  ^~~~~~~~~
      |                                                  pg_result]: [detailed compilation error]
=============
[pgtcl.c:100:50: error: ‘Pg_execute’ undeclared (first use in this function)
  100 |                                                  Pg_execute,
      |                                                  ^~~~~~~~~~
pgtcl.c:106:50: error: ‘Pg_lo_open’ undeclared (first use in this function); did you mean ‘lo_open’?
  106 |                                                  Pg_lo_open,
      |                                                  ^~~~~~~~~~
      |                                                  lo_open
pgtcl.c:112:50: error: ‘Pg_lo_close’ undeclared (first use in this function); did you mean ‘lo_close’?
  112 |                                                  Pg_lo_close,
      |                                                  ^~~~~~~~~~~
      |                                                  lo_close
pgtcl.c:118:50: error: ‘Pg_lo_read’ undeclared (first use in this function); did you mean ‘lo_read’?
  118 |                                                  Pg_lo_read,
      |                                                  ^~~~~~~~~~
      |                                                  lo_read
pgtcl.c:124:50: error: ‘Pg_lo_write’ undeclared (first use in this function); did you mean ‘lo_write’?
  124 |                                                  Pg_lo_write,
      |                                                  ^~~~~~~~~~~
      |                                                  lo_write
pgtcl.c:130:50: error: ‘Pg_lo_lseek’ undeclared (first use in this function); did you mean ‘lo_lseek’?
  130 |                                                  Pg_lo_lseek,
      |                                                  ^~~~~~~~~~~
      |                                                  lo_lseek
pgtcl.c:136:50: error: ‘Pg_lo_creat’ undeclared (first use in this function); did you mean ‘lo_creat’?
  136 |                                                  Pg_lo_creat,
      |                                                  ^~~~~~~~~~~
      |                                                  lo_creat
pgtcl.c:142:50: error: ‘Pg_lo_tell’ undeclared (first use in this function); did you mean ‘lo_tell’?
  142 |                                                  Pg_lo_tell,
      |                                                  ^~~~~~~~~~
      |                                                  lo_tell
pgtcl.c:148:50: error: ‘Pg_lo_unlink’ undeclared (first use in this function); did you mean ‘lo_unlink’?
  148 |                                                  Pg_lo_unlink,
      |                                                  ^~~~~~~~~~~~
      |                                                  lo_unlink
pgtcl.c:154:50: error: ‘Pg_lo_import’ undeclared (first use in this function); did you mean ‘lo_import’?
  154 |                                                  Pg_lo_import,
      |                                                  ^~~~~~~~~~~~
      |                                                  lo_import
pgtcl.c:160:50: error: ‘Pg_lo_export’ undeclared (first use in this function); did you mean ‘lo_export’?
  160 |                                                  Pg_lo_export,
      |                                                  ^~~~~~~~~~~~
      |                                                  lo_export
pgtcl.c:166:50: error: ‘Pg_listen’ undeclared (first use in this function)
  166 |                                                  Pg_listen,
      |                                                  ^~~~~~~~~
pgtcl.c:172:50: error: ‘Pg_sendquery’ undeclared (first use in this function); did you mean ‘PQsendQuery’?
  172 |                                                  Pg_sendquery,
      |                                                  ^~~~~~~~~~~~
      |                                                  PQsendQuery
pgtcl.c:178:50: error: ‘Pg_sendquery_prepared’ undeclared (first use in this function); did you mean ‘PQsendQueryPrepared’?
  178 |                                                  Pg_sendquery_prepared,
      |                                                  ^~~~~~~~~~~~~~~~~~~~~
      |                                                  PQsendQueryPrepared
pgtcl.c:184:50: error: ‘Pg_sendquery_params’ undeclared (first use in this function); did you mean ‘PQsendQueryParams’?
  184 |                                                  Pg_sendquery_params,
      |                                                  ^~~~~~~~~~~~~~~~~~~
      |                                                  PQsendQueryParams
pgtcl.c:190:50: error: ‘Pg_getresult’ undeclared (first use in this function); did you mean ‘PQgetResult’?
  190 |                                                  Pg_getresult,
      |                                                  ^~~~~~~~~~~~
      |                                                  PQgetResult
pgtcl.c:196:50: error: ‘Pg_isbusy’ undeclared (first use in this function); did you mean ‘PQisBusy’?
  196 |                                                  Pg_isbusy,
      |                                                  ^~~~~~~~~
      |                                                  PQisBusy
pgtcl.c:202:50: error: ‘Pg_blocking’ undeclared (first use in this function)
  202 |                                                  Pg_blocking,
      |                                                  ^~~~~~~~~~~
pgtcl.c:208:50: error: ‘Pg_cancelrequest’ undeclared (first use in this function)
  208 |                                                  Pg_cancelrequest,
      |                                                  ^~~~~~~~~~~~~~~~
pgtcl.c:214:51: error: ‘Pg_on_connection_loss’ undeclared (first use in this function); did you mean ‘Pg_ConnectionId_s’?
  214 |                                                   Pg_on_connection_loss,
      |                                                   ^~~~~~~~~~~~~~~~~~~~~
      |                                                   Pg_ConnectionId_s
pgtcl.c:220:51: error: ‘Pg_escape_string’ undeclared (first use in this function); did you mean ‘PQescapeString’?
  220 |                                                   Pg_escape_string,
      |                                                   ^~~~~~~~~~~~~~~~
      |                                                   PQescapeString
pgtcl.c:226:51: error: ‘Pg_quote’ undeclared (first use in this function)
  226 |                                                   Pg_quote,
      |                                                   ^~~~~~~~
pgtcl.c:232:51: error: ‘Pg_escape_bytea’ undeclared (first use in this function); did you mean ‘PQescapeBytea’?
  232 |                                                   Pg_escape_bytea,
      |                                                   ^~~~~~~~~~~~~~~
      |                                                   PQescapeBytea
pgtcl.c:238:51: error: ‘Pg_unescape_bytea’ undeclared (first use in this function); did you mean ‘PQunescapeBytea’?
  238 |                                                   Pg_unescape_bytea,
      |                                                   ^~~~~~~~~~~~~~~~~
      |                                                   PQunescapeBytea
pgtcl.c:244:51: error: ‘Pg_transaction_status’ undeclared (first use in this function); did you mean ‘PQtransactionStatus’?
  244 |                                                   Pg_transaction_status,
      |                                                   ^~~~~~~~~~~~~~~~~~~~~
      |                                                   PQtransactionStatus
pgtcl.c:250:51: error: ‘Pg_parameter_status’ undeclared (first use in this function); did you mean ‘PQparameterStatus’?
  250 |                                                   Pg_parameter_status,
      |                                                   ^~~~~~~~~~~~~~~~~~~
      |                                                   PQparameterStatus
pgtcl.c:256:51: error: ‘Pg_exec_prepared’ undeclared (first use in this function); did you mean ‘PQexecPrepared’?
  256 |                                                   Pg_exec_prepared,
      |                                                   ^~~~~~~~~~~~~~~~
      |                                                   PQexecPrepared
pgtcl.c:262:51: error: ‘Pg_exec_params’ undeclared (first use in this function); did you mean ‘PQexecParams’?
  262 |                                                   Pg_exec_params,
      |                                                   ^~~~~~~~~~~~~~
      |                                                   PQexecParams
pgtcl.c:268:51: error: ‘Pg_notice_handler’ undeclared (first use in this function)
  268 |                                                   Pg_notice_handler,
      |                                                   ^~~~~~~~~~~~~~~~~
pgtcl.c:274:51: error: ‘Pg_result_callback’ undeclared (first use in this function); did you mean ‘PgClearResultCallback’?
  274 |                                                   Pg_result_callback,
      |                                                   ^~~~~~~~~~~~~~~~~~
      |                                                   PgClearResultCallback
pgtcl.c:281:51: error: ‘Pg_encrypt_password’ undeclared (first use in this function); did you mean ‘PQencryptPassword’?
  281 |                                                   Pg_encrypt_password,
      |                                                   ^~~~~~~~~~~~~~~~~~~
      |                                                   PQencryptPassword
pgtcl.c:289:51: error: ‘Pg_lo_truncate’ undeclared (first use in this function); did you mean ‘lo_truncate’?
  289 |                                                   Pg_lo_truncate,
      |                                                   ^~~~~~~~~~~~~~
      |                                                   lo_truncate
pgtcl.c:297:51: error: ‘Pg_describe_cursor’ undeclared (first use in this function)
  297 |                                                   Pg_describe_cursor,
      |                                                   ^~~~~~~~~~~~~~~~~~
pgtcl.c:303:51: error: ‘Pg_describe_prepared’ undeclared (first use in this function); did you mean ‘PQdescribePrepared’?
  303 |                                                   Pg_describe_prepared,
      |                                                   ^~~~~~~~~~~~~~~~~~~~
      |                                                   PQdescribePrepared
pgtcl.c:310:51: error: ‘Pg_backend_pid’ undeclared (first use in this function); did you mean ‘PQbackendPID’?
  310 |                                                   Pg_backend_pid,
      |                                                   ^~~~~~~~~~~~~~
      |                                                   PQbackendPID
pgtcl.c:316:51: error: ‘Pg_server_version’ undeclared (first use in this function); did you mean ‘PQserverVersion’?
  316 |                                                   Pg_server_version,
      |                                                   ^~~~~~~~~~~~~~~~~
      |                                                   PQserverVersion
pgtcl.c:323:51: error: ‘Pg_lo_tell64’ undeclared (first use in this function); did you mean ‘lo_tell64’?
  323 |                                                   Pg_lo_tell64,
      |                                                   ^~~~~~~~~~~~
      |                                                   lo_tell64
pgtcl.c:329:51: error: ‘Pg_lo_lseek64’ undeclared (first use in this function); did you mean ‘lo_lseek64’?
  329 |                                                   Pg_lo_lseek64,
      |                                                   ^~~~~~~~~~~~~
      |                                                   lo_lseek64
pgtcl.c:335:51: error: ‘Pg_lo_truncate64’ undeclared (first use in this function); did you mean ‘lo_truncate64’?
  335 |                                                   Pg_lo_truncate64,
      |                                                   ^~~~~~~~~~~~~~~~
      |                                                   lo_truncate64
pgtcl.c:343:51: error: ‘Pg_escape_l_i’ undeclared (first use in this function)
  343 |                                                   Pg_escape_l_i,
      |                                                   ^~~~~~~~~~~~~
make: *** [Makefile:272: pgtcl.o] Error 1]: [detailed compilation error]


Answer: Issue: In the upstream sources, there were changes and some functions weren't declared before definition 
Resolution: Declare the functions, in the best case in header file