From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f171.google.com (mail-qt0-f171.google.com [209.85.216.171]) by dpdk.org (Postfix) with ESMTP id 477262A5F for ; Tue, 12 Jul 2016 12:09:50 +0200 (CEST) Received: by mail-qt0-f171.google.com with SMTP id j35so5264957qtj.2 for ; Tue, 12 Jul 2016 03:09:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4DLhiPByxkZ4qPIDrsh/BSgd9s3fqWOdNQACRytOqdA=; b=VA7qt/Fhpv5AwzsfrW/KM9LH2lvucXjgGLHFh9y9uua6n9TVeaC/hZUGyFQHjLqSlw ha/if3kTHJRe1tFF13oqtqSvxXlxGt66GARndroLHSBMjg6OxEIIOkujKv0b7pdXwLqd vF2NTGrpn9HvhIKDmla8tlHfLQOE6Z2RKz1EQ065MrcqvHgerjRrhnj80OMUVXX6i0kZ Rm/cJwJvMnECwCUUY4WtTB+LVemuch6t61xlkl5NoLaM6AjoY1zJ45HKkKyAH3QdKZb6 aexNZvclq5xTU+1937rQ57JcWYycZ8Mq/2r9MI/DajfmAbym6lIxGGYGZM36fYaBVE8Z 6wPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4DLhiPByxkZ4qPIDrsh/BSgd9s3fqWOdNQACRytOqdA=; b=PLsj+IITBo/qHXrNAmaI4hFfbiNaz+qwmOLxqYIHV4/N8Vqg/04jF8dSO57f41fyr4 eszYnm8+8ya0QKbfY7fi84q4GCayyEUHZ16kRcWujblw4lG/dAA9z7Qa9soDeqI5znMZ wuaCSaTeQsGD350+jzFVbdJjQdmAlnjcXQ8r+G/upE61jrjyfABmdpLvB8zBngp3tNi0 XqzjsHabJtvMFDWgfZPKNHc7bMu5DqMwRaJJTaZe6VleMau3NLOAwynVtou66PuADxDr elN2XNJF8ChZqVMORe5LkO6/hrYzybnSxEGC7srTPspPZBadtXS0DUxG+4hnHeS3SEph X7Kw== X-Gm-Message-State: ALyK8tLs4vP1Uv3rF8UgPjr2mvTEiAFFMFm69rmdUlSkSbw+gm2fJsFPUoN69QQNAmupGBLHDAT7HaRqkkwESRND X-Received: by 10.200.57.34 with SMTP id s31mr2130608qtb.49.1468318189685; Tue, 12 Jul 2016 03:09:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.23.77 with HTTP; Tue, 12 Jul 2016 03:09:30 -0700 (PDT) In-Reply-To: References: From: Christian Ehrhardt Date: Tue, 12 Jul 2016 12:09:30 +0200 Message-ID: To: Raslan Darawsheh Cc: "dev@dpdk.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Compiling DPDK is not working on Red Hat 6.7 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: Tue, 12 Jul 2016 10:09:50 -0000 Hi, checking "man clock_gettime" I see: "Link with -lrt (only for glibc versions before 2.17)." RH 6.7 is at glibc 2.12, I haven't check the build, but you might easily run the make with V=1 and see the call. Check if it contains -lrt for the linking step. Christian Ehrhardt Software Engineer, Ubuntu Server Canonical Ltd On Tue, Jul 12, 2016 at 12:02 PM, Raslan Darawsheh wrote: > Hi, > > When trying to compile DPDK on Red Hat Enterprise Linux Server release 6.7 > (Santiago) it fails to compile. > > This is the compilation error that is being seen: > LD test > /download/dpdk/x86_64-native-linuxapp-gcc/lib/librte_eal.a(eal_timer.o): > In function `get_tsc_freq': > eal_timer.c:(.text+0x152): undefined reference to `clock_gettime' > eal_timer.c:(.text+0x190): undefined reference to `clock_gettime' > /download/dpdk/x86_64-native-linuxapp-gcc/lib/librte_eal.a(eal_alarm.o): > In function `rte_eal_alarm_set': > eal_alarm.c:(.text+0x382): undefined reference to `clock_gettime' > /download/dpdk/x86_64-native-linuxapp-gcc/lib/librte_eal.a(eal_alarm.o): > In function `eal_alarm_callback': > eal_alarm.c:(.text+0x5e2): undefined reference to `clock_gettime' > collect2: ld returned 1 exit status > make[5]: *** [test] Error 1 > make[4]: *** [test] Error 2 > make[3]: *** [app] Error 2 > make[2]: *** [all] Error 2 > make[1]: *** [pre_install] Error 2 > make: *** [install] Error 2 > > Kindest regards > Raslan Darawsheh >