[Midnightbsd-cvs] [MidnightBSD/src] bc8382: usr.bin/sqlite3: link the shell against libm (#382)

Lucas Holt noreply at github.com
Thu Jun 11 20:42:01 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: bc838266502102345a9ded727e087f18e712ebcb
      https://github.com/MidnightBSD/src/commit/bc838266502102345a9ded727e087f18e712ebcb
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-06-11 (Thu, 11 Jun 2026)

  Changed paths:
    M usr.bin/sqlite3/Makefile

  Log Message:
  -----------
  usr.bin/sqlite3: link the shell against libm (#382)

The sqlite3 shell's generate_series extension (seriesCeil/seriesFloor in
contrib/sqlite3/shell.c) references ceil() and floor(); under the PIE
shell link these resolve to libm symbols. The Makefile only linked
libsqlite3, so sqlite3.full failed with:

    ld: error: undefined symbol: ceil
    ld: error: undefined symbol: floor
        >>> referenced by shell.c ... seriesFilter

Add LIBADD+= m. Verified: usr.bin/sqlite3 now builds and links cleanly.

Co-authored-by: Claude Opus 4.8 <noreply at anthropic.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications


More information about the Midnightbsd-cvs mailing list