Compilation error for i586 architecture

Issue #31 closed
Former user created an issue

Originally reported on Google Code with ID 31

fuse-zip-0.2.13

libzip-devel-0.10
gcc45-c++-4.5.1_20101208

I got error compiling fuse-zip for i586.

g++ -c -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables -g -I/usr/lib/libzip/include   bigBuffer.cpp
-o bigBuffer.o
bigBuffer.cpp: In member function 'int BigBuffer::saveToZip(time_t, zip*, const char*,
bool, int)':
bigBuffer.cpp:274:63: error: invalid conversion from 'ssize_t (*)(void*, void*, size_t,
zip_source_cmd)' to 'zip_int64_t (*)(void*, void*, zip_uint64_t, zip_source_cmd)'
bigBuffer.cpp:274:63: error:   initializing argument 2 of 'zip_source* zip_source_function(zip*,
zip_int64_t (*)(void*, void*, zip_uint64_t, zip_source_cmd), void*)'
make[1]: *** [bigBuffer.o] Error 1

And no errors compiling for x86_64.
Also no errors compiling against libzip-0.9.

Build logs attached.

Reported by lazy.kent.suse on 2011-04-04 17:37:08

<hr> * Attachment: fuse-zip-logs.tar.gz

Comments (7)

  1. Former user Account Deleted

    ``` Same here with gentoo i686-pc-linux-gnu, dev-libs/libzip-0.10 and sys-fs/fuse-zip-0.2.13 With dev-libs/libzip-0.9 also no error. ```

    Reported by `googlecode@yopmail.com` on 2011-04-28 06:43:40

  2. Former user Account Deleted

    ``` Amend file lib/bigBuffer.cpp: Add

    typedef zip_int64_t (*zipCallback)(void*, void*, zip_uint64_t, zip_source_cmd);

    Change line 274 to read: if ((s=zip_source_function(z, (zipCallback) zipUserFunctionCallback, cbs)) == NULL)

    ```

    Reported by `donaldmunro` on 2011-09-04 11:22:47

  3. Former user Account Deleted

    ``` Could you provide a patch?

    ```

    Reported by `lazy.kent.suse` on 2011-09-05 19:13:50

  4. Former user Account Deleted

    Reported by alexander.galanin on 2012-10-10 13:06:26 - Labels added: Milestone-0.3, Type-Defect

  5. Former user Account Deleted
    Fixed (changeset 2b19a071e045). To be included into the next release.
    

    Reported by alexander.galanin on 2013-06-14 08:45:12 - Status changed: Fixed

  6. Log in to comment