Welcome, Guest. Please login or register.

Author Topic: Missing statvfs.h  (Read 278 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 only replies by Michele31415
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 F0LLETT

  • Amigakit / A-EON Support
  • Administrator
  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 579
  • Country: gb
  • Thanked: 24 times
  • Gender: Male
    • Show only replies by F0LLETT
    • Ultimate Amiga
Re: Missing statvfs.h
« Reply #1 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?
Quote from: Hungry Horace
Resolute and Industrious Grand ruler of the yellow people and the Ultimate Amiga Empire
Ultimate Amiga Network (Home of SONY PSP Amiga Emulator and AMOS Factory)

Quote from:  He who shall not be named
"Chris is that you!!!"
My all time favorite quote.
 

Offline Michele31415Topic starter

  • Full Member
  • ***
  • Join Date: Jan 2012
  • Posts: 156
  • Country: us
    • Show only replies by Michele31415
Re: Missing statvfs.h
« Reply #2 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 ferrellsl

Re: Missing statvfs.h
« Reply #3 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
 

Offline Michele31415Topic starter

  • Full Member
  • ***
  • Join Date: Jan 2012
  • Posts: 156
  • Country: us
    • Show only replies by Michele31415
Re: Missing statvfs.h
« Reply #4 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 nbache

Re: Missing statvfs.h
« Reply #5 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
 

Offline Michele31415Topic starter

  • Full Member
  • ***
  • Join Date: Jan 2012
  • Posts: 156
  • Country: us
    • Show only replies by Michele31415
Re: Missing statvfs.h
« Reply #6 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