weshnet icon indicating copy to clipboard operation
weshnet copied to clipboard

Tracking issue: Ubuntu 22.04 compiler error for sqlite3

Open jefft0 opened this issue 2 years ago • 0 comments

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));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~

jefft0 avatar Mar 02 '23 11:03 jefft0