On Thu, 17 Mar 2005 13:46:49 +0100 Attila F�l�p <[EMAIL PROTECTED]> wrote:
> > Well, you don't read the list, do you? No, I don't usually read the list, but I did do a search and hadn't come across this one yet. Thank you Oh, and btw: the INSTALL.IRIX says to comment out IPFLKM, but that won't compile, since #include <sys/mload.h> has an #ifdef around it for that. And since M_VERSION is required (in mli_ipl.c) I had to either get rid of the #ifdef or define IPFLKM Thanks again Jeroen > -------- 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 > > -- Jeroen Akershoek - a.k.a. "Murphy's Son" SARA Computing and Network Services tel: +31 20 5923000 fax: +31 20 6683167 All that glitters has a high refractive index
