Closed webstey closed 8 months ago
Thanks, I will try to reproduce.
The same issue happens on Fedora 36. I could compile with the above workaround.
I think this is due to these fcntl macros being predefined in GNU's glibc, but not in Apple's/BSD's, so no such compilation error on most Mac setups. I've recently guarded the (re-)definitions with an #ifndef
that should prevent this error on platforms that use GNU glibc or otherwise have the constants already defined. Please reply here or open a new issue if this persists.
Thanks for the fix. Compilation works for me now.
Attempting to build on ubuntuy 20.04, get errors from include/apfs/jconst.c about macros on lines 176-184 being redfined (previous definition /usr/include/fcntl.h).
gcc (Ubuntu 9.4.0-1ubuntu1-20.04.1) 9.4.0, Gnu Make 4.2.1, ldd (Ubuntu GLIBC 2.31-0ubuntu9.9) 2.31
I was able to make it build by commenting out the offending lines 176-184 from jconst.c and adding a #include of in include/drat/string/j.c , but I suspect this is a workaround as opposed to a fix (did not delve into it any further after it built).
Sample output from make: