Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932407 - net-misc/freerdp-2.11.7[client,X] fails to compile: xf_graphics.c:441:57: error: pointer/integer type mismatch in conditional expression [-Wint-conversion]
Summary: net-misc/freerdp-2.11.7[client,X] fails to compile: xf_graphics.c:441:57: err...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
: 932461 (view as bug list)
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-05-22 07:27 UTC by NHO
Modified: 2024-05-22 21:10 UTC (History)
3 users (show)

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


Attachments
patch (freerdp-2.11.7-incompatible-pointer.patch,396 bytes, patch)
2024-05-22 07:33 UTC, NHO
Details | Diff
build log (freerdp-2.11.7a.log,621.97 KB, text/x-log)
2024-05-22 14:22 UTC, Chris Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NHO 2024-05-22 07:27:07 UTC
/var/tmp/portage/net-misc/freerdp-2.11.7/work/freerdp-2.11.7/client/X11/xf_graphics.c: In function ‘xf_Pointer_New’:
/var/tmp/portage/net-misc/freerdp-2.11.7/work/freerdp-2.11.7/client/X11/xf_graphics.c:441:57: error: pointer/integer type mismatch in conditional expression [-Wint-conversion]
  441 |         WLog_DBG(TAG, "%s: %ld", __func__, rc ? pointer : -1);
      |                                                         ^
/var/tmp/portage/net-misc/freerdp-2.11.7/work/freerdp-2.11.7/winpr/include/winpr/wlog.h:125:57: note: in definition of macro ‘WLog_Print’
  125 |                                           __FUNCTION__, __VA_ARGS__);                              \
      |                                                         ^~~~~~~~~~~
/var/tmp/portage/net-misc/freerdp-2.11.7/work/freerdp-2.11.7/winpr/include/winpr/wlog.h:180:28: note: in expansion of macro ‘WLog_Print_tag’
  180 | #define WLog_DBG(tag, ...) WLog_Print_tag(tag, WLOG_DEBUG, __VA_ARGS__)
      |                            ^~~~~~~~~~~~~~
/var/tmp/portage/net-misc/freerdp-2.11.7/work/freerdp-2.11.7/client/X11/xf_graphics.c:441:9: note: in expansion of macro ‘WLog_DBG’
  441 |         WLog_DBG(TAG, "%s: %ld", __func__, rc ? pointer : -1);
      |         ^~~~~~~~


Reproducible: Always
Comment 1 NHO 2024-05-22 07:33:57 UTC
Created attachment 893704 [details, diff]
patch
Comment 2 Agostino Sarubbo gentoo-dev 2024-05-22 07:52:16 UTC
Please add the full build log.

as per https://github.com/FreeRDP/FreeRDP/issues/10177#issuecomment-2106000889 please make a PR upstream.

Since this is an oldstable, the best is inject -Wno-int-conversion as done for incompatible-pointer-types here:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60fc3847889e2aec2dad46dfe47f078a294c3ed8
Comment 3 Mike Gilbert gentoo-dev 2024-05-22 14:08:05 UTC
*** Bug 932461 has been marked as a duplicate of this bug. ***
Comment 4 Chris Smith 2024-05-22 14:22:31 UTC
Created attachment 893848 [details]
build log
Comment 6 Mike Gilbert gentoo-dev 2024-05-22 17:27:18 UTC
Thanks for looking into this, I sent a patch upstream.
Comment 7 Larry the Git Cow gentoo-dev 2024-05-22 17:33:43 UTC
The bug has been closed via the following commit(s):

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

commit 836bf3fddd54b483b4a68a0ac7b2ec2a2b3d0805
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2024-05-22 17:31:07 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-05-22 17:33:24 +0000

    net-misc/freerdp: fix pointer/integer type mismatch
    
    Closes: https://bugs.gentoo.org/932407
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 .../files/freerdp-2.11.7-type-mismatch.patch       | 24 ++++++++++++++++++++++
 net-misc/freerdp/freerdp-2.11.7.ebuild             |  1 +
 2 files changed, 25 insertions(+)
Comment 8 Larry the Git Cow gentoo-dev 2024-05-22 21:10:46 UTC
The bug has been referenced in the following commit(s):

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

commit 6343c03ccd88138d77e8c6fb644440e71133272b
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2024-05-22 21:10:07 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-05-22 21:10:07 +0000

    net-misc/freerdp: fix patch
    
    Bug: https://bugs.gentoo.org/932407
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 net-misc/freerdp/files/freerdp-2.11.7-type-mismatch.patch | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)