Opened 7 years ago

Last modified 3 years ago

#56258 new defect

ghostscript @9.23: error: expected function body after function declarator

Reported by: elfprince13 (Thomas Dickerson) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: pauldj (Paolo Bientinesi), cooljeanius (Eric Gallager)
Port: ghostscript

Description

I currently have ghostscript @9.23_0+x11 (active) installed.

When I try to upgrade it, I get the following error message:

--->  Computing dependencies for ghostscript
--->  Building ghostscript
Error: Failed to build ghostscript: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

The full log is attached.

Attachments (1)

main.log (437.4 KB) - added by elfprince13 (Thomas Dickerson) 7 years ago.
Error log from attempted upgrade.

Download all attachments as: .zip

Change History (9)

Changed 7 years ago by elfprince13 (Thomas Dickerson)

Attachment: main.log added

Error log from attempted upgrade.

comment:1 Changed 7 years ago by elfprince13 (Thomas Dickerson)

Cc: elfprince13 added

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

Cc: elfprince13 removed
Summary: ghostscript build failsghostscript @9.23: error: expected function body after function declarator

Curious.

:info:build In file included from ./devices/gdevx.c:21:
:info:build In file included from ./base/x_.h:135:
:info:build /opt/local/include/X11/Intrinsic.h:1172:3: error: expected function body after function declarator
:info:build ) _X_SENTINEL(0);
:info:build   ^

comment:3 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

What version is /usr/bin/clang? What version is Xcode?

comment:4 Changed 7 years ago by elfprince13 (Thomas Dickerson)

Clang version:

$ /usr/bin/clang --version
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Xcode version is "Version 8.1 (8B62)"

comment:5 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: pauldj added

Does upgrading to Xcode 8.2.1 help?

The same problem has now been reported on High Sierra in #56321.

comment:6 Changed 7 years ago by pauldj (Paolo Bientinesi)

Xcode Version 9.3 (9E145)

comment:7 Changed 7 years ago by elfprince13 (Thomas Dickerson)

Building with -x11 helps.

comment:8 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.