Nashwa Farag created THRIFT-4616:
------------------------------------

             Summary: Thrift failed to build on AIX
                 Key: THRIFT-4616
                 URL: https://issues.apache.org/jira/browse/THRIFT-4616
             Project: Thrift
          Issue Type: Question
            Reporter: Nashwa Farag


Hi,

Is thrift supported on AIX , Solaris or HP?

If yes, what are the flags to build (CFLAGS, CXXFLAGS & LDFLAGS)?

I tried to build thrift 0.10.0 on AIX 6.1 and it doesn't work

{color:#2e75b6}LIBPATH="/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib"{color}

{color:#2e75b6}PATH="/opt/freeware/bin:$PATH"{color}

./configure --with-boost=/work/64build/aix/release_64/boost_src 
--with-openssl=/work/64build/aix/release_64/openssl_src --with-cpp 
--disable-plugin --without-qt4 --without-csharp --without-python 
--without-c_glib --without-erlang --without-perl --without-php_extension 
--without-php --without-ruby --without-haskell --without-go --without-d 
--without-java CC="/usr/bin/gcc" CXX="/usr/bin/g++" CFLAGS="-maix64 -g -O2 
-fPIC" CXXFLAGS="-maix64 -g -O2" LDFLAGS="-maix64 -g -fPIC -Wl,-G 
-Wl,-bsymbolic -Wl,-bbigtoc" --enable-static --disable-shared --with-pic 
--prefix=/work/64build/aix/release_64/thrift_src/.libs

 

libtool: compile:  /usr/bin/g++ -DHAVE_CONFIG_H -I. -I../.. 
-I../../lib/cpp/src/thrift -I../../lib/c_glib/src/thrift 
-I/work/64build/aix/release_64/boost_src/include 
-I/work/64build/aix/release_64/openssl_src/include -I./src 
-D__STDC_LIMIT_MACROS -Wall -Wextra -pedantic -maix64 -g -O2 -std=c++11 -MT 
src/thrift/TApplicationException.lo -MD -MP -MF 
src/thrift/.deps/TApplicationException.Tpo -c 
src/thrift/TApplicationException.cpp  -DPIC -o 
src/thrift/TApplicationException.o
In file included from 
/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.9.2/include/c++/ext/string_conversions.h:41:0,
                 from 
/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.9.2/include/c++/bits/basic_string.h:2850,
                 from 
/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.9.2/include/c++/string:52,
                 from ./src/thrift/Thrift.h:37,
                 from ./src/thrift/TApplicationException.h:23,
                 from src/thrift/TApplicationException.cpp:20:
/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.9.2/include/c++/cstdlib:140:11: 
error: '::malloc' has not been declared
   using ::malloc;
           ^
/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.9.2/include/c++/cstdlib:153:11: 
error: '::realloc' has not been declared
   using ::realloc;
           ^

 

I added this option  "-Wp,-include -Wp,cstdlib" which fixed this issue but 
giving other issues.

 

So does thrift build on AIX? how?

 

Thanks,



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to