From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) by dpdk.org (Postfix) with ESMTP id 8C5852A1A for ; Wed, 5 Oct 2016 19:34:57 +0200 (CEST) Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2353.austin.hpe.com (Postfix) with ESMTP id C502A55; Wed, 5 Oct 2016 17:34:56 +0000 (UTC) Received: from masterns.labs.hpecorp.net (masterns.labs.hpecorp.net [16.111.40.8]) by g2t2360.austin.hpecorp.net (Postfix) with ESMTP id 8A9323A; Wed, 5 Oct 2016 17:34:56 +0000 (UTC) Received: from bougret.labs.hpecorp.net (bougret.labs.hpecorp.net [16.111.8.16]) by masterns.labs.hpecorp.net (8.14.4/8.14.4/HPL-PA Hub) with ESMTP id u95HYu2t001033 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 5 Oct 2016 10:34:56 -0700 Received: from jt by bougret.labs.hpecorp.net with local (Exim 4.84_2) (envelope-from ) id 1brq5n-0003Fp-Vj; Wed, 05 Oct 2016 10:34:56 -0700 Date: Wed, 5 Oct 2016 10:34:55 -0700 From: Jean Tourrilhes To: Thomas Monjalon Cc: dev@dpdk.org, David Marchand , Sergio Gonzalez Monroy , olivier.matz@6wind.com, David Hunt Message-ID: <20161005173455.GB12182@labs.hpe.com> References: <20160922204637.GA3166@labs.hpe.com> <20161005164906.GB11912@labs.hpe.com> <7491622.GqnA43pcBO@xps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7491622.GqnA43pcBO@xps13> Organisation: HP Labs Palo Alto Address: HP Labs, MS1184, 1501 Page Mill road, Palo Alto, CA 94304, USA. E-mail: jean.tourrilhes@hpe.com User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH 1/1] eal: Don't fail secondary if primary is missing tailqs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: jean.tourrilhes@hpe.com List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2016 17:34:57 -0000 On Wed, Oct 05, 2016 at 07:09:14PM +0200, Thomas Monjalon wrote: > > Probably that you would have some aligned builds if Snort was using > a pkg-config approach to link DPDK. I seriously doubt it, but maybe there is some deep linker magic that would pick the appropriate set of constructor. > > For tailq, I agree. For mempool constructors, order do matter. > > I don't know why such a complex function (rte_mempool_register_ops) is > called inside a constructor. Maybe that's the main problem. No. The problem is that the list of constructors linked by the linker in each binary is different, whereas DPDK expect them to be the same. Regards, Jean