Closed wschlich closed 11 years ago
Hello Wolfram,
are you working on a 32bit system?
In issue #4 you wrote you use CFLAGS="-O2 -march=native ..."
gcc must be called with -D_FILE_OFFSET_BITS=64
Best regards
Heinrich
No 32bit system :)
This is just the basic Gentoo CFLAGS
from /etc/make.conf
.
-D_FILE_OFFSET_BITS=64
is added automatically -- here are some snippets from the build log so you can see it's ok :):
configure: CPPFLAGS = -pthread -I. -D_FILE_OFFSET_BITS=64
...
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I. -D_FILE_OFFSET_BITS=64 -O2 -march=native -pipe -ggdb -c -o notify.o notify.cc
...
/bin/sh ../../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -march=native -pipe -ggdb -fno-strict-aliasing -pthread -I. -D_FILE_OFFSET_BITS=64 -O2 -march=native -pipe -ggdb -c -o libskyldav_la-conf.lo `test -f 'conf.c' || echo './'`conf.c
...
libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -march=native -pipe -ggdb -fno-strict-aliasing -pthread -I. -D_FILE_OFFSET_BITS=64 -O2 -march=native -pipe -ggdb -c listmounts.c -fPIC -DPIC -o .libs/libskyldav_la-listmounts.o
Cheers, Wolfram
Please, recheck with patch https://github.com/xypron/skyldav/commit/de3a2f33a1c13485e1a82baad1d24ddabec467c5
Best Regards
Heinrich
I can confirm that files >=2GB can now be accessed with skyldav running. Thanks!
Hi!
Seems that there's an issue with large files. After starting skyldav, they cannot be accessed anymore (EPERM):
An strace of vmware shows that EPERM is returned when opening such a file.
I found out that this happens to files that are >=2048 MB large. When creating a 2047 MB file with dd from /dev/sda, this does not happen, when adding one more MB, it does.
Cheers, Wolfram