Request Help with: Error During make of libgpg-error-1.36 with compiling gpg-error.c

Rey Abeleda reynaldo.abeleda at nab.com.au
Tue Sep 24 08:21:37 CEST 2019


Hello,

After a successful ./configure of libgpg-error-1.36, the subsequent make failed with the error below.

capplmgr at orafind: /fin3/app/app/capplmgr/mlc-rot/gnupg/libgpg-error-1.36> make
        make  all-recursive
Making all in m4
Target "all" is up to date.
Making all in src
        make  all-am
        source='gpg-error.c' object='gpg_error-gpg-error.o' libtool=no  DEPDIR=.deps depmode=xlc /bin/sh ../build-aux/depcomp  cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/usr/local/share/libgpg-error\"  -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -g -c -o gpg_error-gpg-error.o `test -f 'gpg-error.c' || echo './'`gpg-error.c
"gpg-error.c", line 497.1: 1506-191 (E) The character # is not a valid C source character.
"gpg-error.c", line 497.2: 1506-275 (S) Unexpected text 'if' encountered.
"gpg-error.c", line 499.1: 1506-191 (E) The character # is not a valid C source character.
"gpg-error.c", line 501.1: 1506-191 (E) The character # is not a valid C source character.
"gpg-error.c", line 498.17: 1506-277 (S) Syntax error: possible missing ')' or ','?
"gpg-error.c", line 496.5: 1506-045 (S) Undeclared identifier HAVE_W32_SYSTEM.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.

I had a look inside the source src/gpg-error.c in the vicinity of lines 497 to 501. Below is a code snippet. I am not a C developer but it seems to me that the 4th call to ARGPARSE_c below which I've highlighted in RED is incorrect C code.

  +480  main (int argc, char *argv[])
  +481  {
  +482    enum { CMD_DEFAULT     = 0,
  +483           CMD_LIB_VERSION = 501,
  +484           CMD_LIST,
  +485           CMD_DEFINES,
  +486           CMD_LOCALE,
  +487           OPT_DESC
  +488    };
  +489    static gpgrt_opt_t opts[] = {
  +490      ARGPARSE_c (CMD_LIB_VERSION, "lib-version",
  +491                  "Print library version"),
  +492      ARGPARSE_c (CMD_LIST, "list",
  +493                  "Print all error codes"),
  +494      ARGPARSE_c (CMD_DEFINES, "defines",
  +495                  "Print all error codes as #define lines"),
  +496      ARGPARSE_c (CMD_LOCALE, "locale",
  +497  #if HAVE_W32_SYSTEM
  +498                  "Return the locale used for gettext"
  +499  #else
  +500                  "@"
  +501  #endif
  +502                  ),
  +503      ARGPARSE_s_n (OPT_DESC, "desc",
  +504                    "Print with error description"),
  +505      ARGPARSE_end()
  +506    };
  +507    gpgrt_argparse_t pargs = { &argc, &argv };

Would appreciate any advise on how to fix this error.
Thanks,

Reynaldo Abeleda
Senior Analyst, Engineer
Oracle Financials | Superannuation - Retail & Corporate | Wealth Technology
National Australia Bank


________________________________

The information contained in this email communication may be confidential. If you have received this email in error, please notify the sender by return email, delete this email and destroy any copy.

Any advice contained in this email has been prepared without taking into account your objectives, financial situation or needs. Before acting on any advice in this email, National Australia Bank Limited (NAB) recommends that you consider whether it is appropriate for your circumstances. If this email contains reference to any financial products, NAB recommends you consider the Product Disclosure Statement (PDS) or other disclosure document available from NAB, before making any decisions regarding any products.

If this email contains any promotional content that you do not wish to receive, please reply to the original sender and write "Don't email promotional material" in the subject.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20190924/27e94c8d/attachment-0001.html>


More information about the Gnupg-users mailing list