Skip to content

Static build on Linux fails due to use of dlopen by bundled sqlite3 #3020

@joachimmetz

Description

@joachimmetz

Added CI test for static build on Linux #3019 result https://github.com/sleuthkit/sleuthkit/actions/runs/11201222667/job/31135887709?pr=3019#step:12:2924

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libsqlite3.a(os_unix.o): in function `unixDlOpen':
(.text+0x8ad): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:3624: unit_tests/runner] Error 1
make[1]: Leaving directory '/home/runner/work/sleuthkit/sleuthkit'
make: *** [Makefile:7105: check-am] Error 2

Which appears to be called in tsk/auto/sqlite3.c

Recommend bundled sqlite3 not to be build when --enable-static is set or add something like --without-sqlite3

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