From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) by dpdk.org (Postfix) with ESMTP id 5750D6832 for ; Fri, 3 Jan 2014 12:06:12 +0100 (CET) Received: by mail-we0-f171.google.com with SMTP id q58so13539336wes.30 for ; Fri, 03 Jan 2014 03:07:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:organization:to:subject:date:user-agent:cc :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=+AnIXlE/7LfiAnvOmdRtmLPg3zYfCny7CqLdCUR0Pko=; b=UtBJjmsKMzGPcIbfC/jUKIAKCQ2HLDCNpYDL4bCJ0aALEEsoTeFLAX1bJLFJds6Zr/ gDW1erZ807YOuTcpnqYyPyHr4STF4xliJgSYFHQoe+iQTK8evFqiuBD+SOsV5L+SIqA2 goD/n9Gxl8HJnlQHYha18oYKBElIcaItuwGhLnolXL9iQdUfijLMkyxwT0PPAfxsloh3 H8DEytQBNuiL4ISjUR4Pv1UEBZwQS09RoQ75U4VOrYgD0dSdPxLsaI2p3ZBnTZdzAs3r F9G0PV0tg4YJkOtOwSjuEaR5Gv4BgK/1JBwP1nB8vDGcxTssbk6VQVrG4HcyHBRttktr zWvg== X-Gm-Message-State: ALoCoQnLF7fNyR1wzQkxzFlQBhFg2y0OydVemY+LDYzUL0DtUBPtKiTtlXa20FdfmpRtudhzVoHc X-Received: by 10.194.20.230 with SMTP id q6mr35296434wje.49.1388747242760; Fri, 03 Jan 2014 03:07:22 -0800 (PST) Received: from angus.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id x4sm1988088wif.0.2014.01.03.03.07.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jan 2014 03:07:22 -0800 (PST) From: Thomas Monjalon Organization: 6WIND To: Hamid Ramazani Date: Fri, 3 Jan 2014 12:07:20 +0100 User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message-Id: <201401031207.20465.thomas.monjalon@6wind.com> Cc: dev@dpdk.org Subject: Re: [dpdk-dev] g++: undefined reference to 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: Fri, 03 Jan 2014 11:06:12 -0000 Hello, 03/01/2014 11:48, Hamid Ramazani : > eal_timer.c:(.text+0x42c): undefined reference to `clock_gettime' =46rom "man clock_gettime": Link with -lrt (only for glibc versions before 2.17). > g++ -m64 -pthread -march=3Dnative -DRTE_MACHINE_CPUFLAG_SSE > -DRTE_MACHINE_CPUFLAG_SSE2 -DRTE_MACHINE_CPUFLAG_SSSE3 > -DRTE_COMPILE_TIME_CPUFLAGS=3DRTE_CPUFLAG_SSE,RTE_CPUFLAG_SSE2,RTE_CPUFLA= G_SS > SE3 -I/home/hamid/dpdk/dpdk-1.5.1r1/examples/sample/build/include > -I/home/hamid/dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/include > -include > /home/hamid/dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/include/rte_conf > ig.h -O3 -W -Wall -Werror -Wmissing-declarations -Wpointer-arith > -Wcast-align -Wcast-qual -Wformat-nonliteral -Wformat-security -Wundef > -Wwrite-strings -Wl,-melf_x86_64 -Wl,-export-dynamic sample.cpp -o > sample -Wl,-L/home/hamid/dpdk/dpdk-1.5.1r1/examples/sample/build/lib > -Wl,-L/home/hamid/dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/lib > -Wl,-L/home/hamid/dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/lib > -Wl,-lrte_kni -Wl,-lrte_pmd_e1000 -Wl,-lrte_pmd_ixgbe -Wl,-lrte_mbuf > -Wl,-lrte_cmdline -Wl,-lrte_timer -Wl,-lrte_hash -Wl,-lrte_lpm > -Wl,--start-group -Wl,-lethdev -Wl,-lrte_malloc -Wl,-lrte_mempool > -Wl,-lrte_ring -Wl,-lrte_eal -Wl,-ldl -Wl,--end-group Try CONFIG_RTE_BUILD_COMBINE_LIBS=3Dy and -lintel_dpdk instead of all these= =20 libraries. You can also remove the warning options if you want. You can also try to build your Makefile by including files like=20 mk/rte.extapp.mk and defining CC=3Dg++. I don't exactly know what is needed for C++. Please keep us informed. =2D-=20 Thomas