Bug 161141 - Build fails: ma_client_plugin.c: error: initialization of ‘struct st_mysql_client_plugin *’ from incompatible pointer type ‘struct st_mysql_client_plugin_AUTHENTICATION *’ [-Wincompatible-pointer-types]
Summary: Build fails: ma_client_plugin.c: error: initialization of ‘struct st_mysql_c...
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:24.8.0
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-16 20:51 UTC by Dave Gilbert
Modified: 2024-05-21 18:56 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
config.log (177.34 KB, text/plain)
2024-05-16 20:51 UTC, Dave Gilbert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Gilbert 2024-05-16 20:51:33 UTC
Created attachment 194159 [details]
config.log

/discs/fast/core/workdir/UnpackedTarball/mariadb-connector-c/libmariadb/ma_client_plugin.c:87:207: error: initialization of ‘struct st_mysql_client_plugin *’ from incompatible pointer type ‘struct st_mysql_client_plugin_AUTHENTICATION *’ [-Wincompatible-pointer-types]
   87 |    (struct st_mysql_client_plugin *)&pvio_socket_client_plugin, (struct st_mysql_client_plugin *)&caching_sha2_password_client_plugin, (struct st_mysql_client_plugin *)&mysql_native_password_client_plugin, (struct st_mysql_client_plugin_AUTHENTICATION *)&auth_gssapi_client_client_plugin,
      |                                                                                                                                                                                                               ^
/discs/fast/core/workdir/UnpackedTarball/mariadb-connector-c/libmariadb/ma_client_plugin.c:87:207: note: (near initialization for ‘mysql_client_builtins[3]’)
make[1]: *** [/discs/fast/core/solenv/gbuild/LinkTarget.mk:366: /discs/fast/core/workdir/GenCObject/UnpackedTarball/mariadb-connector-c/libmariadb/ma_client_plugin.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:294: build] Error 2

Host: Fedora 40, x86-64
configured with:
./configure --srcdir=/discs/fast/core --enable-option-checking=fatal --enable-debug

tried disablign gssapi; didn't help
Tried installing mariadb-devel - didn't help.
Comment 1 Dave Gilbert 2024-05-16 20:55:17 UTC
Using --with-system-mariadb seems to be the workaround.
Comment 2 Buovjaga 2024-05-17 06:58:07 UTC
Build issues should be reported to the dev list
https://wiki.documentfoundation.org/QA/BugReport#Not_all_bugs_go_to_Bugzilla

so you could at least send a mail referencing this. It's true that inlining a full config.log to a mail is a bit much :)
Comment 3 Buovjaga 2024-05-18 11:38:53 UTC
Same issue observed on #libreoffice-dev, so setting to NEW
Comment 4 Commit Notification 2024-05-19 04:38:22 UTC
Printf Debugging committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/cc389f64a500fde75a632173cba9b9e1ee5abb86

tdf#150082 tdf#161141 fix typecasting error in Makefile

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Julien Nabet 2024-05-21 07:34:05 UTC
Dave: following printfdebugging's fix, could you give a new try with a build containing the fix?
Comment 6 Dave Gilbert 2024-05-21 14:20:35 UTC
Yep, works for me now! Thanks!
Comment 7 Julien Nabet 2024-05-21 18:56:42 UTC
Thank you for the feedback!
Let's put this one to VERIFIED then.