From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26989 invoked by alias); 17 May 2007 21:45:24 -0000 Received: (qmail 26833 invoked by uid 22791); 17 May 2007 21:45:09 -0000 X-Spam-Check-By: sourceware.org Received: from urmel-5.rz.uni-frankfurt.de (HELO urmel-5.rz.uni-frankfurt.de) (141.2.22.233) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 17 May 2007 21:45:05 +0000 Received: from blade22-2.rz.uni-frankfurt.de ([141.2.22.192]) by urmel-5.rz.uni-frankfurt.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.66) (envelope-from ) id 1HonmM-0004rg-96 for gcc-help@gcc.gnu.org; Thu, 17 May 2007 23:44:58 +0200 Received: from dumbo.ghl40.whgl.uni-frankfurt.de ([141.2.119.130]) by mail.server with esmtp (Exim 4.66) (envelope-from ) id 1HonmJ-0005dc-Au for gcc-help@gcc.gnu.org; Thu, 17 May 2007 23:44:55 +0200 Message-ID: <464CCCD7.1020104@cs.uni-frankfurt.de> Date: Thu, 17 May 2007 21:45:00 -0000 From: Sven Eschenberg User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Void pointer arithmetic Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-MailScanner: Found to be clean X-MailScanner-SpamCheck: X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-05/txt/msg00165.txt.bz2 Hi list, Long time ago I wrote a small application, well back when g++ didn't even insist on std::cout. Now, since I upgrade g++ and tried to compile the application, g++ threw errors and warnings in masses. Most of the stuff I could fix, but I am stuck with the following problem: /usr/include/linux/netfilter_ipv4/ip_tables.h: In function 'xt_entry_target* ipt_get_target(ipt_entry*)': /usr/include/linux/netfilter_ipv4/ip_tables.h:225: error: pointer of type 'void *' used in arithmetic /usr/include/linux/netfilter_ipv4/ip_tables.h:225: error: invalid conversion from 'void*' to 'xt_entry_target*' Is there any chance of fixing the problem without tweaking the kernel includes (the running kernel is kinda ancient, but updates are a little difficult)? Thnx -Sven