Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939443 - dev-lang/php-8.2.20 fails with use flag mysqli - sapis-build/cli/ext/mysqli/mysqli_api.c:1806:27: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Summary: dev-lang/php-8.2.20 fails with use flag mysqli - sapis-build/cli/ext/mysqli/m...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-09-11 01:34 UTC by hangint3n
Modified: 2024-09-22 12:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log for php-8 (php_build.log,575.58 KB, text/x-log)
2024-09-11 01:34 UTC, hangint3n
Details
Emerge --info (emerge_info,9.17 KB, text/plain)
2024-09-12 17:08 UTC, hangint3n
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hangint3n 2024-09-11 01:34:15 UTC
Created attachment 902595 [details]
build.log for php-8

Was trying to install php with mysqli use flag and the emerge would fail.
Comment 1 Mike Gilbert gentoo-dev 2024-09-11 15:57:29 UTC
Please provide emerge --info.

> /var/tmp/portage/dev-lang/php-8.2.20/work/sapis-build/cli/ext/mysqli/mysqli_api.c: In function ‘zif_mysqli_stmt_attr_get’:
> /var/tmp/portage/dev-lang/php-8.2.20/work/sapis-build/cli/ext/mysqli/mysqli_api.c:1806:27: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
>  1806 |                 value = *((my_bool *)&value);
>       |                          ~^~~~~~~~~~~~~~~~~~
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-11 21:39:19 UTC
https://github.com/php/php-src/commit/47f80ffc77f2b728b0973ae671251859b2a8ab53 should fix it.

I'll block the LTO tracker as we tell people to set these specific -Werror=foos for safety with it, even though PHP has it filtered.
Comment 3 hangint3n 2024-09-12 17:08:45 UTC
Created attachment 902714 [details]
Emerge --info

Forgot to add this... not sure it is useful or not
Comment 4 Larry the Git Cow gentoo-dev 2024-09-22 12:20:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7b3389a7bef440155754522f6592f6abdf8af9c

commit a7b3389a7bef440155754522f6592f6abdf8af9c
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2024-09-22 03:18:17 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2024-09-22 12:16:32 +0000

    dev-lang/php: add 8.2.23, drop 8.2.22
    
    Closes: https://bugs.gentoo.org/939443
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 dev-lang/php/Manifest                              |  2 +-
 dev-lang/php/files/php-8.2.23-fix-ub.patch         | 32 ++++++++++++++++++++++
 .../php/{php-8.2.22.ebuild => php-8.2.23.ebuild}   |  1 +
 3 files changed, 34 insertions(+), 1 deletion(-)