Opened 4 weeks ago

Closed 2 weeks ago

#70719 closed defect (fixed)

tmux @3.4_1: error: call to undeclared function 'TAILQ_REPLACE'; ISO C99 and later do not support implicit function declarations

Reported by: tthoma24 (Teddy Thomas) Owned by: tessus (Helmut K. C. Tessarek)
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: sequoia Cc: razzfazz (Daniel Becker), fmirkes (Florian Mirkes), wdormann, fracai, teerakarna (Albert Asawaroengchai), ShadSterling (Shad Sterling), shivamidow (ChangSeok Oh), ryandesign (Ryan Carsten Schmidt)
Port: tmux

Description (last modified by tthoma24 (Teddy Thomas))

Despite an updated Xcode 16 RC and Command Line Tools and a functional clang, the port fails to build with the below error on an Intel-based Mac. Full build log is attached.

:info:build     mv -f $depbase.Tpo $depbase.Po
:info:build cmd-swap-pane.c:87:2: error: call to undeclared function 'TAILQ_REPLACE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
:info:build    87 |         TAILQ_REPLACE(&src_w->panes, src_wp, dst_wp, entry);
:info:build       |         ^
:info:build cmd-swap-pane.c:87:47: error: use of undeclared identifier 'entry'
:info:build    87 |         TAILQ_REPLACE(&src_w->panes, src_wp, dst_wp, entry);
:info:build       |                                                      ^
:info:build 2 errors generated.

Attachments (1)

main.log (160.9 KB) - added by tthoma24 (Teddy Thomas) 4 weeks ago.
Build log

Download all attachments as: .zip

Change History (17)

Changed 4 weeks ago by tthoma24 (Teddy Thomas)

Attachment: main.log added

Build log

comment:1 Changed 4 weeks ago by tthoma24 (Teddy Thomas)

Description: modified (diff)

comment:2 Changed 4 weeks ago by jmroot (Joshua Root)

Summary: tmux @3.4.1: Fails to build on macOS Sequoia 15 RCtmux @3.4_1: Fails to build on macOS Sequoia 15 RC

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

See WimplicitFunctionDeclaration for how to fix this.

comment:4 Changed 3 weeks ago by oversized-monday (MONDAY!)

also see: https://github.com/tmux/tmux/pull/4041

I assume this will be included in next tmux release. for now, you can manually make the suggested change to build.

comment:5 Changed 3 weeks ago by razzfazz (Daniel Becker)

Cc: razzfazz added

comment:6 Changed 3 weeks ago by SaintBol

For information, same issue on Sequoia final release, with Xcode clang (and CommandLineTools not installed).

comment:7 Changed 3 weeks ago by diogom93 (Diogo Martins)

FYI, same issue happens on arm64.

comment:8 Changed 3 weeks ago by fmirkes (Florian Mirkes)

Cc: fmirkes added

comment:9 Changed 3 weeks ago by diogom93 (Diogo Martins)

Got tmux running by editing the Portfile and pointing tmux-devel to the latest commit

comment:10 Changed 3 weeks ago by wdormann

Cc: wdormann added

comment:11 Changed 3 weeks ago by fracai

Cc: fracai added

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

Cc: teerakarna added
Summary: tmux @3.4_1: Fails to build on macOS Sequoia 15 RCtmux @3.4_1: error: call to undeclared function 'TAILQ_REPLACE'; ISO C99 and later do not support implicit function declarations

Has duplicate #70880.

comment:13 Changed 2 weeks ago by ShadSterling (Shad Sterling)

Cc: ShadSterling added

comment:14 Changed 2 weeks ago by shivamidow (ChangSeok Oh)

Cc: shivamidow added

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

Cc: ryandesign added

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

Resolution: fixed
Status: assignedclosed

In 0f9b9c1a8c11a2c50b4ac4c3cc0e002f74620f34/macports-ports (master):

tmux: Rename header guards

Closes: #70719

Note: See TracTickets for help on using tickets.