[Bug 284488] emulators/wine-proton: Fails to build with GCC 14: error: assignment to 'caddr_t' {aka 'char *'} from 'INT_PTR' {aka 'long int'} makes pointer from integer without a cast [-Wint-conversion]

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 31 Jan 2025 14:51:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284488

            Bug ID: 284488
           Summary: emulators/wine-proton: Fails to build with GCC 14:
                    error: assignment to 'caddr_t' {aka 'char *'} from
                    'INT_PTR' {aka 'long int'} makes pointer from integer
                    without a cast [-Wint-conversion]
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://pkg-status.freebsd.org/gohan06/data/134amd64-d
                    efault-foo/2025-01-24_09h47m14s/logs/wine-proton-9.0.3
                    .log
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: salvadore@freebsd.org
                CC: iwtcex@gmail.com, vvd@FreeBSD.org
            Blocks: 281091
                CC: iwtcex@gmail.com
             Flags: maintainer-feedback?(iwtcex@gmail.com)

The port fails to build with GCC 14, which is about to become GCC_DEFAULT
version. This link can help: https://gcc.gnu.org/gcc-14/porting_to.html

Please note that a workaround has already been suggested in
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281091#c16 .

dlls/ntdll/unix/virtual.c: In function 'r_debug_add_module':
dlls/ntdll/unix/virtual.c:161:32: error: assignment to 'caddr_t' {aka 'char *'}
from 'INT_PTR' {aka 'long int'} makes pointer from integer without a cast
[-Wint-conversion]
  161 |     if (ptr) entry->map.l_addr = offset;
      |                                ^
dlls/ntdll/unix/virtual.c:165:27: error: assignment to 'caddr_t' {aka 'char *'}
from 'INT_PTR' {aka 'long int'} makes pointer from integer without a cast
[-Wint-conversion]
  165 |         entry->map.l_addr = offset;
      |                           ^


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281091
[Bug 281091] [exp-run] Update GCC_DEFAULT to 14 etc.
-- 
You are receiving this mail because:
You are the assignee for the bug.