Opened 9 months ago

#68092 assigned defect

orrery @0.9.7: error: implicitly declaring library function 'strcmp'; error: implicit declaration of function 'orrery_init'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: raphael-st (Raphael Straub)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: orrery

Description

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 their issue tracker is disabled.

I checked out their repository (cvs -z3 -d:pserver:anonymous@a.cvs.sourceforge.net:/cvsroot/geomview co -P orrery) and it did not look like they had fixed this problem.

Change History (0)

Note: See TracTickets for help on using tickets.