Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#61273 closed defect (fixed)

tktable: implicit declaration of function 'panic' is invalid in C99

Reported by: S0methingWicked Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: tktable

Description (last modified by S0methingWicked)

tktable @2.11+quartz: Installation failed:

Error: Failed to build tktable: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tktable/tktable/main.log for details.

Attachments (1)

main.log (43.4 KB) - added by S0methingWicked 4 years ago.

Download all attachments as: .zip

Change History (6)

Changed 4 years ago by S0methingWicked

Attachment: main.log added

comment:1 Changed 4 years ago by S0methingWicked

Description: modified (diff)

comment:2 Changed 4 years ago by S0methingWicked

Summary: Quartz varianet of Tktable fails to installQuartz variant of Tktable fails to install

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

Summary: Quartz variant of Tktable fails to installtktable: implicit declaration of function 'panic' is invalid in C99

The log says:

:info:build ./generic/tkTableUtil.c:108:2: error: implicit declaration of function 'panic' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build         panic("invalid type given to TableOptionBdSet\n");
:info:build         ^

Implicit function declarations are an error now, as of Xcode 12. Before, they were just warnings. We should fix this, but until we do, you can work around it by downgrading to Xcode 11.7 and the Xcode 11.5 version of the command line tools.

The problem is probably not specific to the quartz variant, but you're noticing it there because when using a non-default variant you have to build from source. When using default variants, you get a binary from our server, which was built with Xcode 11.

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

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 6593d3f03168bb983688cbf1076b5a7d305a2345/macports-ports (master):

tktable: Fix implicit function declarations

Closes: #61273

comment:5 Changed 4 years ago by S0methingWicked

Thanks for clarification that panic() is now Tcl_Panic(). That's the thing I was missing. Port successfully built/installed.

Note: See TracTickets for help on using tickets.