jigneshvasoya / fuse-zip

Automatically exported from code.google.com/p/fuse-zip
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Compilation error for i586 architecture #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by lazy.ken...@gmail.com on 4 Apr 2011 at 5:37

Attachments:

GoogleCodeExporter commented 9 years ago
same here

Original comment by laviktor...@gmail.com on 24 Apr 2011 at 7:57

GoogleCodeExporter commented 9 years ago
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.

Original comment by googlec...@yopmail.com on 28 Apr 2011 at 6:43

GoogleCodeExporter commented 9 years ago
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)

Original comment by donaldmu...@gmail.com on 4 Sep 2011 at 11:22

GoogleCodeExporter commented 9 years ago
Could you provide a patch?

Original comment by lazy.ken...@gmail.com on 5 Sep 2011 at 7:13

GoogleCodeExporter commented 9 years ago

Original comment by alexander.galanin on 10 Oct 2012 at 1:06

GoogleCodeExporter commented 9 years ago
Fixed (changeset 2b19a071e045). To be included into the next release.

Original comment by alexander.galanin on 14 Jun 2013 at 8:45