Opened 7 weeks ago

Last modified 7 weeks ago

#70898 new defect

dia @0.97.3: error: incompatible function pointer types initializing 'FT_Outline_MoveToFunc' (aka 'int (*)(const struct FT_Vector_ *, void *)') with an expression of type 'int (FT_Vector *, void *)' (aka 'int (struct FT_Vector_ *, void *)')

Reported by: captainproton1971 (Captain Proton) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: Cc:
Port: dia

Description

Log attached.

√ muser ~ % sudo port install dia                                                                                                                                                                           11:32:10
--->  Computing dependencies for dia
--->  Fetching archive for dia
--->  Attempting to fetch dia-0.97.3_7.darwin_24.arm64.tbz2 from https://packages.macports.org/dia
--->  Attempting to fetch dia-0.97.3_7.darwin_24.arm64.tbz2 from http://bos.us.packages.macports.org/dia
--->  Attempting to fetch dia-0.97.3_7.darwin_24.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/dia
--->  Building dia
Error: Failed to build dia: command execution failed     
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_dia/dia/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port dia failed

Attachments (1)

dia_main_extract.log (3.7 KB) - added by captainproton1971 (Captain Proton) 7 weeks ago.
extract of main log (full log 16 MB and can't be uploaded)

Download all attachments as: .zip

Change History (5)

Changed 7 weeks ago by captainproton1971 (Captain Proton)

Attachment: dia_main_extract.log added

extract of main log (full log 16 MB and can't be uploaded)

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

Summary: dia 0.97.3 port failing to build on MacOS 15.0 / Arm64 due to incompatible function pointer types initializingdia @0.97.3: error: incompatible function pointer types initializing 'FT_Outline_MoveToFunc' (aka 'int (*)(const struct FT_Vector_ *, void *)') with an expression of type 'int (FT_Vector *, void *)' (aka 'int (struct FT_Vector_ *, void *)')

Usually you should upload the full log, compressed if it is large, but it looks like you've found the relevant part of the log, and I am able to reproduce the problem, so that should be sufficient.

This may be more fallout from type changes in the FT_Outline struct in freetype 2.13.3; see for example #70831 where this affected another port.

The last release of dia was in 2014. Upstream development continues but they are apparently in no rush to create a new release.

Unfortunately we'll have to come up for the fix for this ourselves, or see if another distribution has one, because upstream deleted the diapsft2renderer.c file that the error occurs in five years ago and deleted the postscript plugin entirely two years ago.

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

I see Gentoo has a bug report about and a fix for this problem.

comment:3 Changed 7 weeks ago by captainproton1971 (Captain Proton)

Thanks so much for the feedback, I'll compress the log file next time.

As for the fix, I can look into implementing the Gentoo team's fixes in the macports portfile, but it won't be before the weekend. Also, I've never submitted a portfile patch before, so I'll probably need some time to figure out how to do so.

Cheers, Michael

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

I can probably do it if reminded often enough.

Note: See TracTickets for help on using tickets.