bug#41467: Compiling extensions using Guile 3.0.2 headers doesn't work with clang without -std=c11

2023-07-31 Thread Sevan Janiyan
Hi, Redefinitions are part of C11 and compilers which support C11 and default to C11 mode would have masked the issue which is why we are here. Because of the redefinitions, it is not possible to build Guile with older compilers which only support C99. I hit this issue attempting to build

bug#64984: call to date(1) uses non-portable flag

2023-07-31 Thread Sevan Janiyan
Hi, In libguile/Makefile there is a call to date(1) for recording the build stamp as so: @BUILD_DATE="$${SOURCE_DATE_EPOCH:-`date '+%s'`}" ; \ echo ' { "buildstamp","'`date -u +'%Y-%m-%d %T' -d @$$BUILD_DATE`'" }, \' >> libpath.tmp The -d flag doesn't necessarily mean the same thing

bug#41467: Compiling extensions using Guile 3.0.2 headers doesn't work with clang without -std=c11

2023-08-01 Thread Sevan Janiyan
On 01/08/2023 02:38, Sevan Janiyan wrote: There's more issues after addressing these. I will follow up with a patch of what I took out for the build to succeed (not necessarily correct but to highlight where the issues are). Here's the changes related to redefinitions I made in order

bug#41467: Compiling extensions using Guile 3.0.2 headers doesn't work with clang without -std=c11

2023-08-01 Thread Sevan Janiyan
On 01/08/2023 12:11, Sevan Janiyan wrote: The MAX macro in socket.h conflicts with the MAX macro in the system header files. Forgot to mention, the header inclusions in the diff are because scm_t_dynstack & scm_t_dynstack typedefs were commented out of libguile/scm.h (resol