Code Monkey home page Code Monkey logo

vpk_fuse's People

Contributors

elementw avatar hilloftheking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vpk_fuse's Issues

undefined reference to `fuse_main_real'

make[1]: Entering directory `/tmp/buildd/vpkfuse-1.0'
cc `pkg-config --cflags --libs fuse` -std=gnu99 -g -o vpk_fuse vpk_fuse.c
vpk_fuse.c: In function 'vpk_read':
vpk_fuse.c:489:3: warning: format '%d' expects argument of type 'int', but argument 2 has type 'off_t' [-Wformat=]
   LogW("Read offset %d exceeds file size %d on \"%s\"", offset, f->Size, path);
   ^
vpk_fuse.c:489:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'uint64' [-Wformat=]
vpk_fuse.c:522:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
   LogE("%s: read failed: %d/%d (A#%d, FD%d)", path, pos-offset, size, f->ArchiveIndex, GetVPKArchive(&vpk, f->ArchiveIndex));
   ^
vpk_fuse.c:522:3: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat=]
/tmp/ccS4BV57.o: In function `main':
/tmp/buildd/vpkfuse-1.0/vpk_fuse.c:588: undefined reference to `fuse_main_real'

error when building

I get this error when I run make on Gentoo

cc -Wall -Wextra -pedantic -Werror -std=c99 -O2 -I/usr/include/fuse -D_FILE_OFFSET_BITS=64  -o vpk_fuse vpk_fuse.c -lfuse -pthread 

vpk_fuse.c: In function ‘OpenVPKArchive’:
vpk_fuse.c:337:62: error: ‘%03d’ directive output between 3 and 3 bytes may cause result to exceed ‘INT_MAX’ [-Werror=format-truncation=]
  337 |                 int written = snprintf(fname, fnameLen, "%s%s%03d%s", vpk->Path, prefix, id % 1000u, suffix);
      |                                                              ^~~~
vpk_fuse.c:337:57: note: directive argument in the range [0, 999]
  337 |                 int written = snprintf(fname, fnameLen, "%s%s%03d%s", vpk->Path, prefix, id % 1000u, suffix);
      |                                                         ^~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:8: vpk_fuse] Error 1

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.