Summary: | net-misc/freerdp-2.11.6 fails to compile: info.c:88:39: error: initialization of const WCHAR {aka const short unsigned int } from incompatible pointer type BYTE {aka unsigned char } [-Wincompatible-pointer-types] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Mike Gilbert <floppym> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | chris, flaviocamilo, gordon.parton, julien.dlq, jy6x2b32pie9, marduk |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/FreeRDP/FreeRDP/issues/10177 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 921252 | ||
Bug Blocks: | 870412 | ||
Attachments: | build.log |
Description
Agostino Sarubbo
2024-03-24 17:03:04 UTC
Created attachment 888453 [details]
build.log
build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: -- Package 'libavresample', required by 'virtual:world', not found FAILED: libfreerdp/CMakeFiles/freerdp.dir/core/info.c.o /var/tmp/portage/net-misc/freerdp-2.11.5-r2/work/freerdp-2.11.5/libfreerdp/core/info.c:88:39: error: initialization of ‘const WCHAR *’ {aka ‘const short unsigned int *’} from incompatible pointer type ‘BYTE *’ {aka ‘unsigned char *’} [-Wincompatible-pointer-types] /var/tmp/portage/net-misc/freerdp-2.11.6/work/freerdp-2.11.6/winpr/libwinpr/crt/unicode.c: In function ‘MultiByteToWideChar’: /var/tmp/portage/net-misc/freerdp-2.11.6/work/freerdp-2.11.6/winpr/libwinpr/crt/unicode.c:218:63: error: passing argument 3 of ‘ucnv_convert’ from incompatible pointer type [-Wincompatible-pointer-types] 218 | ucnv_convert("UTF-16LE", "UTF-8", targetStart, targetCapacity * sizeof(WCHAR), | ^~~~~~~~~~~ | | | LPWSTR {aka short unsigned int *} In file included from /var/tmp/portage/net-misc/freerdp-2.11.6/work/freerdp-2.11.6/winpr/libwinpr/crt/unicode.c:34: /usr/include/unicode/ucnv.h:1581:20: note: expected ‘char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’} 1581 | char *target, | ~~~~~~^~~~~~ /var/tmp/portage/net-misc/freerdp-2.11.6/work/freerdp-2.11.6/winpr/libwinpr/crt/unicode.c: In function ‘WideCharToMultiByte’: /var/tmp/portage/net-misc/freerdp-2.11.6/work/freerdp-2.11.6/winpr/libwinpr/crt/unicode.c:356:83: error: passing argument 5 of ‘ucnv_convert’ from incompatible pointer type [-Wincompatible-pointer-types] 356 | targetLength = ucnv_convert("UTF-8", "UTF-16LE", NULL, 0, lpWideCharStr, | ^~~~~~~~~~~~~ | | | LPCWSTR {aka const short unsigned int *} /usr/include/unicode/ucnv.h:1583:26: note: expected ‘const char *’ but argument is of type ‘LPCWSTR’ {aka ‘const short unsigned int *’} 1583 | const char *source, | ~~~~~~~~~~~~^~~~~~ /var/tmp/portage/net-misc/freerdp-2.11.6/work/freerdp-2.11.6/winpr/libwinpr/crt/unicode.c:363:53: error: passing argument 5 of ‘ucnv_convert’ from incompatible pointer type [-Wincompatible-pointer-types] 363 | lpWideCharStr, cchWideChar * sizeof(WCHAR), &error); | ^~~~~~~~~~~~~ | | | LPCWSTR {aka const short unsigned int *} /usr/include/unicode/ucnv.h:1583:26: note: expected ‘const char *’ but argument is of type ‘LPCWSTR’ {aka ‘const short unsigned int *’} 1583 | const char *source, | ~~~~~~~~~~~~^~~~~~ That's with 2.11.6 upstream bug https://github.com/FreeRDP/FreeRDP/issues/10177 gcc14_tinderbox has reproduced this issue with version 2.11.6 - Updating summary. *** Bug 932383 has been marked as a duplicate of this bug. *** *** Bug 932384 has been marked as a duplicate of this bug. *** The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60fc3847889e2aec2dad46dfe47f078a294c3ed8 commit 60fc3847889e2aec2dad46dfe47f078a294c3ed8 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2024-05-22 02:15:15 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2024-05-22 02:15:15 +0000 net-misc/freerdp: add -Wno-error=incompatible-pointer-types to CFLAGS Bug: https://bugs.gentoo.org/927731 Signed-off-by: Mike Gilbert <floppym@gentoo.org> net-misc/freerdp/freerdp-2.11.7.ebuild | 3 +++ net-misc/freerdp/freerdp-2.9999.ebuild | 3 +++ 2 files changed, 6 insertions(+) |