Skip to content

Tracking issue: Ubuntu 22.04 compiler error for sqlite3 #20

@jefft0

Description

@jefft0

Building weshnet on Ubuntu 22.04 gives the compiler error shown below. This is a known issue introduced in a recent version of sqlite3. The issue says that it is fixed in version 3.38.0. On my Ubuntu 22.04, apt list libsqlite3-dev shows version 3.37.2. So, I think we just have to wait for apt to use the newer version.

# github.com/mutecomm/go-sqlcipher/v4
In file included from /usr/include/string.h:535,
                 from sqlite3.c:14180:
In function ‘memcpy’,
    inlined from ‘sqlite3Fts5IndexQuery’ at sqlite3.c:226667:18:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: warning: ‘__builtin_memcpy’ specified bound 
18446744073709551615 excee\
ds maximum object size 9223372036854775807 [-Wstringop-overflow=]
   29 |   return __builtin___memcpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   30 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogbugSomething isn't workingverifiedBug is verified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions