[gnet] gnet doesn't compile on Irix 6.5.17



I can't get the udp.c file to compile under irix 6.5.17 - it's got to:

/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"GNet\" -I/usr/freeware/include/glib-2.0 -I/usr/freeware/lib32/glib-2.0/include -D_REENTRANT -I/usr/freeware/include/glib-2.0 -I/usr/freeware/lib32/glib-2.0/include -g -O2 -D_REENTRANT -DGNET_EXPERIMENTAL -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -c udp.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"GNet\" -I/usr/freeware/include/glib-2.0 -I/usr/freeware/lib32/glib-2.0/include -D_REENTRANT -I/usr/freeware/include/glib-2.0 -I/usr/freeware/lib32/glib-2.0/include -g -O2 -D_REENTRANT -DGNET_EXPERIMENTAL -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -c udp.c -o udp.o
udp.c: In function `gnet_udp_socket_receive':
udp.c:327: error: syntax error before '.' token
udp.c:334: error: `sa_union' undeclared (first use in this function)
udp.c:334: error: (Each undeclared identifier is reported only once
udp.c:334: error: for each function it appears in.)
make[2]: *** [udp.lo] Error 1


I don't really see how this can fail, the offending lines are:

327:   gint sa_len = sizeof(struct sockaddr_storage);
328:
329:   g_return_val_if_fail (socket, -1);
330:   g_return_val_if_fail (buffer, -1);
331:
332:  bytes_received = recvfrom (socket->sockfd,
333:                 (void*) buffer, length,
334:                 0, (struct sockaddr*) &sa, &sa_len);
335:

and I tried forcing an include of <sys/socket.h> at the top of the file (yeah, I know it was bound to be included, but struct sockaddr_storage is defined there, so I thought it was worth a try :-)

The machine is a bog-standard 6.5.17m install, with some extra sgi-freeware (gcc, make, glib etc.) on it, nothing exotic...

Anyone else found this ?

Cheers,
   Simon






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]