Welcome, Guest. Please login or register.

Author Topic: Missing statvfs.h  (Read 675 times)

Description: Cross compiling

0 Members and 1 Guest are viewing this topic.

Offline Michele31415Topic starter

  • Full Member
  • ***
  • Join Date: Jan 2012
  • Posts: 156
  • Country: us
    • Show all replies
Missing statvfs.h
« 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.
Active: B2000 4.4, A2630, GVP 2000 HC+8, DKB 2632, SCSI2SD, Gotek, Deneb USB, XSurf 3cc, CD ROM, Megachip 2000, ECS Agnus, Denise, OS 3.9, GVP Spectrum EGS 28/24, Silicon Springs GOMF
Retired: A2088, 8-Up, A2090a, Oktagon 2008, Kitchen Sync
Busted: A2091
 

Offline Michele31415Topic starter

  • Full Member
  • ***
  • Join Date: Jan 2012
  • Posts: 156
  • Country: us
    • Show all replies
Re: Missing statvfs.h
« Reply #1 on: April 12, 2024, 04:38:36 PM »
Unfortunately, it is used.  I've searched the web for this file and come up empty.
Active: B2000 4.4, A2630, GVP 2000 HC+8, DKB 2632, SCSI2SD, Gotek, Deneb USB, XSurf 3cc, CD ROM, Megachip 2000, ECS Agnus, Denise, OS 3.9, GVP Spectrum EGS 28/24, Silicon Springs GOMF
Retired: A2088, 8-Up, A2090a, Oktagon 2008, Kitchen Sync
Busted: A2091
 

Offline Michele31415Topic starter

  • Full Member
  • ***
  • Join Date: Jan 2012
  • Posts: 156
  • Country: us
    • Show all replies
Re: Missing statvfs.h
« Reply #2 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.
Active: B2000 4.4, A2630, GVP 2000 HC+8, DKB 2632, SCSI2SD, Gotek, Deneb USB, XSurf 3cc, CD ROM, Megachip 2000, ECS Agnus, Denise, OS 3.9, GVP Spectrum EGS 28/24, Silicon Springs GOMF
Retired: A2088, 8-Up, A2090a, Oktagon 2008, Kitchen Sync
Busted: A2091
 

Offline Michele31415Topic starter

  • Full Member
  • ***
  • Join Date: Jan 2012
  • Posts: 156
  • Country: us
    • Show all replies
Re: Missing statvfs.h
« Reply #3 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
Active: B2000 4.4, A2630, GVP 2000 HC+8, DKB 2632, SCSI2SD, Gotek, Deneb USB, XSurf 3cc, CD ROM, Megachip 2000, ECS Agnus, Denise, OS 3.9, GVP Spectrum EGS 28/24, Silicon Springs GOMF
Retired: A2088, 8-Up, A2090a, Oktagon 2008, Kitchen Sync
Busted: A2091