)]}'
{
  "commit": "b737d3047cc56b5e2fbb5c8390c4ed031eaf5ec0",
  "tree": "652788169b81ba887dbb0d39c37070c61f3538b6",
  "parents": [
    "ffa5352c0c0f735541e69fe6d9a192d82e7d418c"
  ],
  "author": {
    "name": "Rainer Orth",
    "email": "ro@CeBiTec.Uni-Bielefeld.DE",
    "time": "Wed Jul 07 13:44:31 2021 +0200"
  },
  "committer": {
    "name": "Rainer Orth",
    "email": "ro@CeBiTec.Uni-Bielefeld.DE",
    "time": "Wed Jul 07 13:49:27 2021 +0200"
  },
  "message": "Check for strnlen declaration to fix Solaris 10 build\n\nbinutils currently fails to compile on Solaris 10:\n\n/vol/src/gnu/binutils/hg/binutils-2.37-branch/git/bfd/opncls.c: In function \u0027bfd_get_debug_link_info_1\u0027:\n/vol/src/gnu/binutils/hg/binutils-2.37-branch/git/bfd/opncls.c:1231:16: error: implicit declaration of function \u0027strnlen\u0027 [-Werror\u003dimplicit-function-declaration]\n 1231 |\t  crc_offset \u003d strnlen (name, size) + 1;\n      |\t\t       ^~~~~~~\n/vol/src/gnu/binutils/hg/binutils-2.37-branch/git/bfd/opncls.c:1231:16: error: incompatible implicit declaration of built-in function \u0027strnlen\u0027 [-Werror]\n/vol/src/gnu/binutils/hg/binutils-2.37-branch/git/bfd/opncls.c: In function \u0027bfd_get_alt_debug_link_info\u0027:\n/vol/src/gnu/binutils/hg/binutils-2.37-branch/git/bfd/opncls.c:1319:20: error: incompatible implicit declaration of built-in function \u0027strnlen\u0027 [-Werror]\n 1319 |\t  buildid_offset \u003d strnlen (name, size) + 1;\n      |\t\t\t   ^~~~~~~\n\nand in a couple of other places.  The platform lacks strnlen, and while\nlibiberty.h can provide a fallback declaration, the necessary configure\ntest isn\u0027t run.\n\nFixed with the following patch.  Tested on i386-pc-solaris2.10.\n\n2021-07-06  Rainer Orth  \u003cro@CeBiTec.Uni-Bielefeld.DE\u003e\n\n\tbfd:\n\t* configure.ac: Check for strnlen declaration.\n\t* configure, config.in: Regenerate.\n\n\tbinutils:\n\t* configure.ac: Check for strnlen declaration.\n\t* configure, config.in: Regenerate.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "96bd8ff29d021c172da4cb2b01d2f4ea6501437a",
      "old_mode": 33188,
      "old_path": "bfd/ChangeLog",
      "new_id": "d96cc78870422b65cdecc8bbbd65154458632f44",
      "new_mode": 33188,
      "new_path": "bfd/ChangeLog"
    },
    {
      "type": "modify",
      "old_id": "6d46ea72a6c3a44a83cd386dc97db4522639466d",
      "old_mode": 33188,
      "old_path": "bfd/config.in",
      "new_id": "f54a3cacbea7eeba286d363ee9dfcb1a55efccd1",
      "new_mode": 33188,
      "new_path": "bfd/config.in"
    },
    {
      "type": "modify",
      "old_id": "daa51244369429f0ed97d00954af97fc6e1ab0d7",
      "old_mode": 33261,
      "old_path": "bfd/configure",
      "new_id": "24171d00344a900d333bdb058fa02aa0f72f1176",
      "new_mode": 33261,
      "new_path": "bfd/configure"
    },
    {
      "type": "modify",
      "old_id": "07a75ed162639427d8a9243dd6ce509bdfbec90c",
      "old_mode": 33188,
      "old_path": "bfd/configure.ac",
      "new_id": "fec067b21356799ecdb945f4ce172150624d3ec7",
      "new_mode": 33188,
      "new_path": "bfd/configure.ac"
    },
    {
      "type": "modify",
      "old_id": "77b7ac711e0300787f8e3db8aff5bae895205651",
      "old_mode": 33188,
      "old_path": "binutils/ChangeLog",
      "new_id": "be5fd77b8384be11940186fab592a6209ca591b5",
      "new_mode": 33188,
      "new_path": "binutils/ChangeLog"
    },
    {
      "type": "modify",
      "old_id": "e79967c5c14c8311dfc2d9a74c7a70c063173c52",
      "old_mode": 33188,
      "old_path": "binutils/config.in",
      "new_id": "e6fa66fc41b61d9fd9b656e5c979f5955534802a",
      "new_mode": 33188,
      "new_path": "binutils/config.in"
    },
    {
      "type": "modify",
      "old_id": "bf6461dab1e68cd89c03ad197c9a96e62b4ae86d",
      "old_mode": 33261,
      "old_path": "binutils/configure",
      "new_id": "82640b8b23468420a8a3735dbd4916a1c0529a21",
      "new_mode": 33261,
      "new_path": "binutils/configure"
    },
    {
      "type": "modify",
      "old_id": "b8ab642e06880031f7db1f7afde5ba434d5dc0b9",
      "old_mode": 33188,
      "old_path": "binutils/configure.ac",
      "new_id": "b2d0be00b60b073ea5b98af7290db2bde3106c6e",
      "new_mode": 33188,
      "new_path": "binutils/configure.ac"
    }
  ]
}
