Commit Graph

7 Commits

Author SHA1 Message Date
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
Darryl L. Miles dc2de91668 finds.c: constify file 2025-07-27 12:49:54 -04:00
Darryl L. Miles 1f9ce81154 ext2sim: Makefile target for: finds sim2simp
Not a serious attempt to make these work but they appear to compile
so this helps CI to cover as much code as possible.

ext2sim_main standalone does not link (probably due to unclean cross
module dependencies that now exist due to libutil.a being a heap where
anything with no modular home ends up)
2025-07-27 12:49:54 -04:00
Darryl L. Miles 2f2fd85af0 ext2sim: fixup prototypes for TxError() MainExit()
Correct return and argument types.
Use of <stdarg.h> with modern compiler.
2025-07-27 12:49:54 -04:00
Darryl L. Miles bb6e55efb1 ext2sim: Ensure main() have return type and arguments 2025-07-27 12:49:54 -04:00
Darryl L. Miles 22e8ab847c K&R ext2sim/*.c: bulk function implementation conversion
K&R obsolete syntax removal for C23 compatibility series
2025-07-27 12:49:54 -04:00
Tim Edwards 231a299b16 Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00