From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751836AbbFBTme (ORCPT ); Tue, 2 Jun 2015 15:42:34 -0400 Received: from mail.kapsi.fi ([217.30.184.167]:41360 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750713AbbFBTm1 (ORCPT ); Tue, 2 Jun 2015 15:42:27 -0400 Date: Tue, 2 Jun 2015 22:42:16 +0300 From: Mikko Rapeli To: Jozsef Kadlecsik Cc: linux-kernel@vger.kernel.org, Pablo Neira Ayuso , Patrick McHardy , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-api@vger.kernel.org Subject: Re: [PATCH 67/98] include/uapi/linux/netfilter/ipset/ip_set_bitmap.h: include linux/netfilter/ipset/ip_set.h Message-ID: <20150602194216.GT12550@lakka.kapsi.fi> References: <1433000370-19509-1-git-send-email-mikko.rapeli@iki.fi> <1433000370-19509-68-git-send-email-mikko.rapeli@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2001:1bc8:1004::1 X-SA-Exim-Mail-From: mikko.rapeli@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 31, 2015 at 08:15:48PM +0200, Jozsef Kadlecsik wrote: > On Sat, 30 May 2015, Mikko Rapeli wrote: > > > Fixes userspace compilation error: > > > > error: ?IPSET_ERR_TYPE_SPECIFIC? undeclared here (not in a function) > > IPSET_ERR_BITMAP_RANGE = IPSET_ERR_TYPE_SPECIFIC, > > What kind of userspace compilation generates the error message above? How > can one reproduce it? Here's the test which reproduces this https://lkml.org/lkml/2015/5/30/98 Should run on at least Debian based distributions and some cross compilers. In the end the script generates a .c file which includes only this header file and tries to compile it with a call like: cc -Wall -c -nostdinc -I /usr/lib/gcc/i586-linux-gnu/4.9/include -I /usr/lib/gcc/i586-linux-gnu/4.9/include-fixed -I . -I ../headers_compile_test_include -I ../headers_compile_test_include/i586-linux-gnu ./linux/netfilter/ipset/ip_set_bitmap.c -Mikko