Then the best idea I can come up with right now is just to add a configure script check that determines what kernel version is running and to set an independent define for those particular code blocks.
William Yang TJHSST Student Systems Administrator [EMAIL PROTECTED] ----- Original Message ----- From: Dale Ghent To: William Yang Cc: Derrick J Brashear ; OpenAFS Devel Sent: Tuesday, May 29, 2007 4:36 PM Subject: Re: [OpenAFS] 1.5.19 build fails on SunOS 5.11 snv62 SPARC (moving this to openafs-devel) This patch will not fly. You're using the new IP Instances netstack_* calls within the all- encompassing Solaris 10 #ifdef, which means that this code won't compile on < s10u4. /dale On May 15, 2007, at 6:13 PM, William Yang wrote: > Oops, sorry about that. I was intending to thread on to http:// > lists.openafs.org/pipermail/openafs-info/2007-May/026189.html, but > it looks like that didn't quite work the way I was hoping. Was a > bit rushed at the time too. > > I also forgot to mention, I am using OpenAFS 1.4.4 as opposed to > 1.5.19 (which was being used in the previous thread). > > I've attached the patch. FYI, though, I was a bit creative in > applying it to rx_knet.c since I have very little knowledge of C, > so hopefully I did it right. Thus far, AFS has not crashed on the > machine which is using these patches, but it is a very lightly used > development-only machine. > > William Yang > TJHSST Student Systems Administrator > [EMAIL PROTECTED] > > ----- Original Message ----- > From: "Derrick J Brashear" <[EMAIL PROTECTED]> > To: "William Yang" <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Sent: Tuesday, May 15, 2007 2:26:46 PM (GMT-0500) America/New_York > Subject: Re: [OpenAFS] 1.5.19 build fails on SunOS 5.11 snv62 SPARC > > On Sun, 13 May 2007, William Yang wrote: > > > I'd like to suggest incorporating a good version of this patch > into the > > Context is good. Maybe you could quote "this patch", or if you've > tested > one, send it? > > > main source tree since this bug also affects Solaris 10 Update 4 > beta > > (which probably has backports from snv_6x). I've located one > location in > > afs_server.c and two in rx_knet.c that are affected and which I > manually > > patched based on the patch in the thread (in April). > > <afs_on_s10u4.patch> -- Dale Ghent Coordinator, UNIX and Storage Systems UMBC - Office of Information Technology ENG 201 - 410-443-1705
