Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite3-binding.c: In function ‘sqlite3Fts5IndexQuery’ #2

Open
Bouni opened this issue Jul 11, 2022 · 1 comment
Open

sqlite3-binding.c: In function ‘sqlite3Fts5IndexQuery’ #2

Bouni opened this issue Jul 11, 2022 · 1 comment

Comments

@Bouni
Copy link

Bouni commented Jul 11, 2022

I run shiori as a docker container for a while now but used radhifadlillah/shiori from hub.docker.com.
Now I wanted to use the ghcr.io/go-shiori/shiori:latest container instead to get the latest version and improvements.

That requires a the use of fts5 which requires this tool if I understodd this correctly.

But If i want to build it I run into this error:

go: downloading github.com/mattn/go-sqlite3 v1.14.11
go: downloading github.com/rs/zerolog v1.26.1
go: downloading github.com/jmoiron/sqlx v1.3.4
github.com/jmoiron/sqlx/reflectx
github.com/rs/zerolog/internal/json
github.com/mattn/go-sqlite3
github.com/jmoiron/sqlx
github.com/rs/zerolog
github.com/rs/zerolog/log
# github.com/mattn/go-sqlite3
sqlite3-binding.c: In function ‘sqlite3Fts5IndexQuery’:
sqlite3-binding.c:228445:18: warning: ‘memcpy’ specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
228445 |     if( nToken ) memcpy(&buf.p[1], pToken, nToken);
       |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
command-line-arguments

It would be awesome if you could provide a ready to use binary with this repo :-) or at least give me a hint on how to build this tool.

@fmartingr
Copy link
Member

Hey @Bouni , apologies for the huge delay but I always forget that Github does not automatically notify of new issues on a new repo...

You have the binary in the 1.5.1 release for shiori. Do you need it for another architecture?

Building using go build -tags fts5 should suffice, as stated in the README.

Let me know if you managed or if this is still relevant to you, and again, apologies for not noticing sooner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants