This is the problem, it won't build:
madisonip# cd lib
madisonip# make
gcc -g -O2 -Wall -c mcast_leave.c
mcast_leave.c: In function `mcast_leave':
mcast_leave.c:26: `IPV6_DROP_MEMBERSHIP' undeclared (first use in this function)
mcast_leave.c:26: (Each undeclared identifier is reported only once
mcast_leave.c:26: for each function it appears in.)
*** Error code 1
Stop in /root/Desktop/netprog/1/unpv12e/lib.
OR with gmake:
madisonip# gmake
gcc -g -O2 -Wall -c -o mcast_leave.o mcast_leave.c
mcast_leave.c: In function `mcast_leave':
mcast_leave.c:26: `IPV6_DROP_MEMBERSHIP' undeclared (first use in this function)
mcast_leave.c:26: (Each undeclared identifier is reported only once
mcast_leave.c:26: for each function it appears in.)
gmake: *** [mcast_leave.o] Error 1
After a make clean:
madisonip# gmake clean
rm -f core core.* *.core *.o temp.* *.out typescript* *.lc *.lh *.bsdi *.sparc *.uw
madisonip# gmake
gcc -g -O2 -Wall -c -o connect_nonb.o connect_nonb.c
gcc -g -O2 -Wall -c -o connect_timeo.o connect_timeo.c
gcc -g -O2 -Wall -c -o daemon_inetd.o daemon_inetd.c
gcc -g -O2 -Wall -c -o daemon_init.o daemon_init.c
gcc -g -O2 -Wall -c -o dg_cli.o dg_cli.c
gcc -g -O2 -Wall -c -o dg_echo.o dg_echo.c
gcc -g -O2 -Wall -c -o error.o error.c
gcc -g -O2 -Wall -c -o get_ifi_info.o get_ifi_info.c
gcc -g -O2 -Wall -c -o gf_time.o gf_time.c
gf_time.c: In function `gf_time':
gf_time.c:14: warning: passing arg 1 of `ctime' from incompatible pointer type
gcc -g -O2 -Wall -c -o host_serv.o host_serv.c
gcc -g -O2 -Wall -c -o isfdtype.o isfdtype.c
gcc -g -O2 -Wall -c -o mcast_leave.o mcast_leave.c
mcast_leave.c: In function `mcast_leave':
mcast_leave.c:26: `IPV6_DROP_MEMBERSHIP' undeclared (first use in this function)
mcast_leave.c:26: (Each undeclared identifier is reported only once
mcast_leave.c:26: for each function it appears in.)
gmake: *** [mcast_leave.o] Error 1
So I'm still lost. I'd really like to get this working (obviously, I can't even start the book yet!)
Any ideas? Thanks again! Also feel free to email me,
nleonard@madisonip.com