Missing declarations and symbols when linking with stubs enabled
Brought to you by:
ghowlett
Hi!
I've tried to build BLT (3.0 at Git's HEAD) with stubs enabled, and found that many symbols are missing from the resulting libraries. Specifically, there are two functions missing from the stubs table, which are used in PictJpg30.so, also whole bunch of functions from libm and libX11 in Tcl30.so and Tk30.so, and also symbols from libtcl are missing for many libraries like Table*30.so etc.
The attached patches aim to add missing functions to the stub table (missingstubs.patch) and missing libraries for the linking phase (link.patch). I'm not sure it's the best way to do this, especially for unconditional -lm and -lX11, but the patches seem to work fine for Debian Linux 12/13.
I'm sorry, the second patch is incomplete. It misses adding the two functions to the bltTkProcs structure. Here is the corrected patch.