gogoNET

IPv6 products, community and services

/clientmsgsender.cc: In member function avoid gogocmessaging::ClientMsgSender::Send_HACCESSConfigInfo(const HACCESSConfigInfo*)

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 ;-))

 

 

 

Views: 124

Replies to This Discussion

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.

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. ;-)

 

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.

RSS

Sponsors

Coming soon...

IPv6 Product Information

gogoNET LIVE! 3 Event

Nov. 12-14, 2012, Silicon Valley, USA

© 2012   Created by gogo6.

Badges  |  Report an Issue  |  Terms of Service