Artifacts Associated With Ticket 3135271
Ticket change [b27aa41a5f] (rid 98343) by andygoth on 2010-12-11 21:58:24:
- assignee initialized to: "stwo"
- cmimetype initialized to: "text/plain"
- comment initialized to:
On CentOS 4.2 (admittedly quite old), the Tcl/Tk build process can't link tclsh nor wish due to Tcl_Init and Tk_MainEx being hidden symbols in their respective lib*8.6.so files. This is with today's CVS. I fooled around with -DUSE_TCL_STUBS and similar but was unable to get it to work. CentOS 4.2 has gcc 3.4.4 and glibc 2.3.4.
- foundin initialized to: "obsolete: 8.6b1.1"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "andygoth"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to: "Link error due to hidden symbols (CentOS 4.2)"
- type initialized to: "Bug"
Ticket change [be44bfce8d] (rid 102048) by nijtmans on 2010-12-12 15:31:57:
- assignee changed to: "nijtmans"
- icomment:
This must be related to FRQ #2959069, I'll have al look
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
Ticket change [06730d149e] (rid 89228) by nijtmans on 2010-12-13 04:42:35:
- icomment:
File Added - 395948: 3135271.patch
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Add attachment "3135271.patch" [cb64832374] (rid 95506) by nijtmans on 2010-12-13 04:42:35.
Ticket change [7f82251122] (rid 97572) by nijtmans on 2010-12-13 04:49:04:
- icomment:
Question: Are Tcl_Init and Tk_MainEx the only hidden symbols, or are simply ALL symbols hidden? I suspect that the gcc 3.4.4 compiler with CentOS, is modified to support --fvisitiliby=hidden, which normally is only included with gcc 4.x. Tcl's configure script picks this up, but tcl.h does not take that into account, and simply assumes that gcc < 4.0 does not have visibility support. This could explain why all symbols in the DSO's are hidden. The solution could be the same as used in zlib: Use the define NO_VIZ when the compiler has no visibility support, in stead of relying on the gcc version. Here is a patch doing that. Please try if this patch works as expected.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [8cee5b3072] (rid 127823) by dkf on 2010-12-13 17:07:06:
- icomment:
The current tcl.m4 SC_CONFIG_CFLAGS checks to see if the -fvisibility=hidden flag works (gcc only), otherwise if can use the __visibility__ attribute on the function (which MODULE_SCOPE is a concealing macro for). However, it also allows overriding of this; there's quite a thicket of complexity here...
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [d7aa414b8c] (rid 124033) by nijtmans on 2010-12-13 17:13:48:
- icomment:
>there's quite a thicket of complexity here... Yes, I know, I wrote it..... And when a compiler backports features, it becomes more compilcated, unfortunately. Feedback appreciated (first I would like to know if I am right about my suspicion, before changing anthing!!)
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [fdca113948] (rid 108474) by andygoth on 2010-12-14 04:48:55:
- icomment:
That patch fixes it. Thanks! Yes, all symbols were hidden.
- login: "andygoth"
- mimetype: "text/plain"
- username: "andygoth"
- icomment:
Ticket change [c934f165d7] (rid 122243) by nijtmans on 2010-12-14 05:38:47:
- closedate changed to: "2010-12-13T22:38:47"
- closer changed to: "nijtmans"
- icomment:
Committed to HEAD
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "nijtmans"