Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: Michele31415 on April 11, 2024, 04:46:10 PM

Title: Missing statvfs.h
Post by: Michele31415 on April 11, 2024, 04:46:10 PM
I'm trying to cross-compile Interlisp-D for my Amiga 2000 with OS 3.9 using Bebbo's cross-compiler m68k-amigaos-gcc-6.5.0b.  It's here if anyone wants to take a look: git pull https://github.com/Interlisp-maiko.git.

Compilation is stopping because it can't find a file called sys/statvfs.h.  I can't find it either Does AmigaOS even have statvfs.h?  If not, is there a work-around?  Thanks.
Title: Re: Missing statvfs.h
Post by: F0LLETT on April 11, 2024, 10:47:58 PM
I'm trying to cross-compile Interlisp-D for my Amiga 2000 with OS 3.9 using Bebbo's cross-compiler m68k-amigaos-gcc-6.5.0b.  It's here if anyone wants to take a look: git pull https://github.com/Interlisp-maiko.git.

Compilation is stopping because it can't find a file called sys/statvfs.h.  I can't find it either Does AmigaOS even have statvfs.h?  If not, is there a work-around?  Thanks.

If its not used, cant you just remove the include?
Title: Re: Missing statvfs.h
Post by: Michele31415 on April 12, 2024, 04:38:36 PM
Unfortunately, it is used.  I've searched the web for this file and come up empty.
Title: Re: Missing statvfs.h
Post by: ferrellsl on April 13, 2024, 12:27:15 AM
It most likely isn't specific to AmigaOS.  A quick search brought up these two results very quickly.


https://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/statvfs.h.html

https://pubs.opengroup.org/onlinepubs/7908799/xsh/sysstatvfs.h.html
Title: Re: Missing statvfs.h
Post by: Michele31415 on April 14, 2024, 12:52:02 AM
Yes, I've done a web search.  There's no way that is actually going to work - you have to have an actual statvfs implementation that matches what the header says, and AmigaOS isn't likely to have one that matches those, nor is a Unix compatabillity library implementation likely to exactly match the header(s).  I'm looking for an AmigaOS specific version of statvfs.
Title: Re: Missing statvfs.h
Post by: nbache on April 14, 2024, 12:32:02 PM
Perhaps you should ask salass00 - a search in the SDK shows that it is included in filesysbox.h, so he must have a way of building filesysbox with it.

Maybe asking over at amigans.net will help?

Best regards,

Niels
Title: Re: Missing statvfs.h
Post by: Michele31415 on April 14, 2024, 10:04:57 PM
Ah ha!  That was it.  That is just what I was looking for.  Thanks so much.  For the record, and for anyone else who might need statvfs.h, it's here: https://github.com/salass00/filesysbox/tree/master/include/sys (https://github.com/salass00/filesysbox/tree/master/include/sys)