https://bugzilla.novell.com/show_bug.cgi?id=644883 https://bugzilla.novell.com/show_bug.cgi?id=644883#c0 Summary: Quanta (kate-part) fails to open a file on cifs share Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: VMWare OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: KDE3 AssignedTo: kde-maintainers@suse.de ReportedBy: gerhard.schiller@baxter.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.10) Gecko/20100914 SUSE/3.6.10-0.3.1 Firefox/3.6.10 Quanta fails to open a file with read error on a cifs share. I traced the problem back to a call against stat() in kdelibs-3.5.10/kate/part/katebuffer.cpp. Jeff Layton at samba.org pointed out, that a test source I provided needed to be compiled with -D_FILE_OFFSET_BITS=64 flag. See https://bugzilla.samba.org/show_bug.cgi?id=7707 Recompiling kdelibs-3.5.10 with this flag solved the problem for me. But I believe the libraries shiped with SuSE 11.3 should be recompiled too. A work around is to mount the share with the "noserverino" option. See http://bugs.php.net/bug.php?id=51266 Reproducible: Always Steps to Reproduce: 1.) Mount a windows share using an fstab line like this: //10.110.13.172/intranet$ /mnt/idefix/intranet cifs credentials=/etc/samba.credentials_for_idefix_intranet,rw,uid=gerhard,gid=users,dir_mode=0755,file_mode=0664 0 0 2.) Compile and run the test program with the path to a file on the share as argument 3.) It will fail with: errno:75, stat: Value too large for defined data type. 4.) Now recompile with -D_FILE_OFFSET_BITS=64 5.) Run the test program again (with same argument as avbove) and it will display some parts of the stat structure I used: /configure --prefix=/opt/kde3/ CPPFLAGS=-D_FILE_OFFSET_BITS=64 CFLAGS=-D_FILE_OFFSET_BITS=64 to rebuild the libraries, but I'm not sure if the last (CFLAG0...) directive is actually needed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.