Changes between Initial Version and Version 1 of Ticket #65161, comment 1


Ignore:
Timestamp:
May 12, 2022, 1:47:53 AM (2 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #65161, comment 1

    initial v1  
    2323I don't see anything in the nano build that sets `_POSIX_C_SOURCE`, however I do see `-D_APPLE_C_SOURCE -D_XOPEN_SOURCE=600` being used, and in /usr/include/sys/cdefs.h I see that if `_XOPEN_SOURCE` is defined and great than or equal to 500, then `_POSIX_C_SOURCE` will be defined.
    2424
    25 So the problem seems to be that when nano's configure script checked to see what members were in the the `stat` structure, it didn't use `-D_XOPEN_SOURCE=600` so it saw that `st_atimespec` et al were available, but then when it tried to compile the actual program it did use `-D_XOPEN_SOURCE=600` which made `st_atimespec` et al unavailable. nano needs to use the same flags at configure time as it does at build time.
     25So the problem seems to be that when nano's configure script checked to see what members were in the `stat` structure, it didn't use `-D_XOPEN_SOURCE=600` so it saw that `st_atimespec` et al were available, but then when it tried to compile the actual program it did use `-D_XOPEN_SOURCE=600` which made `st_atimespec` et al unavailable. nano needs to use the same flags at configure time as it does at build time.
    2626
    2727From config.log, it looks like `-D_XOPEN_SOURCE=600` is coming from ncurses: