public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: UNIX Network Programming (unpve13e) make failing (AF_INET6 undeclared).
@ 2006-06-08 16:18 Williams, Gerald S (Jerry)
  2006-06-08 17:22 ` mwoehlke
  0 siblings, 1 reply; 5+ messages in thread
From: Williams, Gerald S (Jerry) @ 2006-06-08 16:18 UTC (permalink / raw)
  To: huw, cygwin

Huw wrote:
> The first issue was an omission of #defines.  IPv6 isn't a
> necessity for the UNP source, I believe.

I'd say the real issue is a failure to protect the use of
AF_INET6. You'll notice that it's protected by an #ifdef
earlier.

> The next issue I have is:
> 
> mcast_leave.c: In function `mcast_leave_source_group':
> mcast_leave.c:78: error: storage size of 'mreq' isn't known

I don't know anything about the ip_mreq_source structure,
but it looks to me like the current version may be having
general issues with support for various platforms and
configurations.

Have you tried using the version at www.kohala.com (i.e.,
unpv12e)? That was the the last one that Richard Stevens
wrote. At least the "lib" directory seems to build OK for
me. Even if you really want the latest library, looking
at the older code may help you with the port.

I haven't looked into the new version of that book, but
the new authors certainly had big shoes to fill.

gsw

P.S. www.kohala.com seemed to have intermittent access
problems (at least for me), so be patient.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: UNIX Network Programming (unpve13e) make failing (AF_INET6 undeclared).
  2006-06-08 16:18 UNIX Network Programming (unpve13e) make failing (AF_INET6 undeclared) Williams, Gerald S (Jerry)
@ 2006-06-08 17:22 ` mwoehlke
  0 siblings, 0 replies; 5+ messages in thread
From: mwoehlke @ 2006-06-08 17:22 UTC (permalink / raw)
  To: cygwin

Williams, Gerald S (Jerry) wrote:
> Huw wrote:
>> The next issue I have is:
>>
>> mcast_leave.c: In function `mcast_leave_source_group':
>> mcast_leave.c:78: error: storage size of 'mreq' isn't known
> 
> I don't know anything about the ip_mreq_source structure,
> but it looks to me like the current version may be having
> general issues with support for various platforms and
> configurations.

Right. One of our products was defining it for the longest time, and 
suddenly it started breaking on Linux, so it seems like it's very spotty 
whether or not the OS will define this structure. RHEL3 doesn't seem to 
have it, but FC4 does. So does Solaris 10 (x86, anyway), but not Solaris 
9 (sparc). My copy of Cygwin seems to have it, but only in 
<w32api/ws2tcpip.h>.

-- 
Matthew
Who let the hippos out?


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: UNIX Network Programming (unpve13e) make failing (AF_INET6 undeclared).
@ 2006-06-07 23:41 huw
  0 siblings, 0 replies; 5+ messages in thread
From: huw @ 2006-06-07 23:41 UTC (permalink / raw)
  To: cygwin


Thanks, Brian.

The first issue was an omission of #defines.  IPv6 isn't a necessity for the 
UNP source, I believe.

The next issue I have is:

mcast_leave.c: In function `mcast_leave_source_group':
mcast_leave.c:78: error: storage size of 'mreq' isn't known

76: #ifdef IP_DROP_SOURCE_MEMBERSHIP
77:        case AF_INET: {
78:                struct ip_mreq_source   mreq;

Which I believe is telling me that struct ip_mreq_source isn't defined.
Is this struct to do with IPv6 and how would I know that?

When I google for ip_mreq_source, I'm led to believe that it's defined in 
net/udp.h  (which I infer corrleates to usr/include/netinet/udp.h).

Thanks,
Huw


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: UNIX Network Programming (unpve13e) make failing (AF_INET6   undeclared).
  2006-06-07 22:41 huw
@ 2006-06-07 23:28 ` Brian Dessent
  0 siblings, 0 replies; 5+ messages in thread
From: Brian Dessent @ 2006-06-07 23:28 UTC (permalink / raw)
  To: cygwin

huw@huwdlloyd.com wrote:

> get_ifi_info.c: In function `get_ifi_info':
> get_ifi_info.c:143: error: `AF_INET6' undeclared (first use in this function)
> get_ifi_info.c:143: error: (Each undeclared identifier is reported only once
> get_ifi_info.c:143: error: for each function it appears in.)
> get_ifi_info.c:145: error: invalid application of `sizeof' to incomplete type
> `sockaddr_in6'

Cygwin does not support IPv6.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* UNIX Network Programming (unpve13e) make failing (AF_INET6 undeclared).
@ 2006-06-07 22:41 huw
  2006-06-07 23:28 ` Brian Dessent
  0 siblings, 1 reply; 5+ messages in thread
From: huw @ 2006-06-07 22:41 UTC (permalink / raw)
  To: cygwin

Hello,

I've failed to find an appropriate archived mail for this problem.

I'm trying to build the UNIX Network Programming source on a newly, complete, 
download of cygwin.

My assumption is that this should work out of the box.  Any pointers?

-- Huw

After:

./configure
./cd libs
make

I get:

gcc -I../lib -g -O2 -D_REENTRANT -Wall   -c -o connect_nonb.o connect_nonb.c
gcc -I../lib -g -O2 -D_REENTRANT -Wall   -c -o connect_timeo.o connect_timeo.c
gcc -I../lib -g -O2 -D_REENTRANT -Wall   -c -o daemon_inetd.o daemon_inetd.c
gcc -I../lib -g -O2 -D_REENTRANT -Wall   -c -o daemon_init.o daemon_init.c
gcc -I../lib -g -O2 -D_REENTRANT -Wall   -c -o dg_cli.o dg_cli.c
gcc -I../lib -g -O2 -D_REENTRANT -Wall   -c -o dg_echo.o dg_echo.c
gcc -I../lib -g -O2 -D_REENTRANT -Wall   -c -o error.o error.c
gcc -I../lib -g -O2 -D_REENTRANT -Wall   -c -o get_ifi_info.o get_ifi_info.c
get_ifi_info.c: In function `get_ifi_info':
get_ifi_info.c:143: error: `AF_INET6' undeclared (first use in this function)
get_ifi_info.c:143: error: (Each undeclared identifier is reported only once
get_ifi_info.c:143: error: for each function it appears in.)
get_ifi_info.c:145: error: invalid application of `sizeof' to incomplete type 
`s
ockaddr_in6'
get_ifi_info.c:146: error: invalid application of `sizeof' to incomplete type 
`s
ockaddr_in6'
make: *** [get_ifi_info.o] Error 1



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-06-08 16:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-08 16:18 UNIX Network Programming (unpve13e) make failing (AF_INET6 undeclared) Williams, Gerald S (Jerry)
2006-06-08 17:22 ` mwoehlke
  -- strict thread matches above, loose matches on Subject: below --
2006-06-07 23:41 huw
2006-06-07 22:41 huw
2006-06-07 23:28 ` Brian Dessent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).