compiling hobbit client for SunOS 5.5.1
i have a hobbit client whose host operating system is a SunOS 5.5.1.
i get these errors trying to compile the hobbit client.. i'm no good in C/C++ programming, so if anyone can trace help me as to what to tweak to make it compile, it will be very much appreciated.
** snip **
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/opt/hobbit-4.1.2p1/include -DCLIENTONLY=1 -I. -I../include -c -o
sendmsg.o sendmsg.c
sendmsg.c: In function sendtobbd': sendmsg.c:247: warning: implicit declaration of function inet_aton'
sendmsg.c:298: error: SHUT_RDWR' undeclared (first use in this function) sendmsg.c:298: error: (Each undeclared identifier is reported only once sendmsg.c:298: error: for each function it appears in.) sendmsg.c:322: warning: passing arg 4 of getsockopt' from
incompatible pointer type
sendmsg.c:387: error: SHUT_RD' undeclared (first use in this function) sendmsg.c:402: error: SHUT_WR' undeclared (first use in this function)
sendmsg.c: In function sendmessage': sendmsg.c:501: warning: implicit declaration of function usleep'
make[1]: *** [sendmsg.o] Error 1
make[1]: Leaving directory `/opt/hobbit-4.1.2p1/lib'
make: *** [lib-client] Error 2
** snip **
gcc=3.3.2 make=3.8
thanks, great
On Fri, Jan 27, 2006 at 11:33:33PM +0800, Great Dilla wrote:
i have a hobbit client whose host operating system is a SunOS 5.5.1.
Oh dear - that is a positively ancient box.
i get these errors trying to compile the hobbit client.. i'm no good in C/C++ programming, so if anyone can trace help me as to what to tweak to make it compile, it will be very much appreciated.
** snip ** gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/opt/hobbit-4.1.2p1/include -DCLIENTONLY=1 -I. -I../include -c -o sendmsg.o sendmsg.c sendmsg.c:247: warning: implicit declaration of function
inet_aton' sendmsg.c:298: error:SHUT_RDWR' undeclared (first use in this function) sendmsg.c:387: error:SHUT_RD' undeclared (first use in this function) sendmsg.c:402: error:SHUT_WR' undeclared (first use in this function) sendmsg.c:501: warning: implicit declaration of function `usleep'
All of these are standard library functions and names, present in most current (and not-so-current) Unix environments. In fact, these were introduced in BSD 4.2 which was released over 20 years ago (1983, to be exact).
I'm sorry, but that is one environment where you'll have to use a different client package.
Regards, Henrik
participants (2)
-
great.dilla@gmail.com
-
henrik@hswn.dk