Thad, feel free to privately send me your config.log if you want and I’ll take a quick look. I’ll also try to build on a Mavericks machine at home this eve.
-Randy > On Mar 23, 2015, at 12:16 PM, Thad Humphries <[email protected]> wrote: > > Nope, that did not work for me. > > After cloning from https://github.com/apache/thrift and running > `./bootstrap.sh` (with numerous warnings), configure errors out: > > $ ./configure CXXFLAGS="-I/usr/local/ssl/include" > CFLAGS="-I/usr/local/ssl/include" CPPFLAGS="I/usr/local/ssl/include" > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... ./install-sh -c -d > checking for gawk... no > checking for mawk... no > checking for nawk... no > checking for awk... awk > checking whether make sets $(MAKE)... yes > checking whether make supports nested variables... yes > checking whether UID '501' is supported by ustar format... yes > checking whether GID '20' is supported by ustar format... yes > checking how to create a ustar tar archive... gnutar > checking for pkg-config... /opt/local/bin/pkg-config > checking pkg-config is at least version 0.9.0... yes > checking for gcc... gcc > checking whether the C compiler works... no > configure: error: in `/Users/thad/devel/thrift': > configure: error: C compiler cannot create executables > See `config.log' for more details > > I have preserved config.log if anyone wants to see it. > > The C compiler is > > $ gcc -v > Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr > --with-gxx-include-dir=/usr/include/c++/4.2.1 > Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) > Target: x86_64-apple-darwin13.4.0 > Thread model: posix > > > On Mon, Mar 23, 2015 at 9:33 AM, Thad Humphries <[email protected]> > wrote: > >> Randy, >> >> Thanks for the info. Yes, I see that "OpenSSL 1.0.2 22 Jan 2015" is >> installed under /usr/local while "OpenSSL 0.9.8zc 15 Oct 2014" (boo! >> hiss!!) in under /usr. I also see the same, newer version of OpenSSL under >> /opt/local, where MacPorts installs. >> >> I'll give your a try and let you know how it works. (I'll also adjust my >> path to put /usr/local/bin and /opt/local/bin before /usr/bin). >> >> >> On Mon, Mar 23, 2015 at 9:07 AM, Heiland, Randy <[email protected]> wrote: >> >>> I’ll just chime in that I can successfully build on OS X (previously on >>> Mavericks, now Yosemite) via: >>> >>> ./configure CXXFLAGS="-I/usr/local/ssl/include" >>> CFLAGS="-I/usr/local/ssl/include" CPPFLAGS="I/usr/local/ssl/include” >>> >>> using thrift from git and using openssl-1.0.2-stable-SNAP-20140411 >>> >>> -Randy >>> >>>> On Mar 22, 2015, at 11:13 AM, Thad Humphries <[email protected]> >>> wrote: >>>> >>>> Sadly, no. I managed a work around on the SSL issue, but came up short >>>> further on over libtorrent (see below). It seems obvious that the >>>> instructions for Mac are incomplete, and I wonder how long it's been >>> since >>>> Thrift was built on a Mac. >>>> >>>> For my SSL workaround, I simply commented out two lines and replaced >>> them. >>>> You can see what I did in the snippet below >>>> from lib/cpp/src/thrift/transport/TSSLSocket.cpp, beginning at line #152 >>>> >>>> else if(protocol == TLSv1_1) >>>> { >>>> // ctx_ = SSL_CTX_new(TLSv1_1_method()); >>>> ctx_ = SSL_CTX_new(TLSv1_method()); >>>> } >>>> else if(protocol == TLSv1_2) >>>> { >>>> // ctx_ = SSL_CTX_new(TLSv1_2_method()); >>>> ctx_ = SSL_CTX_new(TLSv1_method()); >>>> } >>>> >>>> >>>> The Jira item THRIFT-2515 ( >>> https://issues.apache.org/jira/browse/THRIFT-2515) >>>> tells me that I shouldn't have this issue with 0.9.2--it's closed. >>> Howeverf >>>> references OpenSSL 1.0.1g. I have OpenSSL 1.0.2a from MacPorts. Maybe >>> that >>>> is the problem, but I've not looked into all my other system >>> dependencies >>>> on OpenSSL. >>>> >>>> After getting past the SSL error, my next problem is libtorrent: >>>> >>>> ... >>>> >>>> g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/cpp/src/thrift >>>> -I/usr/local/include -I../../../lib/cpp/src -Wall -Wextra -pedantic -g >>> -O2 >>>> -std=c++11 -MT processor/ProcessorTest.o -MD -MP -MF $depbase.Tpo -c -o >>>> processor/ProcessorTest.o processor/ProcessorTest.cpp &&\ >>>> >>>> mv -f $depbase.Tpo $depbase.Po >>>> >>>> *processor/ProcessorTest.cpp:26:10: **fatal error: **'tr1/functional' >>> file >>>> not found* >>>> >>>> #include <tr1/functional> >>>> >>>> Thinking I might need to install libtorrent, I tried that with MacPorts >>> and >>>> hit the same error. Some investigation showed me THRIFT-2229. Again >>> this is >>>> marked as closed/fixed with 0.9.2, but I'm still seeing it. There is a >>>> MacPorts issue on this same 'file not found' ( >>>> https://trac.macports.org/ticket/41417). The current version of >>> libtorrent >>>> from MacPorts is 0.13.2. In the ticket discussion I find "There is a >>> newer >>>> stable version 0.13.4 but it does not address this issue. Allegedly the >>>> current master branch from upstream does ( >>>> https://github.com/rakshasa/libtorrent/issues/47#issuecomment-46342450 >>> ), >>>> but there is no unstable version 0.13.5 yet." So I guess we wait for >>> that >>>> or for someone on the Thrift team to help us. >>>> >>>> I've also looked at Google's gRPC (http://www.grpc.io/). I was able to >>> play >>>> with the Java-only and go-only examples. However I was unable to get >>> gRPC’s >>>> C/C++ to build on the Mac. This made it impossible to test cross >>> language >>>> functionality (I don’t know enough Go to modify its demo). A gRPC >>> developer >>>> looked into the Mac issue for me, but there is no work (yet>) on a >>> solution >>>> (https://github.com/grpc/grpc/issues/1007). >>>> >>>> I'd be happy to try Thrift on Linux, but given our substantial Mac user >>>> base, we *must* have a Mac solution or stick with our hand-rolled stuff. >>>> >>>> >>>> On Fri, Mar 20, 2015 at 12:46 PM, ChrisK <[email protected]> wrote: >>>> >>>>> Did you ever find a resolution to this problem? I am getting the same >>>>> error when installing on the Mac. ): >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> "Hell hath no limits, nor is circumscrib'd In one self-place; but where >>> we >>>> are is hell, And where hell is, there must we ever be" --Christopher >>>> Marlowe, *Doctor Faustus* (v. 121-24) >>> >>> >> >> >> -- >> "Hell hath no limits, nor is circumscrib'd In one self-place; but where we >> are is hell, And where hell is, there must we ever be" --Christopher >> Marlowe, *Doctor Faustus* (v. 121-24) >> > > > > -- > "Hell hath no limits, nor is circumscrib'd In one self-place; but where we > are is hell, And where hell is, there must we ever be" --Christopher > Marlowe, *Doctor Faustus* (v. 121-24)
