ipf 4.1.7, compilation error in ip_pptp_pxy.c

This is a discussion on ipf 4.1.7, compilation error in ip_pptp_pxy.c within the IPFilter forums, part of the System Security and Security Related category; Compilation of ipf 4.1.7 in Solaris with Sun Workshop 5.0 cc fails: cc -Xa -xildoff -I. -O -...


Go Back   Usenet Forums > System Security and Security Related > IPFilter

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-30-2005
Hans Werner Strube
 
Posts: n/a
Default ipf 4.1.7, compilation error in ip_pptp_pxy.c

Compilation of ipf 4.1.7 in Solaris with Sun Workshop 5.0 cc fails:
cc -Xa -xildoff -I. -O -I../.. -D_BSD_SOURCE -DSOLARIS2=7 -DIPFILTER_LOG -DIPFILTER_LOOKUP -DIPFILTER_SCAN -DIPFILTER_SYNC -DIPFILTER_CKSUM -c ../../ip_proxy.c -o ip_proxy_u.o
"../../netinet/ip_pptp_pxy.c", line 275: cannot do pointer arithmetic on operand of unknown size
cc: acomp failed for ../../ip_proxy.c
*** Error code 2
make: Fatal error: Command failed for target `ip_proxy_u.o'

The type of fin->fin_dp is void *; thus the following patch of
netinet/ip_pptp_pxy.c fixes this:
275c275
< msg = fin->fin_dp + (TCP_OFF(tcp) << 2);
---
> msg = (char *)fin->fin_dp + (TCP_OFF(tcp) << 2);

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:13 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0