Tcl CVS HEAD (from 2010-12-13) does not build on GCC 3
Closed / Fixed3137454fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 16 years ago
Descriptionplain2010-12-14 21:29:36
The following causes error on GCC 3:
# if defined(__GNUC__) && !defined(NO_VIZ)
# define DLLEXPORT __attribute__ ((visibility("default")))
# else
It can easily be changed to:
# if defined(__GNUC__) && !defined(NO_VIZ)
# if __GNUC__ >= 4
# define DLLEXPORT __attribute__ ((visibility("default")))
# else
# define DLLEXPORT
# endif
# else
As visibility default is introduced in GCC 4
This fails when building thread as well as when building statically linked code using -DBUILD_tcl
hobbs Ticket [3137454fff]: 2 changes
[History diff]2010-12-15 04:40:45
nijtmansplain2010-12-15 04:46:53
Thanks, this is important! Statically linked code should not use BUILD_tcl, but this could be added in the condition. Thread should simply be upgraded to the latest TEA tcl.m4
nijtmansplain2010-12-15 04:47:49
See also Bug #3135271
nijtmansplain2010-12-15 04:54:50
B.T.W.: Are you sure you re-ran "configure"? This should set NO_VIZ
nijtmansplain2010-12-15 22:31:52
Assuming it's fixed now. If not, please let me know.
zoro2plain2010-12-15 22:34:56
Jan, it is fixed now, thank you for such fast response. I was actually getting this also in my other code, which defines STATIC_BUILD and BUILD_tcl (since I also build *AppInit.c, I need to define BUILD_tcl). Anyway, it all works fine now.
nijtmansplain2010-12-15 22:50:40
allow_comments - 1 Thanks! Closing
Log in (anonymous is fine) to add a comment.