Overview
| Artifact ID: | 7f82251122f6d9c2abfa9d998e0c2187258892fb |
|---|---|
| Ticket: | 3135271fffffffffffffffffffffffffffffffff
Link error due to hidden symbols (CentOS 4.2) |
| User & Date: | nijtmans on 2010-12-13 04:49:04 |
Changes
- 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"