magic/ext2sim
Darryl L. Miles 03ddc11d25 ext2sim: fix native "finds" build; drop phantom sim2simp target
Two long-standing breakages in `make -C ext2sim main`:

* finds.c included <string.h> *after* utils/magic.h.  magic.h defines the
  legacy SysV bcopy/bzero/bcmp compat macros in terms of memcpy/memset/
  memcmp; with a modern glibc that then declares those functions, the
  macro expansion collides ("conflicting types for 'memcpy'").  Include
  the C library headers before magic.h so the real prototypes win.

* the `main` target listed `sim2simp`, which has no source file and no
  rule (and `ext2sim_main` was already commented out as deprecated), so
  the target always failed.  Reduce `main` to the one real artifact,
  `finds`.

Verified: `make -C ext2sim -f .../ext2sim/Makefile main` now builds
`finds` cleanly (rc=0).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-26 14:54:11 -04:00
..
Makefile ext2sim: fix native "finds" build; drop phantom sim2simp target 2026-07-26 14:54:11 -04:00
ext2sim.c Final work on the first stage of the extresist overhaul. The 2026-01-28 14:31:38 -05:00
finds.c ext2sim: fix native "finds" build; drop phantom sim2simp target 2026-07-26 14:54:11 -04:00
sim2simp.c sim2simp.c: constify file 2025-07-27 12:49:54 -04:00
sim2spi Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00