Skip to content

sqlite3 on SmartOS: wrong errno in threads? #425

Open

Description

@lispstudent

Hi,

I am new to SmartOS, so I may be wrong.

sqlite3-3.54.0 from pkgsrc.smartos.org (trunk, x86_64) cannot
create a new database file from a thread other than the main one.
It says "unable to open database file". Files that exist open fine,
and the sqlite3 command line works.

I think libsqlite3.so uses the global errno, not the thread's:

$ elfdump -s /opt/local/lib/libsqlite3.so | grep errno
... OBJT GLOB D 0 UNDEF errno

pkg_info -B shows no -pthread or -D_REENTRANT in CFLAGS.

Could it be built with -pthread?

Thanks!

Activity

  1. added a commit that references this issue on Nov 9, 2026
  2. added a commit that references this issue on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions