info-mtools
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Info-mtools] Error while compiling


From: Dávid Gábor (GDavid)
Subject: [Info-mtools] Error while compiling
Date: Mon, 31 Jul 2017 11:47:12 +0200

OS: Mac OS Sierra 10.12.6
Log:

gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -DCPU_i386 -DVENDOR_apple -DOS_darwin16_7_0 -DOS_darwin16 -DOS_darwin -g -O2 -Wall -fno-strict-aliasing -I.  -I.  -c mainloop.c
mainloop.c:89:15: error: expected ')'
int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp, char *arg,
              ^
./sysincludes.h:106:47: note: expanded from macro 'UNUSED'
#  define UNUSED(x) x __attribute__ ((unused));x
                                              ^
mainloop.c:89:14: note: to match this '('
int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp, char *arg,
             ^
mainloop.c:89:41: error: redefinition of 'MainParam_t' as different kind of
      symbol
int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp, char *arg,
                                        ^
./mainloop.h:68:3: note: previous definition is here
} MainParam_t;
  ^
mainloop.c:89:52: error: expected ';' after top level declarator
int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp, char *arg,
                                                   ^
                                                   ;
mainloop.c:98:15: error: expected ')'
int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp,
              ^
./sysincludes.h:106:47: note: expanded from macro 'UNUSED'
#  define UNUSED(x) x __attribute__ ((unused));x
                                              ^
mainloop.c:98:14: note: to match this '('
int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp,
             ^
mainloop.c:98:41: error: redefinition of 'MainParam_t' as different kind of
      symbol
int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp,
                                        ^
./mainloop.h:68:3: note: previous definition is here
} MainParam_t;
  ^
mainloop.c:98:52: error: expected ';' after top level declarator
int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp,
                                                   ^
                                                   ;
mainloop.c:207:10: error: unknown type name 'lookupState_t'
                       lookupState_t *lookupState)
                       ^
mainloop.c:264:7: warning: implicit declaration of function 'checkForDot' is
      invalid in C99 [-Wimplicit-function-declaration]
                if(!checkForDot(mp->lookupflags,entry.name)) {
                    ^
mainloop.c:294:7: error: unknown type name 'lookupState_t'
                           lookupState_t *lookupState)
                           ^
mainloop.c:423:7: error: unknown type name 'lookupState_t'
                           lookupState_t *lookupState, int open_mode)
                           ^
mainloop.c:473:2: error: use of undeclared identifier 'lookupState_t'
        lookupState_t lookupState;
        ^
mainloop.c:477:2: error: use of undeclared identifier 'lookupState'
        lookupState.nbDirs = 0;
        ^
mainloop.c:478:2: error: use of undeclared identifier 'lookupState'
        lookupState.Dir = 0;
        ^
mainloop.c:479:2: error: use of undeclared identifier 'lookupState'
        lookupState.nbContainers = 0;
        ^
mainloop.c:480:2: error: use of undeclared identifier 'lookupState'
        lookupState.container = 0;
        ^
mainloop.c:484:34: error: use of undeclared identifier 'lookupState'; did you
      mean 'lookupflags'?
        ret = common_dos_loop(mp, arg, &lookupState, O_RDWR);
                                        ^~~~~~~~~~~
                                        lookupflags
mainloop.c:475:6: note: 'lookupflags' declared here
        int lookupflags;
            ^
mainloop.c:489:5: error: use of undeclared identifier 'lookupState'
        if(lookupState.nbDirs) {
           ^
mainloop.c:491:19: error: use of undeclared identifier 'lookupState'
                mp->targetDir = lookupState.Dir;
                                ^
mainloop.c:492:9: error: use of undeclared identifier 'lookupState'
                FREE(&lookupState.container); /* container no longer needed */
                      ^
mainloop.c:496:9: error: use of undeclared identifier 'lookupState'
        switch(lookupState.nbContainers) {
               ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
make: *** [mainloop.o] Error 1


reply via email to

[Prev in Thread] Current Thread [Next in Thread]