Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jan 2000 21:17:45 +0300
From:      Mike Petrov <muwa@mail.ru>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Sockets programming
Message-ID:  <16887.000104@mail.ru>

next in thread | raw e-mail | index | archive | help
Hello freebsd-questions,

  I written simple tcp-socket program.
  It compiles and works _perfectly_ on Linuxes and FreeBSD v2.2.8.

  When I try to compile it on FreeBSD v3.4 (RELEASE-3.4),
  gcc(2.7.2.3) prints many errors:

  Why is it happening?

/usr/include/netinet/in.h:224: parse error before `u_int32_t'
/usr/include/netinet/in.h:276: parse error before `u_char'              
/usr/include/netinet/in.h:278: parse error before `sin_port'            
/usr/include/netinet/in.h:281: parse error before `}'                   
/usr/include/netinet/in.h:291: field `ip_dst' has incomplete type       
/usr/include/netinet/in.h:344: field `imr_multiaddr' has incomplete type
/usr/include/netinet/in.h:345: field `imr_interface' has incomplete type
redir.c:84: invalid use of undefined type `struct sockaddr_in'          
redir.c:85: invalid use of undefined type `struct sockaddr_in'          
redir.c:86: invalid use of undefined type `struct sockaddr_in'          
redir.c:87: invalid use of undefined type `struct sockaddr_in'          
redir.c:94: sizeof applied to an incomplete type                        
redir.c:107: sizeof applied to an incomplete type                       
redir.c:157: storage size of `mike' isn't known                         
/usr/include/netinet/in.h: At top level:                                
/usr/include/netinet/in.h:279: storage size of `sin_addr' isn't known   
redir.c:22: storage size of `addr' isn't known                          
redir.c:28: storage size of `home' isn't known                          
redir.c:29: storage size of `away' isn't known                            


   P.S: I can send you source, if it would be needed.

-- 
Best regards,
 Mike                          mailto:muwa@mail.ru




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16887.000104>