From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Compile errors with libc < 2.12 Date: Wed, 18 Nov 2015 13:32:20 +0000 Message-ID: <20151118133220.GA11599@sivlogin002.ir.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: dev@dpdk.org Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 8B8F53787 for ; Wed, 18 Nov 2015 14:32:43 +0100 (CET) Received: from sivlogin002.ir.intel.com (sivlogin002.ir.intel.com [10.237.217.37]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id tAIDWKoO009014 for ; Wed, 18 Nov 2015 13:32:20 GMT Received: from sivlogin002.ir.intel.com (localhost [127.0.0.1]) by sivlogin002.ir.intel.com with ESMTP id tAIDWKgt023957 for ; Wed, 18 Nov 2015 13:32:20 GMT Received: (from fyigit@localhost) by sivlogin002.ir.intel.com with œ id tAIDWK6K023953 for dev@dpdk.org; Wed, 18 Nov 2015 13:32:20 GMT Content-Disposition: inline List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" When libc version is < 2.12 there are two compile errors, both introduced= in DPDK2.2, more details below. We can solve issue in a few ways: 1- Ignore errors, this depends on if any user has this version. glibc 2.1= 2 released around 2010, still may have distros with libc < 2.12, at least= SUSE11 does. 2- Make DPDK compatible with older glibc versions.=20 3- Use a compile option to wrap functionality that fails I prefer option 2, option 1 may break DPDK for some users, and option 3 adds new complexity = and dependency to maintain. Please advise how to proceed?=20 Compile issues: 1- pthread_setname_np()=20 Error msg: error: implicit declaration of function =E2=80=98pthread_setna= me_np=E2=80=99 Reason: pthread_setname_np() introduced in glibc 2.12 Commit: eal: set name to threads (commit 67b6d3039e9edbc4624c878c6930be5e= 126e8b58) Introduced in: DPDK2.2 Comment: This is mostly for debug, can be reverted without functionality = loss 2- CLOCK_MONOTONIC_RAW macro Error msg: error: identifier "CLOCK_MONOTONIC_RAW" is undefined Reason: CLOCK_MONOTONIC_RAW introduced in glibc 2.12 Commit eal/linux: make alarm not affected by system time jump (commit d08= d304508a8a8caf255baf622ab65db1fec952c) Introduced in: DPDK2.2 Comment: Can keep functionality but may use supported "CLOCK_MONOTONIC" i= nstead of "CLOCK_MONOTONIC_RAW" Thanks, ferruh