Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#61307 closed defect (duplicate)

ghostscript 9.52 fails to build on macOS 10.13.6

Reported by: bK4gYuRo Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc: bK4gYuRo, chrstphrchvz (Christopher Chavez)
Port: ghostscript

Description

The log looks similar to the one in ticket #61306

:info:build ./base/fapi_ft.c:129:1: error: expected function body after function declarator
:info:build FF_alloc(FT_Memory memory, long size)
:info:build ^
:info:build ./base/fapi_ft.c:236:34: error: use of undeclared identifier 'file_default_buffer_size'
:info:build                                  file_default_buffer_size, &ps, pfn.iodev,
:info:build                                  ^
:info:build ./base/fapi_ft.c:259:20: error: use of undeclared identifier 'FF_stream_read'
:info:build     ftstrm->read = FF_stream_read;
:info:build                    ^
:info:build ./base/fapi_ft.c:260:21: error: use of undeclared identifier 'FF_stream_close'
:info:build     ftstrm->close = FF_stream_close;
:info:build                     ^

Attachments (1)

main.log (615.5 KB) - added by bK4gYuRo 4 years ago.

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by bK4gYuRo

Attachment: main.log added

comment:1 Changed 4 years ago by bK4gYuRo

Cc: bK4gYuRo added

comment:2 Changed 4 years ago by kencu (Ken)

the FF_ structs may come from freetype, which I see was very recently updated.... might be a place to look.

comment:3 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:4 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

FF_stream_read(), FF_stream_close(), etc. are all functions defined (without prior declaration but before any subsequent usage) in the same file, base/fapi_ft.c. There are errors problems defining them, so clang doesn't recognize FF_stream_read, FF_stream_close, etc. when it proceeds anyway.

Last edited 4 years ago by chrstphrchvz (Christopher Chavez) (previous) (diff)

comment:5 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

I think https://github.com/macports/macports-ports/pull/8747 would fix this, but wonder if this ticket should just be closed as duplicate of #61306.

comment:6 Changed 4 years ago by kencu (Ken)

Yeah - looks like a combo of things in the end -- the freetype update did indeed break all ghostcript builds on all systems, as figured, but there are also other errors that relate to xcode12 specifically that needed other fixes.

fun, fun, fun :>

comment:7 Changed 4 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed

AIUI this wasn't specific to Xcode 12 and so this new ticket wasn't really needed.

comment:8 Changed 4 years ago by kencu (Ken)

part was , part wasn't

Note: See TracTickets for help on using tickets.