From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DAD9C3A5A2 for ; Wed, 4 Sep 2019 00:19:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E34C921897 for ; Wed, 4 Sep 2019 00:19:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726451AbfIDATg (ORCPT ); Tue, 3 Sep 2019 20:19:36 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:57264 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725882AbfIDATg (ORCPT ); Tue, 3 Sep 2019 20:19:36 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D24E9FF7AA9B13E08EDC for ; Wed, 4 Sep 2019 08:19:33 +0800 (CST) Received: from [10.177.253.249] (10.177.253.249) by smtp.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Wed, 4 Sep 2019 08:19:25 +0800 To: CC: "linux-fsdevel@vger.kernel.org" , "wangyan (AF)" From: piaojun Subject: [QUESTION] `FUSE_3.1' not found error when calling fuse_new() Message-ID: <5D6F030B.7060901@huawei.com> Date: Wed, 4 Sep 2019 08:19:23 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.253.249] X-CFilter-Loop: Reflected Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Hi Miklos, I encounter an error when calling fuse_new() from libfuse3.so.3, and I wonder if I missed some macro like 'FUSE_3.1' or fuse_new() could not be called like this? Hope for your help. --- # ./main ./main: /usr/local/lib/libfuse3.so.3: version `FUSE_3.1' not found (required by ./main) main.c: #define FUSE_USE_VERSION 30 #include #include static struct fuse_operations hello_oper; int main(int argc, char *argv[]) { struct fuse_args args = FUSE_ARGS_INIT(argc, argv); struct fuse *fs; fs = fuse_new(&args, &hello_oper, sizeof(hello_oper), NULL); return 0; } --- The fuse3-libs and devel rpm is from the following website: https://centos.pkgs.org/7/epel-x86_64/fuse3-devel-3.6.1-2.el7.x86_64.rpm.html https://centos.pkgs.org/7/epel-x86_64/fuse3-libs-3.6.1-2.el7.x86_64.rpm.html Thanks, Jun