From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 73E01106B for ; Wed, 4 Mar 2015 12:05:12 +0100 (CET) Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t24B59p2009665 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 4 Mar 2015 06:05:09 -0500 Received: from localhost.localdomain (vpn1-4-127.ams2.redhat.com [10.36.4.127]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t24B57N9028171; Wed, 4 Mar 2015 06:05:08 -0500 Message-ID: <54F6E6E3.50404@redhat.com> Date: Wed, 04 Mar 2015 13:05:07 +0200 From: Panu Matilainen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Thomas Monjalon References: <1534932.rt5IAT3UZl@xps13> In-Reply-To: <1534932.rt5IAT3UZl@xps13> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] config: default to shared library X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2015 11:05:12 -0000 On 03/04/2015 11:24 AM, Thomas Monjalon wrote: > Hi Panu, > > 2015-03-04 08:17, Panu Matilainen: >> With symbol versioning its vital that developers test their code in >> shared library mode, otherwise we'll be playing "add the forgotten >> symbol export" from here to eternity. > > Yes we must improve the sanity checks. > A lot of options must be tested (or removed) and not only shared libs. > But the error you reported before (missing export of rte_eth_dev_release_port) > cannot be seen even with this patch. I know, I didn't say it would have directly caught it. It would've likely been found earlier though, if nothing else then in testing of the new librte_pmd_null which clearly nobody had tried in shared lib configuration. > It means we need more tools. > Though, default configuration is not a tool. Yes, default config is not a tool, its a recommendation of sorts both for developers and users. It also tends to be the setup that is rarely broken because it happens to get the most testing :) > >> By defaulting to shared we should catch more of these cases early, >> but without taking away anybodys ability to build static. > > Shared libraries are convenient for distributions but have a performance > impact. I think that static build must remain the default choice. For distros, this is not a matter of *convenience*, its the only technically feasible choice. I didn't want to make the commit message into a shared library sermon, but if you look at the OSS landscape overall the common wisdom is that shared library benefits outweigh any performance impact by so much that static libs are almost nowhere to be found. I can change the text into a full-blown rationale why shared libraries should be the default if that makes any difference. - Panu -