When I try to launch the xv graphics editor and pass it the name of a TIFF file (e.g., "xv foo.tif"), it either segfaults or reports that it can't load the file. (At first it was segfaulting regularly; but later it started just saying it couldn't load the file.) When I try to read a TIFF file once xv is launched, it fails to do so but hasn't yet crashed or segfaulted. xv appears to be able to save TIFF files, and can read back what it's saved, but other programs (e.g., the GIMP) can't read them, and xv on another platform (an x86 SUSE 8.1 system) can't read what xv on amd64 Linux saves. The GIMP has no problems reading or saving TIFF files. Reproducible: Always Steps to Reproduce: 1.Obtain a TIFF file ("foo.tif") 2.Type "xv foo.tif" Actual Results: "foo.tif: Can not read TIFF directory." (Presented in a dialog box.) Expected Results: Loaded and displayed the TIFF file. Running 2.6.3 kernel and XFce. Installed tiff-3.6.1 and set "tiff" in the USE environment variable in /etc/make.conf prior to building xv.
can we get more information here? like xv version and the output of emerge info?
Created attachment 29479 [details, diff] Patch to make XV work on AMD64 XV's source has a call to getwd(), controlled by a #ifdef USE_GETCWD. man getwd indicates that it is deprecated on Linux. This patch adds a #define to #ifdef LINUX in xv.h to enable use of getcwd instead of getwd. Works for -r6.
I've just tested Duncan Hill's patch, and it seems to fix the problem; I can now load and save TIFF files from xv. Thanks!
fixed in CVS. give it some time to reach rsync