Menu

#470 image file not found, needs -D_FILE_OFFSET_BITS=64

0.74
open
nobody
None
1
2017-11-20
2017-11-20
No

Hi,

I have found that imgmount can return "Image file not found" for files that definitely do exist. Compiling with -D_FILE_OFFSET_BITS=64 fixes the problem for me. I was able to find some debian/ubuntu references to this problem, but I don't know if a bug report was ever sent upstream.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792886

In my case, this happens to me with:
* SVN r4063
* gcc 7.2.0
* Debian sid
* 32-bit dosbox in an i386 chroot on a 64-bit kernel
* mounting from an ISO on an XFS volume mounted with "inode64"

Those last two details seem relevant--if I move the ISO to an ext4 volume or compile a 64-bit dosbox, I don't see this problem.

Thanks,
Corey

Discussion


Log in to post a comment.