DPDK patches and discussions
 help / color / mirror / Atom feed
From: Christian Ehrhardt <christian.ehrhardt@canonical.com>
To: Raslan Darawsheh <rasland@mellanox.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Compiling DPDK is not working on Red Hat 6.7
Date: Tue, 12 Jul 2016 12:09:30 +0200	[thread overview]
Message-ID: <CAATJJ0KLuSOAizdEyLOXBkqTSdzXOJH_+OSFgCh+6kzTEtgpLg@mail.gmail.com> (raw)
In-Reply-To: <HE1PR05MB1578E5C1DDD4A9005B8254FCC2300@HE1PR05MB1578.eurprd05.prod.outlook.com>

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 <rasland@mellanox.com>
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
>

  reply	other threads:[~2016-07-12 10:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-12 10:02 Raslan Darawsheh
2016-07-12 10:09 ` Christian Ehrhardt [this message]
2016-07-12 11:35   ` Raslan Darawsheh
2016-07-12 12:15     ` Thomas Monjalon
2016-07-13  6:01       ` Raslan Darawsheh
2016-07-13  7:45         ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAATJJ0KLuSOAizdEyLOXBkqTSdzXOJH_+OSFgCh+6kzTEtgpLg@mail.gmail.com \
    --to=christian.ehrhardt@canonical.com \
    --cc=dev@dpdk.org \
    --cc=rasland@mellanox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).