Opened 6 weeks ago

Closed 5 weeks ago

#69540 closed defect (fixed)

libzzip @0.13.72: error: incompatible pointer to integer conversion

Reported by: rrobtoo (Robert K.) Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: sonoma haspatch Cc:
Port: libzzip

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Dear DevTeam,
The port upgrade outdated fails with the following error, but manual compilation of the newest version of libzzip 0.13.74 works just fine.

Please find below the error log:

:info:build /opt/ports/var/macports/build/_opt_portsq_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libzzip/libzzip/work/zziplib-0.13.72/zzip/mmapped.c:664:11: error: incompatible pointer to integer conversion initializing 'off_t' (aka 'long long') with an expression of type 'zzip_byte_t *' (aka 'unsigned char *') [-Wint-conversion]
:info:build     off_t offset = zzip_file_header_to_data(header);
:info:build           ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/ports/var/macports/build/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libzzip/libzzip/work/zziplib-0.13.72/zzip/mmapped.c:666:34: warning: incompatible pointer types initializing 'struct zzip_extra_zip64 *' with an expression of type 'char *' [-Wincompatible-pointer-types]
:info:build         struct zzip_extra_zip64* zip64 =
:info:build                                  ^
:info:build /opt/ports/var/macports/build/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libzzip/libzzip/work/zziplib-0.13.72/zzip/mmapped.c:673:34: warning: incompatible pointer types initializing 'struct zzip_extra_zip64 *' with an expression of type 'char *' [-Wincompatible-pointer-types]
:info:build         struct zzip_extra_zip64* zip64 =
:info:build                                  ^
:info:build /opt/ports/var/macports/build/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libzzip/libzzip/work/zziplib-0.13.72/zzip/mmapped.c:685:24: error: incompatible integer to pointer conversion assigning to 'Bytef *' (aka 'unsigned char *') from 'off_t' (aka 'long long') [-Wint-conversion]
:info:build     file->zlib.next_in = offset;
:info:build                        ^ ~~~~~~
:info:build cd /opt/ports/var/macports/build/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libzzip/libzzip/work/build/zzipwrap && /opt/ports/bin/bash -c "echo 'Name: zzipwrap' >> zzipwrap.pc"
:info:build 2 warnings and 2 errors generated.
:info:build make[2]: *** [zzip/CMakeFiles/libzzipmmapped.dir/mmapped.c.o] Error 1
:info:build make[2]: Leaving directory `/opt/ports/var/macports/build/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libzzip/libzzip/work/build'
:info:build cd /opt/ports/var/macports/build/_opt_ports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libzzip/libzzip/work/build/zzip && /opt/ports/bin/bash -c "echo '#warning do no not use <zzip.h>, update to include <zzip/lib.h>' >>compat/zzip.h"
:info:build make[1]: *** [zzip/CMakeFiles/libzzipmmapped.dir/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....

Regards,
Robert

Change History (4)

comment:1 Changed 6 weeks ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: sonoma added
Owner: set to mojca
Status: newassigned
Summary: libzzip 0.13.72 doesn't build on Sonoma 14.4 M2libzzip @0.13.72: error: incompatible pointer to integer conversion

Yup, this (treating the int-conversion warning as an error) is new in Xcode 15.3.

comment:2 Changed 6 weeks ago by ryandesign (Ryan Carsten Schmidt)

Here is the upstream bug report:

https://github.com/gdraheim/zziplib/issues/153

They released a new version, 0.13.74, to fix it; we should update the port.

comment:3 Changed 6 weeks ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added

comment:4 Changed 5 weeks ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In b5bdf4c598abf81e485ea96b71af7fb3b9aa95a7/macports-ports (master):

libzzip: Update to 0.13.74

Closes: #69540

Note: See TracTickets for help on using tickets.