19 May 2011 21:52
32 bit build with external libprotobuf_c
Matt Thompson <mthompson <at> unveillance.com>
2011-05-19 19:52:06 GMT
2011-05-19 19:52:06 GMT
Hi,
I was compiling libnmsg on a 32 bit linux system with an external
libprotobuf_c and it seems that the m4 macro checks of the structure
sizes are hardcoded for a 64 bit system.
>From autoconf/check_libprotobuf-c_sizeof.m4:
if test "$use_internal_libprotobuf_c" != "true"; then
AC_CHECK_SIZEOF(ProtobufCMessageDescriptor,, [[#include
<google/protobuf-c/protobuf-c.h>]])
AC_CHECK_SIZEOF(ProtobufCFieldDescriptor,, [[#include
<google/protobuf-c/protobuf-c.h>]])
AC_CHECK_SIZEOF(ProtobufCEnumDescriptor,, [[#include
<google/protobuf-c/protobuf-c.h>]])
if test "$ac_cv_sizeof_ProtobufCEnumDescriptor" != "120"; then
AC_MSG_FAILURE([sizeof(ProtobufCEnumDescriptor) != 120])
fi
if test "$ac_cv_sizeof_ProtobufCFieldDescriptor" != "72"; then
AC_MSG_FAILURE([sizeof(ProtobufCFieldDescriptor) != 72])
fi
if test "$ac_cv_sizeof_ProtobufCMessageDescriptor" != "120"; then
AC_MSG_FAILURE([sizeof(ProtobufCMessageDescriptor) != 120])
fi
fi
On a 32 bit system the structure sizes are:
(Continue reading)
RSS Feed