From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qg0-f41.google.com (mail-qg0-f41.google.com [209.85.192.41]) by dpdk.org (Postfix) with ESMTP id 2B89B9655 for ; Thu, 19 May 2016 17:38:53 +0200 (CEST) Received: by mail-qg0-f41.google.com with SMTP id f92so45454154qgf.0 for ; Thu, 19 May 2016 08:38:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=4CX6fnndK4egULUM9Yc2ybUAtAXKBGQ0UIX/vFP6uc8=; b=Jw7fcqILdFImm0I8rV7R0ftKMMtBa+R/91CF4ySI5nAyi5pSi4w3JENqxEUXGSBKH/ UiTw0HCLrUcYedUSUO+1IlEV1fBE8R2CsPpj/DuP+76v9GZuVtTBcgYwLe+DXhX6kT00 pkKseLQ0tRJZymzukmDK78bPWc7LAzWgODB/H9JxOLX3rMM0UTwsGjJQ5Fvdcu51nkmN WdSmcwSnhugF4GU0PodP/BcOt49rIWihLX8u7/H3cFVJuQo1QAPAy1Qvp9FH2low6ve7 BEb123bHmYnXxtqabqRxhpf4S2ohMyZ/0qKEUe9SBzqvUTzUCb/Pi7z5Su6Cd2zOJzbk xE+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4CX6fnndK4egULUM9Yc2ybUAtAXKBGQ0UIX/vFP6uc8=; b=JzsWceJ0iBgHBvULqAUyODAWd24qIAJBbldiKvfM7+FmNRYLcUOJymVp0yZHjuGy5A 9afoIaPpsmA6robu8q/jOvpR6s5vSDk00j92jCu+A/OTE4vMVZxqvnqrnZj/gHkhvUlg fgk9oE6CPD0Ippu3FsPy7JRKmfA5rrZm01IkUSnn74Ais8x72VAPqrfWyZH0lmhSobpa RSIgWTUnaxuRGFs3vIESYbQQxNQH2Ax+DwyttZJ14YMNuXAQr1wx/tdY2A+uZw3/7YVa 8RbwuxiZ/cAO6K4Dfxygs6m80TbWeB17hWn20cvtciQCs3yjmtdm08m9QjPFKDdzg8VK c62w== X-Gm-Message-State: AOPr4FUlB7h2TCf8s7ECaDm2zvpviQXIawewe0LLX3UC9Fjb8eIPSo24GeRvAHMk8U6GxksrGGUM8X081BxFwjKk X-Received: by 10.140.92.115 with SMTP id a106mr730735qge.93.1463672332562; Thu, 19 May 2016 08:38:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.97.3 with HTTP; Thu, 19 May 2016 08:38:33 -0700 (PDT) From: Christian Ehrhardt Date: Thu, 19 May 2016 17:38:33 +0200 Message-ID: To: dev Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Underlinked libs and overlinked applications - an issue? 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: Thu, 19 May 2016 15:38:53 -0000 Hi, I was working on the new 16.04 build system to adapt deb packaging to it. I remember somewhen back in the DPDK 2.2 and shared+combined library days I had some issues with over/underlinking - but it seems those are still existent or came back. After a build in almost default config (just disabled the kernel modules) and set RTE_MACHINE to default I find the following. #1 The libraries are all only linked against external things - even clearly using internal structures: ldd usr/lib/x86_64-linux-gnu/librte_lpm.so.2 linux-vdso.so.1 => (0x00007fff7e7a5000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f175d4dd000) /lib64/ld-linux-x86-64.so.2 (0x0000558d3afbf000) #2 The Application then seem to try to make up for that by realizing all that is missing. But looking at the app alone it seems overlinked by that - it is not using all of these on its own. ldd usr/bin/cmdline_test linux-vdso.so.1 => (0x00007ffeec9ea000) librte_distributor.so.1 => not found librte_reorder.so.1 => not found [...] librte_jobstats.so.1 => not found [...] And for example none of the librte_jobstats.so.1 symbols are used "directly" in there. I'm still digging into that concept of using a linker script for all of that and some of the new implications by that. And eventually thing "work", but this linking at least feels wrong to me. So I wanted to ask - is that intentional - or should that be fixed? If it should be fixed are there obvious suggestions where/how? And if it is intentional - could one be so nice to elaborate it a bit for me - thanks in advance. Christian Ehrhardt Software Engineer, Ubuntu Server Canonical Ltd