I have a problem compiling on Fedora15, which says:
cd gogoc-tsp && make all
make[1]: Entering directory `/root/gogoc-1_2-RELEASE/gogoc-tsp'
Building gogoCLIENT for platform linux ...
Building gogoc-messaging module ...
make[2]: Entering directory `/root/gogoc-1_2-RELEASE/gogoc-messaging'
g++ -O2 -I. -I../gogoc-pal/out_inc -I../gogoc-pal/defs -Wall -D_REENTRANT -DNDEBUG -c -o objs/clientmsgsender.o src/clientmsgsender.cc
src/clientmsgsender.cc: In member function âvoid gogocmessaging::ClientMsgSender::Send_HACCESSConfigInfo(const HACCESSConfigInfo*)â:
src/clientmsgsender.cc:145:17: error: expected primary-expression before â,â token
src/clientmsgsender.cc:145:17: error: â_dataâ was not declared in this scope
src/clientmsgsender.cc:145:17: error: âoffsetofâ was not declared in this scope
src/clientmsgsender.cc:157:13: error: âpDataâ was not declared in this scope
src/clientmsgsender.cc:161:13: error: âpDataâ was not declared in this scope
src/clientmsgsender.cc:166:11: error: âpDataâ was not declared in this scope
make[2]: *** [objs/clientmsgsender.o] Error 1
make[2]: Leaving directory `/root/gogoc-1_2-RELEASE/gogoc-messaging'
make[1]: *** [check-gogoc-messaging] Error 2
make[1]: Leaving directory `/root/gogoc-1_2-RELEASE/gogoc-tsp'
make: *** [all] Error 2
Anyone know how to solve this?
Your help is much appreciated ;-))
Tags:
Permalink Reply by Pedro Xavier Jorge on October 20, 2011 at 3:18pm Hi Diederik Cabri, i had the same problem with this.
My workaround was to create the files objs/clientmsgsender.o, because the make is not creating this file. you will see that will appear anothers error because of the same principle.
Best Regards, hope this will help you.
Pedro Jorge.
Permalink Reply by Frans van Kralingen on January 31, 2012 at 8:39pm how?
Often Linux make files aren't meant to be run from /root. Even if it is required to go su to compile from a low privileged user space, it isn't a good idea to be god in paradise.
Copy the entire gogoc dir tree into your home directory. Check if the environment is complete. Distros often require additional tools to be installed to go compile.
Gogoc isn't explicitly meant to compile from /root, so avoid it.
Before compiling, satisfy the dependencies as explained in the docs you can find in the main /gogoc/ directory.
This will mostly avoid you to get in touch with obscure compile time errors.
Last but not least, if you are using a specific Linux distro, get gogoc binaries or sources from its repositories. ;-)
Permalink Reply by James Hennessy on February 4, 2012 at 7:44pm I ran into this today. It's actually a bug in the gogoc 1.2 client code. The header file gogoc-messaging/gogocmessaging/message.h uses the offsetof() macro without including a header file that defines it. I fixed it by editing message.h to put "#include <stddef.h>" at the top. I suppose the official C++ way would be to say "#include <cstddef>". It compiles both ways for me.
Coming soon...
© 2012 Created by gogo6.
