thrift-user mailing list archives

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

> ------------------
> sh
> error: possibly undefined macro: AC_PROG_MKDIR_P
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.
> error: possibly undefined macro: AC_TYPE_INT16_T
> error: possibly undefined macro: AC_TYPE_INT32_T
> error: possibly undefined macro: AC_TYPE_INT64_T
> error: possibly undefined macro: AC_TYPE_INT8_T
> error: possibly undefined macro: AC_TYPE_SSIZE_T
> error: possibly undefined macro: AC_TYPE_UINT16_T
> error: possibly undefined macro: AC_TYPE_UINT32_T
> error: possibly undefined macro: AC_TYPE_UINT64_T
> error: possibly undefined macro: AC_TYPE_UINT8_T
> installing `./install-sh'
> installing `./missing'
> compiler/cpp/ 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


View raw message