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

Fails to build on 32bit arch #80

Open
mcepl opened this issue Oct 3, 2024 · 2 comments
Open

Fails to build on 32bit arch #80

mcepl opened this issue Oct 3, 2024 · 2 comments

Comments

@mcepl
Copy link

mcepl commented Oct 3, 2024

[   16s] cc -c -o build/dbd_mysql_statement.o dbd/mysql/statement.c -I/usr/include/lua5.1 -fomit-frame-pointer -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -fPIC -I/usr/include/lua5.4 -shared -fPIC -DPIC -std=c99  -I. -shared  -I/usr/include/mysql -lmysqlclient
[   16s] dbd/mysql/statement.c: In function ‘statement_execute’:
[   16s] dbd/mysql/statement.c:271:40: error: assignment to ‘long unsigned int *’ from incompatible pointer type ‘size_t *’ {aka ‘unsigned int *’} [-Wincompatible-pointer-types]
[   16s]   271 |                         bind[i].length = str_len;
[   16s]       |                                        ^
[   16s] make: *** [Makefile:82: build/dbd_mysql_statement.o] Error 1

Complete build log with all packages used and steps taken to reproduce.

@sparked435
Copy link
Collaborator

This looks like a build against 0.7.3 which has a known failure for MySQL on 32-bit platforms. I suspect this was fixed by #76.

@sparked435
Copy link
Collaborator

@mcepl Published 0.7.4; please see if that resolves your problem.

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