Tk Source Code

View Ticket
Login
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