I'm in the process of cross-compiling the protocol buffer in C++.  I'm 
getting a link error with some of the Arena elements.  I'm not going to be 
using Arena in my code so is there a way I can "disable" the arena elements 
of protocol buffers?

My target is running uClinux which had very tight memory constraints, 
i.e.only static linked libraries.

Below is the specific error message I am getting:

libtool: link: arm-uclinuxeabi-g++ -pthread -DHAVE_PTHREAD=1 -Wall 
-Wno-sign-compare -O2 -g -DNDEBUG -pthread -o protoc 
google/protobuf/compiler/main.o  ./.libs/libprotobuf.a ./.libs/libprotoc.a 
/home/wsi/protobuf-master/src/.libs/libprotobuf.a -pthread
/home/wsi/protobuf-master/src/.libs/libprotobuf.a(arena.o): In function 
`google::protobuf::Arena::FreeBlocks()':
/home/wsi/protobuf-master/src/google/protobuf/arena.cc:287: undefined 
reference to `__aeabi_read_tp'
/home/wsi/protobuf-master/src/.libs/libprotobuf.a(arena.o): In function 
`google::protobuf::Arena::SlowAlloc(unsigned int)':
/home/wsi/protobuf-master/src/google/protobuf/arena.cc:216: undefined 
reference to `__aeabi_read_tp'
/home/wsi/protobuf-master/src/google/protobuf/arena.cc:223: undefined 
reference to `__aeabi_read_tp'
/home/wsi/protobuf-master/src/.libs/libprotobuf.a(arena.o): In function 
`google::protobuf::Arena::AllocateAligned(std::type_info const*, unsigned 
int)':
/home/wsi/protobuf-master/src/google/protobuf/arena.cc:186: undefined 
reference to `__aeabi_read_tp'
/home/wsi/protobuf-master/src/google/protobuf/arena.cc:199: undefined 
reference to `__aeabi_read_tp'
/home/wsi/protobuf-master/src/.libs/libprotobuf.a(arena.o):/home/wsi/protobuf-master/src/google/protobuf/arena.cc:81:
 
more undefined references to `__aeabi_read_tp' follow

Thanks,
Doug

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to