Tk Source Code

View Ticket
Login
2026-11-11
10:14 • Closed ticket [09ee8c51]: broken build: undefined reference XRenderQueryExtension plus 7 other changes artifact: 1bdbf3bf user: nemethi
2026-11-10
20:10 • Ticket [09ee8c51]: 3 changes artifact: ba7e7ffb user: jan.nijtmans
18:16 • Ticket [09ee8c51]: 4 changes artifact: 50dbe308 user: nemethi
18:08 • Ticket [09ee8c51]: 3 changes artifact: d5fd7231 user: chrstphrchvz
17:52 • Ticket [09ee8c51]: 3 changes artifact: a0e53a14 user: jan.nijtmans
17:48
Fix for [09ee8c51fe]: broken build: undefined reference XRenderQueryExtension check-in: e652f058 user: csaba tags: core-8-6-branch
17:45 • Ticket [09ee8c51] broken build: undefined reference XRenderQueryExtension status still Open with 3 other changes artifact: 3a30dec9 user: dgp
17:45
Fix for [09ee8c51fe]: broken build: undefined reference XRenderQueryExtension check-in: 6edd95df user: csaba tags: core-9-0-branch
17:26 • Ticket [09ee8c51] broken build: undefined reference XRenderQueryExtension status still Open with 3 other changes artifact: c0114d03 user: serhiy.storchaka
17:25
Fix [09ee8c51fe]: static build failed with undefined reference to XRenderQueryExtension. tkUnixEvent.c calls it since [b298b92ba7] was fixed, but -lXrender was not added to the Xft libraries. closed check-in: ad54674e user: serhiy.storchaka tags: xft-link-xrender-86
17:25
Fix [09ee8c51fe]: static build failed with undefined reference to XRenderQueryExtension. tkUnixEvent.c calls it since [b298b92ba7] was fixed, but -lXrender was not added to the Xft libraries. closed check-in: 30924535 user: serhiy.storchaka tags: xft-link-xrender
16:55 • Ticket [09ee8c51] broken build: undefined reference XRenderQueryExtension status still Open with 4 other changes artifact: 20d19bc9 user: dgp
16:45 • New ticket [09ee8c51]. artifact: 4c3925b4 user: dgp

Ticket UUID: 09ee8c51feb3d1baa9f1eed47a64bf6560034c67
Title: broken build: undefined reference XRenderQueryExtension
Type: Bug Version: 9.0
Submitter: dgp Created on: 2026-11-10 16:45:49
Subsystem: 84. Unix Build Assigned To: nobody
Priority: 5 Medium Severity: Critical
Status: Closed Last Modified: 2026-11-11 10:14:22
Resolution: Fixed Closed By: nemethi
    Closed on: 2026-11-11 10:14:22
Description:
After latest sync, 9.0 and trunk branches do not build.
Failing lines:



gcc -O2  -pipe -finput-charset=UTF-8  tkAppInit.o -L/home/dgp/fossil/tk9.0/unix -ltcl9tk9.0   -Wl,--export-dynamic  \
	-L/home/dgp/fossil/tcl9.0/unix -ltcl9.0  -lXft -lfontconfig -lfreetype  -lfontconfig -lX11 -lXss -lXext -ldl -lz  -lpthread -lm   "-Wl,-rpath,/home/dgp/x86_64/linuxoldld/lib" -o wish
/usr/bin/ld: /home/dgp/fossil/tk9.0/unix/libtcl9tk9.0.a(tkUnixEvent.o): undefined reference to symbol 'XRenderQueryExtension'
/usr/bin/ld: /lib/x86_64-linux-gnu/libXrender.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:695: wish] Error 1
User Comments: nemethi (claiming to be Csaba Nemethi) added on 2026-11-11 10:14:22:

I think, Christopher is right. I am closing the ticket with resolution "Fixed".


jan.nijtmans added on 2026-11-10 20:10:40:

No problem, I'm fine with it.


nemethi (claiming to be Csaba Nemethi) added on 2026-11-10 18:16:29:

IMHO, adding -lXrender for core-9-0-branch and core-8-6-branch (just like for main) is the right fix. Many thanks to Serhiy for the quick action!

Merged branch xft-link-xrender into core-9-0-branch by commit [6edd95df] and branch xft-link-xrender-86 into core-8-6-branch by commit [e652f058] before reading the comments by Don and Jan, sorry!


chrstphrchvz added on 2026-11-10 18:08:50:

Doesn't libXft always require libXrender anyway, and so rather than being a new dependency for Tk, would just be going from an implicit one to an explicit one (which e.g. package managers might need to declare)?


jan.nijtmans added on 2026-11-10 17:52:33:

I would prefer not to use XRenderQueryExtension in 9.0 and 8.6, if we never did


dgp added on 2026-11-10 17:45:47:
Confirmed that the branch xft-link-xrender solves the reported issue.

I will leave it up to the Tk developers whether accepting that
configuration addition (and the new dependency it seems to add to Tk)
is the right fix in the 9.0 branch, or whether this is better corrected
by backing out the bug fix that brought the dependency in.

For now the core-9-0-branch remains broken pending that choice.

serhiy.storchaka added on 2026-11-10 17:26:55:

Caused by the fix for [b298b92ba7]: tkUnixEvent.c now calls XRenderQueryExtension() when Xft is used. Main adds -lXrender through its Xrender check, but 9.0 and 8.6 do not, so a static wish fails to link there.

Proposed fix in branches xft-link-xrender (9.0) and xft-link-xrender-86 (8.6): configure adds -lXrender to the Xft libraries.


dgp added on 2026-11-10 16:55:20:
Apologies.  The trunk branch seems fine.

Only core-9-0-branch [d497451e32] is failing to build