HaikuArchives / VMwareAddons

VMwareAdd-ons is a set of tools to enhance interaction with Haiku running in VMware
MIT License
7 stars 11 forks source link

vmware_fs build broken on x86_64 #28

Closed ischorr closed 2 years ago

ischorr commented 3 years ago
Building on x86_64 gives:

file_operations.cpp: In function 'status_t vmwfs_read(fs_volume*, fs_vnode*, void*, off_t, void*, size_t*)':
file_operations.cpp:95:98: error: no matching function for call to 'VMWSharedFolders::ReadFile(file_handle&, long unsigned int, uint8*, size_t*)'
   ret = shared_folders->ReadFile(*(file_handle*)cookie, pos + red, (uint8*)buffer + red, &to_read);
                                                                                                  ^
In file included from vmwfs.h:10,
                 from file_operations.cpp:3:
VMWSharedFolders.h:49:12: note: candidate: 'status_t VMWSharedFolders::ReadFile(file_handle, uint64, void*, uint32*)'
  status_t  ReadFile(file_handle handle, uint64 offset, void* read_buffer, uint32* read_length);
            ^~~~~~~~
VMWSharedFolders.h:49:12: note:   no known conversion for argument 4 from 'size_t*' {aka 'long unsigned int*'} to 'uint32*' {aka 'unsigned int*'}
file_operations.cpp: In function 'status_t vmwfs_write(fs_volume*, fs_vnode*, void*, off_t, const void*, size_t*)':
file_operations.cpp:115:114: error: no matching function for call to 'VMWSharedFolders::WriteFile(file_handle&, long unsigned int, const uint8*, size_t*)'
   ret = shared_folders->WriteFile(*(file_handle*)cookie, pos + written, (const uint8*)buffer + written, &to_write);
                                                                                                                  ^
In file included from vmwfs.h:10,
                 from file_operations.cpp:3:
VMWSharedFolders.h:50:12: note: candidate: 'status_t VMWSharedFolders::WriteFile(file_handle, uint64, const void*, uint32*)'
  status_t  WriteFile(file_handle handle, uint64 offset, const void* write_buffer, uint32* write_length);
            ^~~~~~~~~
VMWSharedFolders.h:50:12: note:   no known conversion for argument 4 from 'size_t*' {aka 'long unsigned int*'} to 'uint32*' {aka 'unsigned int*'}
/boot/system/develop/etc/makefile-engine:297: recipe for target 'objects.x86_64-cc8-release/file_operations.o' failed

...seems to be a known issue (found a few references like [this one](https://discuss.haiku-os.org/t/increase-maximum-screen-resolution-on-haiku-on-vmware-fusion-for-mac/10143/11), but didn't see the issue reported (and is still present)