v15 on macOS - fail to compile

Support and general discussion.
Post Reply
startmenu
Posts: 104
Joined: Sat 29 Nov, 2014 7:39 am

v15 on macOS - fail to compile

Post by startmenu » Thu 27 Jun, 2019 12:59 pm

I tried to compile PCem v15 on macOS 10.14. Though ./configure reported "checking for off64_t x86_64... no", it did generate an Makefile. And I saw these...

Code: Select all

esdi_at.c:110:35: error: unknown type name 'off64_t'; did you mean 'off_t'?
int esdi_get_sector(esdi_t *esdi, off64_t *addr)
                                  ^~~~~~~
                                  off_t
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_off_t.h:31:33: note: 
      'off_t' declared here
typedef __darwin_off_t          off_t;
                                ^
esdi_at.c:129:29: error: use of undeclared identifier 'off64_t'
                *addr = ((((off64_t) esdi->cylinder * heads) + esdi->head) *
                            ^
esdi_at.c:137:29: error: use of undeclared identifier 'off64_t'
                *addr = ((((off64_t) esdi->cylinder * heads) + esdi->head) *
                            ^
esdi_at.c:144:29: error: use of undeclared identifier 'off64_t'
                *addr = ((((off64_t) c * drive->hdd_file.hpc) + h) *
                            ^
esdi_at.c:420:9: error: unknown type name 'off64_t'; did you mean 'off_t'?
        off64_t addr;
        ^~~~~~~
        off_t
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_off_t.h:31:33: note: 
      'off_t' declared here
typedef __darwin_off_t          off_t;
                                ^
5 errors generated.
make[1]: *** [pcem-esdi_at.o] Error 1
make: *** [all-recursive] Error 1
it seems that Clang doesn't understand off64_t

Post Reply