IPv6 products, community and services

Hi all,
        I was unable to compile unmodified gogoc client 1.2 code in Archlinux x86_64 using gcc-multilib 4.6 . The following error was shown

mkdir -p objs
g++ -O2 -I. -I../gogoc-pal/out_inc -I../gogoc-pal/defs -Wall -D_REENTRANT -DNDEBUG -c -o objs/ipcserver.o src/ipcserver.cc
src/ipcserver.cc: In member function 'virtual bool gogocmessaging::IPCServer::WaitReady(long unsigned int)':
src/ipcserver.cc:133:66: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
g++ -O2 -I. -I../gogoc-pal/out_inc -I../gogoc-pal/defs -Wall -D_REENTRANT -DNDEBUG -c -o objs/ipcclient.o src/ipcclient.cc
g++ -O2 -I. -I../gogoc-pal/out_inc -I../gogoc-pal/defs -Wall -D_REENTRANT -DNDEBUG -c -o objs/servent.o src/servent.cc
g++ -O2 -I. -I../gogoc-pal/out_inc -I../gogoc-pal/defs -Wall -D_REENTRANT -DNDEBUG -c -o objs/message.o src/message.cc
g++ -O2 -I. -I../gogoc-pal/out_inc -I../gogoc-pal/defs -Wall -D_REENTRANT -DNDEBUG -c -o objs/messagesender.o src/messagesender.cc
g++ -O2 -I. -I../gogoc-pal/out_inc -I../gogoc-pal/defs -Wall -D_REENTRANT -DNDEBUG -c -o objs/communicationsmgr.o src/communicationsmgr.cc
g++ -O2 -I. -I../gogoc-pal/out_inc -I../gogoc-pal/defs -Wall -D_REENTRANT -DNDEBUG -c -o objs/clientmsgtranslator.o src/clientmsgtranslator.cc
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 `/home/keshav_pr/yaourtbuild/temp/yaourt-tmp-keshav_pr/aur-gogoc/src/gogoc-1_2-RELEASE/gogoc-messaging'
make[1]: *** [check-gogoc-messaging] Error 2
make[1]: Leaving directory `/home/keshav_pr/yaourtbuild/temp/yaourt-tmp-keshav_pr/aur-gogoc/src/gogoc-1_2-RELEASE/gogoc-tsp'
make: *** [all] Error 2

The patch http://pastebin.com/JNGNm7BX fixed the compile issue. Please correct this. Thanks in advance.

Tags: archlinux, gcc, linux, stddef

Views: 541

Replies to This Discussion

Thanks for posting this patch which I assume is needed for Linux 64bit installations. Does this patch also allow 32bit Linux versions to compile and run ?
I don't know. This fixes compile problem with gcc 4.6 but I guess it is independent of x86_64 or i*86.
It works on Fedora 15 (32 bit) without problems. Good work :)

Thanks for the patch, it enabled me to compile the client on Ubuntu 11.10 (32 Bit).

patch worked

I have Fedora 16  32-bit and needed patch to compile.   added includes and patch worked

How do I use this patch? I'm kinda a linux n00b, so sorry if this is a dumb question.



special report



IPv6 Product Information

Fill out my online form.

© 2014   Created by gogo6.

Badges  |  Report an Issue  |  Terms of Service