Can't Compile version 0.4.0

Issue #44 closed
Former user created an issue

Originally reported on Google Code with ID 44

I can't get fuse-zip to compile

ryan@ryan-VirtualBox:~/fuse-zip-0.4.0$ make install
make -C lib
make[1]: Entering directory `/home/ryan/fuse-zip-0.4.0/lib'
g++ -c -g -O0 -Wall -Wextra -I/usr/lib/libzip/include   bigBuffer.cpp -o bigBuffer.o
bigBuffer.cpp: In constructor BigBuffer::BigBuffer(zip*, zip_uint64_t, zip_uint64_t)’:
bigBuffer.cpp:190:45: error: ZIP_FL_ENC_RAW was not declared in this scope
bigBuffer.cpp: In member function int BigBuffer::saveToZip(time_t, zip*, const char*,
bool, zip_int64_t&)’:
bigBuffer.cpp:302:54: error: ZIP_FL_ENC_UTF_8 was not declared in this scope
bigBuffer.cpp:302:70: error: zip_file_add was not declared in this scope
bigBuffer.cpp:303:75: error: zip_file_replace was not declared in this scope
make[1]: *** [bigBuffer.o] Error 1
make[1]: Leaving directory `/home/ryan/fuse-zip-0.4.0/lib'
make: *** [lib/libfusezip.a] Error 2

Reported by ryan.ong8 on 2014-04-24 15:00:48

Comments (7)

  1. Former user Account Deleted
    Install libzip >= 0.11.2 and re-compile.
    

    Reported by alexander.galanin on 2014-04-25 07:15:30 - Status changed: Invalid

  2. Former user Account Deleted
    I still wasn't able to compile afterwards, am I missing something else?
    
    ryan@ryan-VirtualBox:~/fuse-zip-0.4.0$ sudo make install
    make -C lib
    make[1]: Entering directory `/home/ryan/fuse-zip-0.4.0/lib'
    g++ -c -g -O0 -Wall -Wextra -I/usr/local/include -I/usr/local/lib/libzip/include  
    fileNode.cpp -o fileNode.o
    fileNode.cpp: In member function int FileNode::updateExtraFields() const’:
    fileNode.cpp:467:17: error: UINT16_MAX was not declared in this scope
    make[1]: *** [fileNode.o] Error 1
    make[1]: Leaving directory `/home/ryan/fuse-zip-0.4.0/lib'
    make: *** [lib/libfusezip.a] Error 2
    

    Reported by ryan.ong8 on 2014-04-25 17:55:31

  3. Former user Account Deleted
    Try to add
    
    #include <stdint.h>
    
    into the start of lib/fileNode.cpp
    

    Reported by alexander.galanin on 2014-04-26 06:52:42 - Status changed: Accepted

  4. Former user Account Deleted
    This also needs
    
    #define __STDC_LIMIT_MACROS
    
    right before #including <stdint.h>
    
    (Info: http://stackoverflow.com/questions/986426/what-do-stdc-limit-macros-and-stdc-constant-macros-mean)
    

    Reported by guille.rodriguez on 2014-12-10 17:37:25

  5. Former user Account Deleted
    This issue was closed by revision d963216d5aac.
    

    Reported by alexander.galanin on 2014-12-13 18:30:23 - Status changed: Fixed

  6. Former user Account Deleted
    Also fixed error for me! Thanks
    

    Reported by harrie.robins on 2014-12-18 11:24:58

  7. Log in to comment