[OpenAFS] 1.5.19 build fails on SunOS 5.11 snv62 SPARC
Derrick J Brashear
shadow@dementia.org
Mon, 30 Apr 2007 12:57:38 -0400 (EDT)
On Wed, 25 Apr 2007, Derrick J Brashear wrote:
> 1252 is:
> for (ill = ILL_START_WALK_ALL(&ctx) ; ill ; ill = ill_next(&ctx, ill)) {
>
> This isn't our macro, so I gotta assume it changed. Perhaps this is also Jeff
> Blaine's problem. It's the compile environment rather than the compiler.
Try this
--- src/afs/afs_server.c 10 Nov 2006 00:16:29 -0000
+++ src/afs/afs_server.c 30 Apr 2007 16:56:55 -0000
@@ -1244,12 +1244,13 @@
#endif
ill_t *ill;
ipif_t *ipif;
+ ip_stack_t*ipst = ipif->ipif_ill->ill_ipst;
int subnet, subnetmask, net, netmask;
if (sa)
sa->sa_iprank = 0;
#ifdef AFS_SUN510_ENV
- for (ill = ILL_START_WALK_ALL(&ctx) ; ill ; ill = ill_next(&ctx, ill)) {
+ for (ill = ILL_START_WALK_ALL(&ctx, ipst) ; ill ; ill = ill_next(&ctx, ill)) {
#else
for (ill = (struct ill_s *)*addr /*ill_g_headp */ ; ill;
ill = ill->ill_next) {