Well, you don't read the list, do you?
-------- Original Message --------
Subject: Re: ip_fil4.1.7 compile error Solaris 5.8
Date: Tue, 15 Mar 2005 13:21:21 -0700
From: Mark Leisher <[EMAIL PROTECTED]>
To: [email protected]
References: <[EMAIL PROTECTED]>
Mark Leisher wrote:
> Sun Workshop compiler 5.0:
>
> "../../netinet/ip_pptp_pxy.c", line 275: cannot do pointer arithmetic on
> operand of unknown size
>
> The fin_dp field of the fr_info_t structure is a void * leading to the
> error.
I forgot to add the patch:
-- --- ip_pptp_pxy.c.orig 2005-03-15 11:58:28.000000000 -0700
+++ ip_pptp_pxy.c 2005-03-15 13:18:47.000000000 -0700
@@ -272,7 +272,7 @@
return -1;
}
- msg = fin->fin_dp + (TCP_OFF(tcp) << 2);
+ msg = (char *)fin->fin_dp + (TCP_OFF(tcp) << 2);
while (dlen > 0) {
off += pptps->pptps_bytes;
---------------------------------------------------------------------------
Mark Leisher
Computing Research Lab All political parties die at last of
New Mexico State University swallowing their own lies.
Box 30001, MSC 3CRL -- John Arbuthnot (1667-1735)
Las Cruces, NM 88003
Jeroen Akershoek wrote:
I tried to build 4.1.7 in case it was some old bug, but I can't get it to
build correctly:
cc-3316 cc: ERROR File = ../../netinet/ip_pptp_pxy.c, Line = 275
The expression must be a pointer to a complete object type.
msg = fin->fin_dp + (TCP_OFF(tcp) << 2);
Can anybody help me out?
Kind regards,
Jeroen