From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 99E0FA034E; Sun, 7 Jun 2020 14:27:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8157D1BFAD; Sun, 7 Jun 2020 14:26:59 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00061.outbound.protection.outlook.com [40.107.0.61]) by dpdk.org (Postfix) with ESMTP id D6FE81BF93 for ; Sun, 7 Jun 2020 14:26:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bIQ2TZ9hvzNGWteaNl+ux9TKvTgt3cbG1dlSeDKD0GLbO+5LyCRSNrKJXE31pfn/qsrlme+t6NBQNv+qAk5Jio+dgIndk1n7NibtMPa4VF4S7pxwmk6fnKm3sZ9MfISi//Aq4ftNYKZC8BEKyGRnGKlcx8Vq4UwKpO4aU7STUZGCZCoWZFDgMhprTZuMCIWJui8PbZH+VWUvBUTmFD7GihcC3bF0DKKkzV8bnWw8rTpheXk7X209Zc2ISHRLSzpkOB59uLCMnctH0M6t+9wjZJs4ZLLOu0b1tDcxFWHstGElzO6mtFX4GALWuuB43QqLRDzQlnooa4XT/vx0Rv2UxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wjHC3864FzjeCZRG2WRTwsCpkJ6GQt3IeGKA6KkAx+I=; b=AZPAsAh4Bi8tdhMWpWLgSZrxuAQctNwdzVSkie5NwzeNV+8Rx4/IOfskm6/5YiukGRjHTVmxqYQ1QyZY4LYDbtBEtwYJBL/ivSo0Ls1ULFEM1ayGb02v0vBinSLdxYhHLAO3txPWIeQJtajyMqrrUptNcHlOdBqDESxK34DttnI+trFO79WA3ljRPJM0BWmTZ1MdH7RY0sns4tImvDuWWlLNA4w7f8u/VX8wXi6IjSAK3UzfhOfbXkbyK758d4/2WVsBb8ubZNMwDzIyQzVirKtRIBAWu1ULlkQaqiGUmqbJN9x7MgkZ+J2XBzwvG8lpPA/WHjAGuKcoHOi5K7XuDQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wjHC3864FzjeCZRG2WRTwsCpkJ6GQt3IeGKA6KkAx+I=; b=OP034qP7wVFScNbU24ewzqDLWP0OyG04TcvpO8l82IhFqELsOM/8rysjNuAyfdjbvtp/xv7/yh3PJjYsuUmVe2PKJjj2i0EZVgtU1UNV2vBBcRpXSxgg2J1akWa2b+LAUCdsR3sJD/VIh+nXC6Ip7ekyBhQXq/dOCHjc9J9khn4= Received: from AM0PR05MB5313.eurprd05.prod.outlook.com (2603:10a6:208:f2::28) by AM0PR05MB6787.eurprd05.prod.outlook.com (2603:10a6:20b:15a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Sun, 7 Jun 2020 12:26:56 +0000 Received: from AM0PR05MB5313.eurprd05.prod.outlook.com ([fe80::3069:d8f4:fadc:4d7]) by AM0PR05MB5313.eurprd05.prod.outlook.com ([fe80::3069:d8f4:fadc:4d7%5]) with mapi id 15.20.3066.023; Sun, 7 Jun 2020 12:26:56 +0000 From: Tal Shnaiderman To: Thomas Monjalon , Dmitry Kozlyuk , "ranjit.menon@intel.com" , "pallavi.kadam@intel.com" , Harini Ramakrishnan , "navasile@linux.microsoft.com" , "bruce.richardson@intel.com" , William Tu , "Dmitry Malloy (MESHCHANINOV)" , Fady Bader , Tasnim Bashar CC: "dev@dpdk.org" Thread-Topic: Handling missing export functions in MSVC linkage Thread-Index: AdY8xk4gV3xCwzEtR3GP4gSGphqm0w== Date: Sun, 7 Jun 2020 12:26:56 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [37.142.1.17] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 52d86161-3bd3-4331-7fdb-08d80ade11a6 x-ms-traffictypediagnostic: AM0PR05MB6787: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 04270EF89C x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: X0whyjqmYx1R8gmCtXRHv/KRfneGc3UDzb6jxDfSf8rXRF9AW5VOgll+eUl/nrocAZgkkkDRhOQHfraTEk3HHhVyxKIih0ioFva3Wn/JU0LOaw4f55nbxV7UHr5w7bqDTjhc78Cs3QDTAJDMancpVLSVLx3LGU1MKZ2Xa0Wp3x1gGYLalWSjT3qtbLbwPMfsk9U7zSoETqyArU+kgVrFvaY+ZohNiG2gQk0MGrDZneAg6nCP5wocll5ElZhfUahLT11vaQ8bqeveX/tkB8iWFThMH6/ybVO6hFoBioF7PGrcH2aY4bXClegvGgwYStbHzsgjcPKgfM3dVVGBf0Y8kZz29Nkk9m7vbm8ZBAFeROUM2Z77nsQaMVUXYjxIZ10l5PjOfyEYPF3/YinR4MIXABBMm9tcX+r2BpMyYS0yLw5Gh6RmUsyMVk6cD3sAVfNp x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB5313.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(366004)(39860400002)(346002)(136003)(376002)(66946007)(76116006)(26005)(6636002)(66446008)(86362001)(2906002)(52536014)(5660300002)(316002)(7416002)(64756008)(66476007)(186003)(71200400001)(66556008)(4744005)(4326008)(7696005)(8676002)(478600001)(966005)(55016002)(33656002)(8936002)(110136005)(9686003)(6506007)(921003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: I20mLfaqz+6lZc8RjPM4txGOSBr/abkAn/Ct7PR4anTDIe7EpRr1fqHQB8mP7UaxBFe3nGKvjO0N7wHXUuIS5Ybqr7FfiQa1LzIpWTpRY8Y7o2NJawk0bdRYXMLYTzkpn6buMCDFF0bO1H5bgQBZq0GLi12nSiNT1ubWnUkHEbC9KAcfcpOuDg1xd3GGdIIIrr8ntutvEWp3tGBSg7aI7oo9L8LBOP9Ff8MXZOl/XieF1ADqtsSboLokGQ1b/Q+G9v9BF3+Jr1gttplp8rOba3s0UQ5FbjVfIwsPyUaEzqQn4sc3IiLuhhynOwLsNMa7NS43OVmYJKYxNlE4OKo7ORlxPpejpCdJSLEQH8/fn0mRA9xwZ4ziiZHQuEQdrB61dXBNL3SG3r6UXu87DjplIHueEpnXh8xRCTZETuwdw45QaI4nkH71xw9lrdsyK3lCzOVqn5WQNmGdcp2Q/4/PegG2XYt28hgS/FL8ComxzXo= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 52d86161-3bd3-4331-7fdb-08d80ade11a6 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jun 2020 12:26:56.6627 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wYXEJHuvp3ikRN7nSf4y7W8Y8iOF5qsC8VXftRb27+4rPsZmkzLQuMx00UZNPgQv8JRMZlMCJu3jkyXWgbH2Mw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB6787 Subject: [dpdk-dev] Handling missing export functions in MSVC linkage X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, I was wondering if there is a known solution for the following problem: Whenever building a DPDK library using clang/MSVC there is an linkage issue= if the rte_*_version.map names a function that isn't being compiled. For example, in librte_metrics several files in the lib build depend on the= existence of jansson, however, since the functions in those files are stat= ed in rte_metrics_version.map MSVC prints out errors in the linkage stage in case jansson is missing: *error LNK2001: unresolved external symbol rte_metrics_tel_....=20 In clang build the .map file is converted into Module-Definition (.Def) Fil= e. https://docs.microsoft.com/en-us/cpp/build/reference/module-definition-dot-= def-files?view=3Dvs-2019 Is there a way to instruct the linker to ignore missing functions in the de= f file? Thanks, Tal.