unix network programming by Stevens

unix network programming by Stevens

Post by Reza Amble » Sun, 05 Jan 2003 19:11:10



hi, i'm hoping to find someone who's read unix network programming and can
help me out with a small problem i'm running into. I downloaded steven's
source code http://rbhs.ath.cx/unpv12e.tar.tar and untarred it to my home
directory. ran the configure script, then went into cd lib; and did gmake
(gmake for *BSD) just as the README said. but i ran into the following
errors that i dont know what to do about.

./configure;cd lib;gmake
-----
# 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
# pwd
/root/unpv12e/lib
#

any help would be greatly appreciated.
-Reza

oh i'm running openbsd 3.1

 
 
 

unix network programming by Stevens

Post by those who know me have no need of my nam » Tue, 07 Jan 2003 10:12:51


in comp.unix.programmer i read:

Quote:>mcast_leave.c:26: `IPV6_DROP_MEMBERSHIP' undeclared (first use in this
>function)

rfc 2553 changed the name to IPV6_LEAVE_GROUP.

--
bringing you boring signatures for 17 years

 
 
 

1. A problem with compiling Unix Network Programming v1(Stevens)

The steps I compile are:

...........//omitted...
creating ./config.status
creating Makefile
creating Make.defines
creating config.h
config.h is unchanged  //Since I've already configed,so it remains unchanged...


gcc -g -O2 -D_REENTRANT -Wall   -c -o connect_nonb.o connect_nonb.c
In file included from connect_nonb.c:1:
unp.h:114: redefinition of `struct in_pktinfo'
make: *** [connect_nonb.o] Error 1
Why struct in_pktinfo became redefined?
Thanks.
By the way,my OS is Slackware inux8.0

2. IDE/ATAPI DVD Writers on Solaris?

3. Wanted: Unix Network Programming by Stevens

4. PICT files under UNIX

5. Stevens' book : UNIX network programming

6. URGENT 3Com Impact IQ External TA ISDN PPPD Config

7. 2nd Ed. Of Stevens Unix Network Programming?

8. Install FreeOpen Server on second disk?

9. Stevens' Unix Networking Programming, 2nd edition

10. Help needed on Stevens' Unix Network Programming

11. Stevens' Network Programming

12. An error in Stevens' Network Programming?

13. compiling examples from stevens 'advanced programming in unix' book.