On Thu, 05 May 2011 06:39:59 +0200, Michal Trojnara wrote:
SciFi wrote:
str.c:83: error: thread-local storage not supported for this target
while it was compiling src/str.c .
I'm running MacOSX 10.6.7 with Xcode-3.2.6.
[cut]
$ $CC --version i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) […]
(I never use a pkg-mgr such as Macports or Fink; besides, they are both now back-level with stunnel.)
I'm skeptical in upgrading Xcode to their 4.x series, with Apple's insistence we use the LLVM family there. ;)
I was able to build stunnel with a recent gcc from Macports:
sudo port install gcc45 export CC=gcc-mp-4.5 ./configure make
Thank you for mentioning this, but I just said I do not use Macports (nor Fink) for any projects at all.
What's more, I feel you should not rely on any level of gcc that we cannot access thru official channels i.e. Apple Xcode. (Yes some of us are quite distressed that Apple will not upgrade, but OTOH and as I already eluded, they are almost forcing LLVM/clang on us in the near future especially for 10.7/Lion I'm afraid.)
BTW I saw the maintainer of the port for stunnel insert a line into its stunnel4.info file: --- stunnel4.info 20 Feb 2011 14:32:55 -0000 1.4 +++ stunnel4.info 3 May 2011 23:38:54 -0000 1.5 @@ -1,4 +1,5 @@ Package: stunnel4 +# 4.36 doesn't build since it uses thread local storage. Version: 4.34 Epoch: 1 Revision: 2 -*- i.e. they are staying with back-level 4.34 as well. ;)
So, I guess if you won't consider altering your thread-local scheme somehow for OSX, I am at a stand-still with your project. ;)
As I said (in the part you cut-out), I am quite happy with the 4.34 release, it is doing what I need.
Thank you very much for your time, and for sharing this needed functionality.