OpenOffice2 and NFS

Posted by: Andrew Smith
Poster contact info: andre-smith at mail ru
Author: Andrew Smith, Various
Originally published: OpenOffice bug tracking site
Software: Slackware 10.1, OpenOffice 2

This problem happens on a default installation of OpenOffice2 on Slackware 10.1.

When opening a file from an NFS mount, you get the error General input/output error while accessing somefile

This is not a permissions problem cause OpenOffice 1 worked just fine with the same file.

I don't know the details of why this happens but here's how you fix it:

As root, edit the file /opt/openoffice.org-2.0/program/soffice and find these lines:
# file locking now enabled by default
SAL_ENABLE_FILE_LOCKING=1
export SAL_ENABLE_FILE_LOCKING

They are the cause of this problem, comment them out like so:
# file locking now enabled by default
#SAL_ENABLE_FILE_LOCKING=1
#export SAL_ENABLE_FILE_LOCKING


Should work now.

LibreOffice

Posted by: Andrew Smith
Poster contact info: http://littlesvr.ca/
Author: same as 'Posted by'
Software: Slackware 13.37, LibreOffice 3.3.2.2

The same fix works for LibreOffice, the soffice file is in /usr/bin/soffice