thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Reiss <dre...@facebook.com>
Subject Re: Compiling thrift under OpenBSD 4.2
Date Thu, 16 Oct 2008 00:26:07 GMT
Responses inline.

> ------------------
> sh bootstrap.sh
> 
> configure.ac:31: error: possibly undefined macro: AC_PROG_MKDIR_P
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.
> configure.ac:101: error: possibly undefined macro: AC_TYPE_INT16_T
> configure.ac:102: error: possibly undefined macro: AC_TYPE_INT32_T
> configure.ac:103: error: possibly undefined macro: AC_TYPE_INT64_T
> configure.ac:104: error: possibly undefined macro: AC_TYPE_INT8_T
> configure.ac:108: error: possibly undefined macro: AC_TYPE_SSIZE_T
> configure.ac:109: error: possibly undefined macro: AC_TYPE_UINT16_T
> configure.ac:110: error: possibly undefined macro: AC_TYPE_UINT32_T
> configure.ac:111: error: possibly undefined macro: AC_TYPE_UINT64_T
> configure.ac:112: error: possibly undefined macro: AC_TYPE_UINT8_T
> configure.ac: installing `./install-sh'
> configure.ac: installing `./missing'
> compiler/cpp/Makefile.am: installing `./depcomp'
> ------------------
I'm pretty sure that (a) these are harmless and (b) they will go away
if you update autoconf.

> ------------------
> gmake
> 
> Then I needed to do again:
> 
> #include <sys/types.h> before #include <netinet/in.h> in
> lib/cpp/src/Thrift.h
> 
>  g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include -I./src -Wall -g -O2 -MT Thrift.lo
-MD -MP -MF .deps/Thrift.Tpo -c src/Thrift.cpp  -fPIC -DPIC -o .libs/Thrift.o
> In file included from src/Thrift.h:15,
>                  from src/Thrift.cpp:7:
> /usr/include/netinet/in.h:136: error: 'in_addr_t' is used as a type, but is not
>    defined as a type.
> /usr/include/netinet/in.h:213: error: 'u_int8_t' is used as a type, but is not
>    defined as a type.
> /usr/include/netinet/in.h:214: error: 'sa_family_t' is used as a type, but is
>    not defined as a type.
> /usr/include/netinet/in.h:215: error: 'in_port_t' is used as a type, but is not
>    defined as a type.
Wait, did those errors show up before or after you added the include?

 > ------------------
> gmake
> 
> finally:
> 
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include -I./src -Wall -g -O2 -MT TimerManager.lo
-MD -MP -MF .deps/TimerManager.Tpo -c src/concurrency/TimerManager.cpp  -fPIC -DPIC -o .libs/TimerManager.o
> In file included from src/concurrency/Exception.h:11,
>                  from src/concurrency/TimerManager.h:10,
>                  from src/concurrency/TimerManager.cpp:7:
> src/Thrift.h: In static member function `static void
>    facebook::thrift::TOutput::errorTimeWrapper(const char*)':
> src/Thrift.h:57: warning: array size (25) is smaller than minimum required (26)
I think this is a legit error.  I'll put up an issue for it.

> src/concurrency/TimerManager.h: At global scope:
> src/concurrency/TimerManager.h:94: error: `struct
>    facebook::thrift::concurrency::TimerManager::Task' is private
> src/concurrency/TimerManager.cpp:19: error: within this context
This also appears to be a legit erro.  It's odd that it never showed
up before.  What is your g++ version?  I'll try to get a fix for that
too.

--David

Mime
View raw message