LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-22-2004, 03:50 AM   #1
Prakhardeep
LQ Newbie
 
Registered: May 2004
Distribution: RH9
Posts: 11

Rep: Reputation: 0
Problem in Building socket code from Stevens book


We obtained code ffor Unix Network Programming Vol I second edition
From the site kohala.com/start/unpv12e.html
While compiling code in the directory unpv12e/libroute we faced the error

[root@web-server libroute]# make
gcc -g -O2 -D_REENTRANT -Wall -c -o get_rtaddrs.o get_rtaddrs.c
get_rtaddrs.c: In function `get_rtaddrs':
get_rtaddrs.c:32: error: structure has no member named `sa_len'
get_rtaddrs.c:32: error: structure has no member named `sa_len'
get_rtaddrs.c:32: error: structure has no member named `sa_len'
get_rtaddrs.c:32: error: structure has no member named `sa_len'
make: *** [get_rtaddrs.o] Error 1
[root@web-server libroute]#

we looked up the structure "sockaddr" in sys/socket.h but sockaddr was not found but there was a structure "osockaddr" which did not contain sa_len
Please suggest some solutions

Note:- My system is LInux FC2 while the code I obtained is for the older version
If anyone has the port of these programs for FC2 please give us the link
 
Old 12-22-2004, 04:46 PM   #2
C0NIk
LQ Newbie
 
Registered: Oct 2003
Posts: 25

Rep: Reputation: 15
try to compile any thing else . if it's not working seems the problem in the compiler install it or reinstall


C0NIk

Last edited by C0NIk; 12-22-2004 at 04:47 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TCP/IP book for socket programming hubabuba Programming 3 10-17-2005 03:46 AM
Searching for a tutorial/book on socket programming koodoo Linux - Networking 6 06-07-2005 01:48 PM
Using sample C++ code from a book...won't compile Baix Programming 4 03-05-2005 02:04 PM
Book about writing secure code Covel Linux - Security 1 06-12-2004 01:53 AM
Richard Stevens book zalmox Programming 2 02-27-2004 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration