1. 06 Apr, 2019 1 commit
  2. 19 Mar, 2019 1 commit
  3. 14 Mar, 2019 1 commit
    • Matt Selsky's avatar
      Make sure to include config.h in tests/ntpd/nts.c · b525ad6a
      Matt Selsky authored
      Otherwise header files are included without our local symbols that control which other symbols are exposed
      
      In this case, the result of trying to build on macOS was:
      In file included from ../../tests/ntpd/nts.c:1:
      In file included from ../../include/ntpd.h:13:
      In file included from ../../include/ntp.h:15:
      ../../include/ntp_stdlib.h:135:15: error: expected parameter declarator
      extern  size_t  strlcpy(char *dst, const char *src, size_t siz);
                      ^
      /usr/include/secure/_string.h:108:47: note: expanded from macro 'strlcpy'
                      __builtin___strlcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                                                                  ^
      /usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
                                                                   ^
      /usr/include/secure/_common.h:30:32: note: expanded from macro '_USE_FORTIFY_LEVEL'
                                     ^
      In file included from ../../tests/ntpd/nts.c:1:
      In file included from ../../include/ntpd.h:13:
      In file included from ../../include/ntp.h:15:
      ../../include/ntp_stdlib.h:135:15: error: expected ')'
      /usr/include/secure/_string.h:108:47: note: expanded from macro 'strlcpy'
                      __builtin___strlcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                                                                  ^
      /usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
                                                                   ^
      /usr/include/secure/_common.h:30:32: note: expanded from macro '_USE_FORTIFY_LEVEL'
                                     ^
      ../../include/ntp_stdlib.h:135:15: note: to match this '('
      /usr/include/secure/_string.h:108:47: note: expanded from macro 'strlcpy'
                      __builtin___strlcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                                                                  ^
      /usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
                                                          ^
      In file included from ../../tests/ntpd/nts.c:1:
      In file included from ../../include/ntpd.h:13:
      In file included from ../../include/ntp.h:15:
      ../../include/ntp_stdlib.h:135:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
      extern  size_t  strlcpy(char *dst, const char *src, size_t siz);
                      ^
      /usr/include/secure/_string.h:108:47: note: expanded from macro 'strlcpy'
                      __builtin___strlcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                                                                  ^
      /usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz'
                                    ^
      In file included from ../../tests/ntpd/nts.c:1:
      In file included from ../../include/ntpd.h:13:
      In file included from ../../include/ntp.h:15:
      ../../include/ntp_stdlib.h:135:15: error: conflicting types for '__builtin___strlcpy_chk'
      /usr/include/secure/_string.h:108:3: note: expanded from macro 'strlcpy'
                      __builtin___strlcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                      ^
      ../../include/ntp_stdlib.h:135:15: note: '__builtin___strlcpy_chk' is a builtin with type 'unsigned long (char *, const char *, unsigned long, unsigned long)'
      /usr/include/secure/_string.h:108:3: note: expanded from macro 'strlcpy'
                      __builtin___strlcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                      ^
      In file included from ../../tests/ntpd/nts.c:1:
      In file included from ../../include/ntpd.h:13:
      In file included from ../../include/ntp.h:15:
      ../../include/ntp_stdlib.h:145:15: error: expected parameter declarator
      extern  size_t  strlcat(char *dst, const char *src, size_t siz);
                      ^
      /usr/include/secure/_string.h:115:47: note: expanded from macro 'strlcat'
                      __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                                                                  ^
      /usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
                                                                   ^
      /usr/include/secure/_common.h:30:32: note: expanded from macro '_USE_FORTIFY_LEVEL'
                                     ^
      In file included from ../../tests/ntpd/nts.c:1:
      In file included from ../../include/ntpd.h:13:
      In file included from ../../include/ntp.h:15:
      ../../include/ntp_stdlib.h:145:15: error: expected ')'
      /usr/include/secure/_string.h:115:47: note: expanded from macro 'strlcat'
                      __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                                                                  ^
      /usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
                                                                   ^
      /usr/include/secure/_common.h:30:32: note: expanded from macro '_USE_FORTIFY_LEVEL'
                                     ^
      ../../include/ntp_stdlib.h:145:15: note: to match this '('
      /usr/include/secure/_string.h:115:47: note: expanded from macro 'strlcat'
                      __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                                                                  ^
      /usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
                                                          ^
      In file included from ../../tests/ntpd/nts.c:1:
      In file included from ../../include/ntpd.h:13:
      In file included from ../../include/ntp.h:15:
      ../../include/ntp_stdlib.h:145:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
      extern  size_t  strlcat(char *dst, const char *src, size_t siz);
                      ^
      /usr/include/secure/_string.h:115:47: note: expanded from macro 'strlcat'
                      __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                                                                  ^
      /usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz'
                                    ^
      In file included from ../../tests/ntpd/nts.c:1:
      In file included from ../../include/ntpd.h:13:
      In file included from ../../include/ntp.h:15:
      ../../include/ntp_stdlib.h:145:15: error: conflicting types for '__builtin___strlcat_chk'
      /usr/include/secure/_string.h:115:3: note: expanded from macro 'strlcat'
                      __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                      ^
      ../../include/ntp_stdlib.h:145:15: note: '__builtin___strlcat_chk' is a builtin with type 'unsigned long (char *, const char *, unsigned long, unsigned long)'
      /usr/include/secure/_string.h:115:3: note: expanded from macro 'strlcat'
                      __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                      ^
      2 warnings and 6 errors generated.
      b525ad6a
  4. 12 Mar, 2019 1 commit
  5. 09 Mar, 2019 2 commits
  6. 08 Mar, 2019 1 commit
  7. 05 Mar, 2019 3 commits
  8. 01 Mar, 2019 1 commit
  9. 23 Feb, 2019 2 commits
  10. 21 Feb, 2019 10 commits
  11. 13 Feb, 2019 1 commit
  12. 08 Feb, 2019 1 commit
  13. 07 Feb, 2019 1 commit
  14. 06 Feb, 2019 1 commit
  15. 05 Feb, 2019 2 commits
  16. 04 Feb, 2019 4 commits
  17. 03 Feb, 2019 1 commit
  18. 02 Feb, 2019 1 commit
  19. 26 Jan, 2019 2 commits
  20. 24 Jan, 2019 1 commit
  21. 18 Jan, 2019 2 commits