[MacPorts] #68092: orrery @0.9.7: error: implicitly declaring library function 'strcmp'; error: implicit declaration of function 'orrery_init'
MacPorts
noreply at macports.org
Wed Aug 30 07:34:34 UTC 2023
#68092: orrery @0.9.7: error: implicitly declaring library function 'strcmp';
error: implicit declaration of function 'orrery_init'
------------------------+------------------------
Reporter: ryandesign | Owner: raphael-st
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: | Port: orrery
------------------------+------------------------
https://build.macports.org/builders/ports-
12_x86_64-builder/builds/80372/steps/install-port/logs/stdio
{{{
testwish.c:32:5: error: implicitly declaring library function 'strcmp'
with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-
declaration]
INIT(orrery_init,"orrery")
^
testwish.c:31:35: note: expanded from macro 'INIT'
#define INIT(initfunc,string) if(!strcmp(argv[1],string)) {
if(initfunc(interp)==TCL_ERROR) return TCL_ERROR;} else
^
testwish.c:32:5: note: include the header <string.h> or explicitly provide
a declaration for 'strcmp'
testwish.c:31:35: note: expanded from macro 'INIT'
#define INIT(initfunc,string) if(!strcmp(argv[1],string)) {
if(initfunc(interp)==TCL_ERROR) return TCL_ERROR;} else
^
testwish.c:32:10: error: implicit declaration of function 'orrery_init' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
INIT(orrery_init,"orrery")
^
testwish.c:49:47: warning: incompatible function pointer types passing
'int (ClientData, Tcl_Interp *, int, char **)' (aka 'int (void *, struct
Tcl_Interp *, int, char **)') to parameter of type 'Tcl_CmdProc *' (aka
'int (*)(void *, struct Tcl_Interp *, int, const char **)')
[-Wincompatible-function-pointer-types]
Tcl_CreateCommand(interp, "emodule_init", do_emodule_init, 0, 0);
^~~~~~~~~~~~~~~
/opt/local/include/tclDecls.h:303:39: note: passing argument to parameter
'proc' here
const char *cmdName, Tcl_CmdProc *proc,
^
1 warning and 2 errors generated.
make[2]: *** [testwish.o] Error 1
make[2]: *** Waiting for unfinished jobs....
}}}
See WimplicitFunctionDeclaration.
I cannot report this to the developers because the Create Ticket button in
[https://sourceforge.net/p/geomview/bugs/ their issue tracker] is
disabled.
I checked out their repository (`cvs -z3
-d:pserver:anonymous at a.cvs.sourceforge.net:/cvsroot/geomview co -P
orrery`) and it did not look like they had fixed this problem.
--
Ticket URL: <https://trac.macports.org/ticket/68092>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list