Checking patch elf/dl-lookup.c... Hunk #1 succeeded at 345 (offset -1 lines). Hunk #2 succeeded at 544 (offset 16 lines). Hunk #3 succeeded at 584 (offset 16 lines). Checking patch include/atomic.h... Hunk #1 succeeded at 519 (offset 400 lines). Checking patch malloc/malloc-debug.c... Hunk #5 succeeded at 368 (offset 7 lines). Checking patch nptl/pthread_sigqueue.c... Checking patch nscd/nscd_helper.c... error: while searching for: struct hashentry *here = (struct hashentry *) (mapped->data + work); ref_t here_key, here_packet; #if !_STRING_ARCH_unaligned /* Although during garbage collection when moving struct hashentry records around we first copy from old to new location and then adjust pointer from previous hashentry to it, there is no barrier between those memory writes. It is very unlikely to hit it, so check alignment only if a misaligned load can crash the application. */ if ((uintptr_t) here & (__alignof__ (*here) - 1)) return NULL; #endif if (type == here->type && keylen == here->len && (here_key = atomic_forced_read (here->key)) + keylen <= datasize && memcmp (key, mapped->data + here_key, keylen) == 0 && ((here_packet = atomic_forced_read (here->packet)) + sizeof (struct datahead) <= datasize)) { /* We found the entry. Increment the appropriate counter. */ struct datahead *dh = (struct datahead *) (mapped->data + here_packet); #if !_STRING_ARCH_unaligned if ((uintptr_t) dh & (__alignof__ (*dh) - 1)) return NULL; #endif /* See whether we must ignore the entry or whether something is wrong because garbage collection is in progress. */ error: patch failed: nscd/nscd_helper.c:465 error: nscd/nscd_helper.c: patch does not apply