[MacPorts] #49052: gpgme does not compile in El Captain
#49052: gpgme does not compile in El Captain ----------------------+-------------------------------- Reporter: promac@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: gpgme ----------------------+-------------------------------- :info:build In file included from gpgme-tool.c:36: :info:build /opt/local/include/argp.h:39:13: error: cannot combine with previous 'int' declaration specifier :info:build typedef int error_t; :info:build ^ :info:build ../config.h:258:17: note: expanded from macro 'error_t' :info:build #define error_t int :info:build ^ :info:build In file included from gpgme-tool.c:36: :info:build /opt/local/include/argp.h:39:1: warning: typedef requires a name [-Wmissing-declarations] :info:build typedef int error_t; :info:build ^~~~~~~~~~~~~~~~~~~ :info:build gpgme-tool.c:915:3: warning: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' :info:build snprintf (code, sizeof (code) - 1, "0x%x", err); :info:build ^ :info:build gpgme-tool.c:915:3: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf' :info:build gpgme-tool.c:1736:9: warning: implicitly declaring library function 'strcasecmp' with type 'int (const char *, const char *)' :info:build if (! strcasecmp (name, gpgme_get_protocol_name (GPGME_PROTOCOL_OpenPGP))) :info:build ^ :info:build gpgme-tool.c:1736:9: note: include the header <strings.h> or explicitly provide a declaration for 'strcasecmp' :info:build gpgme-tool.c:2263:9: warning: implicitly declaring library function 'strncasecmp' with type 'int (const char *, const char *, unsigned long)' :info:build if (! strncasecmp (line, "file=", 5)) :info:build ^ :info:build gpgme-tool.c:2263:9: note: include the header <strings.h> or explicitly provide a declaration for 'strncasecmp' :info:build gpgme-tool.c:2266:19: warning: implicitly declaring library function 'strdup' with type 'char *(const char *)' :info:build *filename = strdup (line + 5); -- Ticket URL: <https://trac.macports.org/ticket/49052> MacPorts <https://www.macports.org/> Ports system for OS X
#49052: gpgme: error: cannot combine with previous 'int' declaration specifier -----------------------+----------------------- Reporter: promac@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: elcapitan Port: gpgme | -----------------------+----------------------- Changes (by ryandesign@…): * cc: devans@… (removed) * keywords: => elcapitan * owner: macports-tickets@… => devans@… Old description:
:info:build In file included from gpgme-tool.c:36: :info:build /opt/local/include/argp.h:39:13: error: cannot combine with previous 'int' declaration specifier :info:build typedef int error_t; :info:build ^ :info:build ../config.h:258:17: note: expanded from macro 'error_t' :info:build #define error_t int :info:build ^ :info:build In file included from gpgme-tool.c:36: :info:build /opt/local/include/argp.h:39:1: warning: typedef requires a name [-Wmissing-declarations] :info:build typedef int error_t; :info:build ^~~~~~~~~~~~~~~~~~~ :info:build gpgme-tool.c:915:3: warning: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' :info:build snprintf (code, sizeof (code) - 1, "0x%x", err); :info:build ^ :info:build gpgme-tool.c:915:3: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf' :info:build gpgme-tool.c:1736:9: warning: implicitly declaring library function 'strcasecmp' with type 'int (const char *, const char *)' :info:build if (! strcasecmp (name, gpgme_get_protocol_name (GPGME_PROTOCOL_OpenPGP))) :info:build ^ :info:build gpgme-tool.c:1736:9: note: include the header <strings.h> or explicitly provide a declaration for 'strcasecmp' :info:build gpgme-tool.c:2263:9: warning: implicitly declaring library function 'strncasecmp' with type 'int (const char *, const char *, unsigned long)' :info:build if (! strncasecmp (line, "file=", 5)) :info:build ^ :info:build gpgme-tool.c:2263:9: note: include the header <strings.h> or explicitly provide a declaration for 'strncasecmp' :info:build gpgme-tool.c:2266:19: warning: implicitly declaring library function 'strdup' with type 'char *(const char *)' :info:build *filename = strdup (line + 5);
New description: {{{ :info:build In file included from gpgme-tool.c:36: :info:build /opt/local/include/argp.h:39:13: error: cannot combine with previous 'int' declaration specifier :info:build typedef int error_t; :info:build ^ :info:build ../config.h:258:17: note: expanded from macro 'error_t' :info:build #define error_t int :info:build ^ :info:build In file included from gpgme-tool.c:36: :info:build /opt/local/include/argp.h:39:1: warning: typedef requires a name [-Wmissing-declarations] :info:build typedef int error_t; :info:build ^~~~~~~~~~~~~~~~~~~ :info:build gpgme-tool.c:915:3: warning: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' :info:build snprintf (code, sizeof (code) - 1, "0x%x", err); :info:build ^ :info:build gpgme-tool.c:915:3: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf' :info:build gpgme-tool.c:1736:9: warning: implicitly declaring library function 'strcasecmp' with type 'int (const char *, const char *)' :info:build if (! strcasecmp (name, gpgme_get_protocol_name (GPGME_PROTOCOL_OpenPGP))) :info:build ^ :info:build gpgme-tool.c:1736:9: note: include the header <strings.h> or explicitly provide a declaration for 'strcasecmp' :info:build gpgme-tool.c:2263:9: warning: implicitly declaring library function 'strncasecmp' with type 'int (const char *, const char *, unsigned long)' :info:build if (! strncasecmp (line, "file=", 5)) :info:build ^ :info:build gpgme-tool.c:2263:9: note: include the header <strings.h> or explicitly provide a declaration for 'strncasecmp' :info:build gpgme-tool.c:2266:19: warning: implicitly declaring library function 'strdup' with type 'char *(const char *)' :info:build *filename = strdup (line + 5); }}} -- Comment: Please attach the main.log file. -- Ticket URL: <https://trac.macports.org/ticket/49052#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#49052: gpgme: error: cannot combine with previous 'int' declaration specifier -----------------------+----------------------- Reporter: promac@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: elcapitan Port: gpgme | -----------------------+----------------------- Comment (by promac@…): Attached... -- Ticket URL: <https://trac.macports.org/ticket/49052#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#49052: gpgme: error: cannot combine with previous 'int' declaration specifier -----------------------+----------------------- Reporter: promac@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: elcapitan Port: gpgme | -----------------------+----------------------- Comment (by promac@…): The problem is just this file: /usr/local/include/argp.h without it, the compilation goes smooth... It comes from the "argo-standalone" package. -- Ticket URL: <https://trac.macports.org/ticket/49052#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#49052: gpgme: error: cannot combine with previous 'int' declaration specifier -----------------------+----------------------- Reporter: promac@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: elcapitan Port: gpgme | -----------------------+----------------------- Comment (by promac@…): Sorry, I mean /opt/local/include/argp.h -- Ticket URL: <https://trac.macports.org/ticket/49052#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#49052: gpgme: error: cannot combine with previous 'int' declaration specifier -----------------------+---------------------- Reporter: promac@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: gpgme | -----------------------+---------------------- Changes (by devans@…): * keywords: elcapitan => * status: new => assigned * version: 2.3.4 => Comment: Corrections: * Issue is not specific to El Capitan * port argp-standalone provides /opt/local/include/argp.h -- Ticket URL: <https://trac.macports.org/ticket/49052#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#49052: gpgme: error: cannot combine with previous 'int' declaration specifier -----------------------+---------------------- Reporter: promac@… | Owner: devans@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: gpgme | -----------------------+---------------------- Changes (by devans@…): * status: assigned => closed * resolution: => fixed Comment: Fix committed in r142918 which disables optional argp support. Thanks for the report. -- Ticket URL: <https://trac.macports.org/ticket/49052#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts