Git Product home page Git Product logo

bmap's People

Contributors

cameronlonsdale avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

justforkin

bmap's Issues

build error: make fails with Error 1 and Error 2

The build fails at make step with the error:

make[1]: *** [<builtin>: log.o] Error 1
make[1]: Leaving directory '/opt/bmap/bmap-master/mft'
make: *** [Makefile:59: mft] Error 2

More information below

└─# make              
if [ -n mft ] ; then make -C mft ; fi
make[1]: Entering directory '/opt/bmap/bmap-master/mft'
cc -Wall -g -m32 -I. -Iinclude  -c -o log.o log.c
In file included from include/mft.h:17,
                 from log.c:30:
log.c: In function ‘mft_log_init’:
include/log.h:46:46: warning: passing argument 1 of ‘mft_log_entry_helper’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   46 | #define mft_log_entry() mft_log_entry_helper(__FUNCTION__)
      |                                              ^~~~~~~~~~~~
log.c:73:9: note: in expansion of macro ‘mft_log_entry’
   73 |         mft_log_entry();
      |         ^~~~~~~~~~~~~
include/log.h:44:40: note: expected ‘char *’ but argument is of type ‘const char *’
   44 | extern void mft_log_entry_helper(char *function);
      |                                  ~~~~~~^~~~~~~~
include/log.h:47:44: warning: passing argument 1 of ‘mft_log_exit_helper’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   47 | #define mft_log_exit() mft_log_exit_helper(__FUNCTION__)
      |                                            ^~~~~~~~~~~~
log.c:103:9: note: in expansion of macro ‘mft_log_exit’
  103 |         mft_log_exit();
      |         ^~~~~~~~~~~~
include/log.h:45:39: note: expected ‘char *’ but argument is of type ‘const char *’
   45 | extern void mft_log_exit_helper(char *function);
      |                                 ~~~~~~^~~~~~~~
log.c: In function ‘mft_log_shutdown’:
include/log.h:46:46: warning: passing argument 1 of ‘mft_log_entry_helper’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   46 | #define mft_log_entry() mft_log_entry_helper(__FUNCTION__)
      |                                              ^~~~~~~~~~~~
log.c:110:9: note: in expansion of macro ‘mft_log_entry’
  110 |         mft_log_entry();
      |         ^~~~~~~~~~~~~
include/log.h:44:40: note: expected ‘char *’ but argument is of type ‘const char *’
   44 | extern void mft_log_entry_helper(char *function);
      |                                  ~~~~~~^~~~~~~~
include/log.h:47:44: warning: passing argument 1 of ‘mft_log_exit_helper’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   47 | #define mft_log_exit() mft_log_exit_helper(__FUNCTION__)
      |                                            ^~~~~~~~~~~~
log.c:111:9: note: in expansion of macro ‘mft_log_exit’
  111 |         mft_log_exit();
      |         ^~~~~~~~~~~~
include/log.h:45:39: note: expected ‘char *’ but argument is of type ‘const char *’
   45 | extern void mft_log_exit_helper(char *function);
      |                                 ~~~~~~^~~~~~~~
log.c: In function ‘mft_log_perror’:
log.c:282:16: error: ‘sys_nerr’ undeclared (first use in this function)
  282 |         if(eno>sys_nerr)
      |                ^~~~~~~~
log.c:282:16: note: each undeclared identifier is reported only once for each function it appears in
log.c:285:45: error: ‘sys_errlist’ undeclared (first use in this function)
  285 |         mft_logf(log_level,"%s: %s",message,sys_errlist[eno]);
      |                                             ^~~~~~~~~~~
log.c: At top level:
log.c:348:1: warning: ‘html_dispatch’ defined but not used [-Wunused-function]
  348 | html_dispatch(int log_level,const char *position,const char *message)
      | ^~~~~~~~~~~~~
log.c:341:1: warning: ‘syslog_dispatch’ defined but not used [-Wunused-function]
  341 | syslog_dispatch(int log_level,const char *position,const char *message)
      | ^~~~~~~~~~~~~~~
make[1]: *** [<builtin>: log.o] Error 1
make[1]: Leaving directory '/opt/bmap/bmap-master/mft'
make: *** [Makefile:59: mft] Error 2

Not sure how to proceed, please help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.