Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2010-12-15
22:50 • Closed ticket [3137454fff]: Tcl CVS HEAD (from 2010-12-13) does not build on GCC... artifact: 00854ad02e user: nijtmans
22:34 • Open ticket [3137454fff]. artifact: a9dce0930c user: zoro2
22:31 • Pending ticket [3137454fff]. artifact: b81f9240df user: nijtmans
04:54 • Ticket [3137454fff]: 4 changes artifact: 02182a6133 user: nijtmans
04:47 • Ticket [3137454fff]: 4 changes artifact: c9fcdd8445 user: nijtmans
04:46 • Ticket [3137454fff]: 4 changes artifact: 62f9f5172e user: nijtmans
04:40 • Ticket [3137454fff]: 2 changes artifact: 811d2cb1fc user: hobbs
2010-12-14
21:29 • New ticket [3137454fff]. artifact: 207ebb6522 user: zoro2

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.