[Midnightbsd-cvs] [MidnightBSD/src] 47aac4: usr.bin/sqlite3: link the shell against libm

Lucas Holt noreply at github.com
Thu Jun 11 20:37:56 EDT 2026


  Branch: refs/heads/fix/sqlite3-shell-libm-stable41
  Home:   https://github.com/MidnightBSD/src
  Commit: 47aac4a3a4708f43f7e937375fabf375b75c5b85
      https://github.com/MidnightBSD/src/commit/47aac4a3a4708f43f7e937375fabf375b75c5b85
  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

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