Article View: news.software.nntp
Article #12467Re: INN and HP
From: Robert Keller
Date: Tue, 19 Nov 1996 00:00
Date: Tue, 19 Nov 1996 00:00
86 lines
3335 bytes
3335 bytes
Rich Salz <rsalz@osf.org> wrote:
>In <3289D72A.5641@ssa.gov> nancy.st.pierre@ssa.gov writes:
>> cc -I../include -DHPUX -c xwritev.c
>>(Bundled) cc: "xwritev.c", line 37: error 1539: Cannot do arithmetic
>>with pointers to objects of unknown size.
>
>Sigh. Two wrong answers posted to the net.
>
>Change the "void*" in $inn/include/uio.h to a char*.
>
>Or, add a (char *) cast to the "base" in $inn/lib/xwritev.c
Below is what rich said in convenience patch form. Although
the patch was originally made for inn1.4sec, it applied to
inn1.4unoff4 (and probably all others). I'll include the a
URL to the patch as well,
http://reality.sgi.com/rck/software/inn1.4-xpg4.2.patch
The reason that this is a problem is that XPG4.2 asserts that
iov_base in the uio iovec struct is a now void * . INN treats
the same iov_base as a char *, which is what it had been previously.
...robert
diff -rc ../inn1.4sec-orig/expire/expireover.c ./expire/expireover.c
*** ../inn1.4sec-orig/expire/expireover.c Thu Mar 18 13:03:51 1993
--- ./expire/expireover.c Thu Mar 28 22:28:12 1996
***************
*** 300,306 ****
/* We're keeping this entry; see if we can add it to any
* in-progress iov element. */
if (vp->iov_len) {
! if (vp->iov_base + vp->iov_len == lp->Start) {
/* Contiguous. */
vp->iov_len += lp->Length;
continue;
--- 300,306 ----
/* We're keeping this entry; see if we can add it to any
* in-progress iov element. */
if (vp->iov_len) {
! if ((char *)vp->iov_base + vp->iov_len == lp->Start) {
/* Contiguous. */
vp->iov_len += lp->Length;
continue;
***************
*** 706,712 ****
/* We're keeping this entry; see if we can add it to any in-progress
* iov element. */
if (vp->iov_len) {
! if (vp->iov_base + vp->iov_len == lp->Start) {
/* Contiguous. */
vp->iov_len += lp->Length;
continue;
--- 706,712 ----
/* We're keeping this entry; see if we can add it to any in-progress
* iov element. */
if (vp->iov_len) {
! if ((char *)vp->iov_base + vp->iov_len == lp->Start) {
/* Contiguous. */
vp->iov_len += lp->Length;
continue;
diff -rc ../inn1.4sec-orig/lib/xwritev.c ./lib/xwritev.c
*** ../inn1.4sec-orig/lib/xwritev.c Thu Oct 29 06:10:15 1992
--- ./lib/xwritev.c Thu Mar 28 22:28:13 1996
***************
*** 34,40 ****
break;
for (; i >= vp->iov_len; vp++, vpcount--)
i -= vp->iov_len;
! vp->iov_base += i;
vp->iov_len -= i;
}
return 0;
--- 34,40 ----
break;
for (; i >= vp->iov_len; vp++, vpcount--)
i -= vp->iov_len;
! vp->iov_base = (char *)vp->iov_base + i;
vp->iov_len -= i;
}
return 0;
Technical Details
Message-ID:
<56rrjo$k8j@fido.asd.sgi.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<3289D72A.5641@ssa.gov> <56n8n1$4u3@paperboy.osf.org>Show Full Headers
Complete Article Headers
Message-ID: <56rrjo$k8j@fido.asd.sgi.com> Subject: Re: INN and HP Date: Tue, 19 Nov 1996 00:00:00 +0000 From: rck@fangio.asd.sgi.com (Robert Keller) References: <3289D72A.5641@ssa.gov> <56n8n1$4u3@paperboy.osf.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 197391390 Organization: Silicon Graphics, Inc., Mountain View, CA Newsgroups: news.software.nntp