Received: from sonic310-37.consmr.mail.ir2.yahoo.com (sonic310-37.consmr.mail.ir2.yahoo.com [77.238.177.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 909C31FB5 for ; Wed, 22 Feb 2023 07:21:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677050491; bh=OLzvhctcZshVTig50qxus4Hn3g1NEjM6UH/xdAQzje8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From:Subject:Reply-To; b=hkqzFDFDYlg0jxWPGToxCfS8pzOKgnbGymXhMzGcsfGYyYbrAKNaALUyeO64e7z0foKld/KNfyCldXhSb3r3LklwX7YitqnUcRdQYnYeYFOa+BFHWxQvo4zt8iWjCufz1thvv66Op3TZk6QB9dIQtdQ9gyMn5fqVuLvys6Srur5Pal9xHGFWPruqsxUEuizyqeXjXVA1DyC8lzxo7+jTEDzrCU4CUsAqIRDF77GRAZFhOjeHmvlTbfSzfe3PoNIKruwWhcDygCJXIg6xJBH5+H3523aemIHX2wnSHsyTufX6gr0gf799xgy5kPbL7GV8Drj4pnj1Hj4N0hrPERdWwA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677050491; bh=xdA/CYCxxsxK8Gi7e7K1CVSbpAivTCiEBVhTCI3F+K2=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=rRfrbDp/hDKc/kYFwn4ZOYEJdgGH2IIED+QGOwrJWZ09zyf9laptILtobnuRlnGEV5G3Qk9TbVvnY+b/k0p6POUu/gCJkcfAncVOahqzSlbbAKTHRc4G2kPhxXXsF1ZkKmRa5NOgxWrOS1a9l9zNos+j3gL0GQAwMb7AYsXJu+LwoERVIaPzZMvcK/q2pN6H/IjB182UUO2aiuMYqJC1t1ZQSBkb96ihspZRZy9ChQHHPJyWZkXv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mHbT9V377zo0ooYwghobY7Kv1C6rfmDPv1AZV4uRLoXoTq26wk.WLP_KJk.6T0PtdGF vpzcDeKlrjqR5NEvFVeqglhuhU7wXLyeNa8eofqdfTKJ61dxDjDCvOF5zNX8mu_zuOjBAk3_OdLT uAIslXg_3ZZRG4Lr4WFpSsqqmKFQmv9hGevD6sCZd41jU3wGa_v4hWGd96CiyVQqQB6z9Sav1luR cJu_cXdHTCQU6mlIHh6.W X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ir2.yahoo.com with HTTP; Wed, 22 Feb 2023 07:21:31 +0000 Received: by hermes--production-ir2-65c64dfd66-hxbb4 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 918bc84f4cebfbf6e2c2de83f0a645d6; Wed, 22 Feb 2023 07:19:30 +0000 (UTC) Message-ID: Date: Wed, 22 Feb 2023 08:19:29 +0100 Precedence: bulk X-Mailing-List: xenomai@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: undefined reference to `fuse_main_real_compat25' when build with --enable-registry To: Jan Kiszka , "xenomai@lists.linux.dev" Cc: "Chen, Hongzhan" References: <04a817d8-5792-c00b-8533-488cbc24cb4d@yahoo.com> <02c53276-6a36-8377-4792-575274793c66@yahoo.com> <023a8783-e78e-94e2-fd2a-0bf959b886de@siemens.com> Content-Language: it-IT From: "Mauro S." In-Reply-To: <023a8783-e78e-94e2-fd2a-0bf959b886de@siemens.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailer: WebService/1.1.21183 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Il 21/02/23 17:57, Jan Kiszka ha scritto: > On 21.02.23 11:40, Mauro S. wrote: >> Il 21/02/23 11:24, Mauro S. ha scritto: >>> Il 08/02/23 09:21, Jan Kiszka ha scritto: >>>> On 08.02.23 03:27, Chen, Hongzhan wrote: >>>>> >>>>> >>>>>> -----Original Message----- >>>>>> From: Mauro S. >>>>>> Sent: Tuesday, February 7, 2023 9:46 PM >>>>>> To: xenomai@lists.linux.dev >>>>>> Subject: undefined reference to `fuse_main_real_compat25' when >>>>>> build with - >>>>>> -enable-registry >>>>>> >>>>>> Hi all, >>>>>> >>>>>> I'm bulding Xenomai 3.2.2 for x86_64. >>>>>> >>>>>> When I configure the library with --enable-registry, I get the error >>>>>> >>>>>>    .. >>>>>>      CCLD     rtcanrecv >>>>>>    libcopperplate.so: undefined reference to `fuse_main_real_compat25' >>>>>>    collect2: error: ld returned 1 exit status >>>>>>    .. >>>>>> >>>>>> libfuse-dev package is installed (the configure script finds fuse), >>>>>> and >>>>>> it has the function fuse_main_real_compat25 exported >>>>>> >>>>>>    readelf -Ws /usr/lib/x86_64-linux-gnu/libfuse.so | grep >>>>>> fuse_main_real_compat25 >>>>>>     318: 000000000001a500    14 FUNC    GLOBAL DEFAULT   12 >>>>>> fuse_main_real_compat25@@FUSE_2.6 >>>>> >>>>> I do not know if it might be related to fuse version. In >>>>> configure.ac , it selects fuse version 25 but you are using 26? >>>>> >>>>> if test x$use_registry = xy; then >>>>>          PKG_CHECK_MODULES(FUSE, fuse) >>>>>          FUSE_CFLAGS="$FUSE_CFLAGS -DFUSE_USE_VERSION=25" >>>>>          AC_DEFINE(CONFIG_XENO_REGISTRY,1,[config]) >>>>> >>>>> AC_DEFINE_UNQUOTED(CONFIG_XENO_REGISTRY_ROOT,"$registry_root",[config]) >>>>> Fi >>>> >>>> That's a good hint. I vaguely recall similar issues when building >>>> against a newer version and trying to run that against an older one on >>>> the target. >>>> >>>> Jan >>>> >>> >>> Hi all, >>> >>> Yes, I'm using libfuse compiled with FUSE_USE_VERSION=26. >>> I'm building in Yocto. >>> >>> I tried to >>> - change FUSE_USE_VERSION=26 in Xenomai: does not work >>> - change FUSE_USE_VERSION=25 in fuse and rebuild it: does not work >>> >>> I finally removed the can utils from the Xenomai build (I don't need >>> it) and the build completes correctly. >>> >>> Seems that the fuse symbols are not found only for can utils (don't >>> know why). >>> >>> Thanks, regards >>> >> >> Replying to myself: Xenomai does build but does not work: >> >> /usr/lib/libcopperplate.so.0: undefined symbol: fuse_main_real_compat25 >> >> Strange thing is that /usr/lib/libcopperplate.so.0 does not depend by >> libfuse2 (that have the fuse_main_real_compat25 symbol exported) >> >> LD_TRACE_LOADED_OBJECTS=1 /lib/ld-linux-x86-64.so.2 >> /usr/lib/libcopperplate.so.0 >>     linux-vdso.so.1 (0x00007ffe6ed14000) >>     libcobalt.so.2 => /usr/lib/libcobalt.so.2 (0x00007f21fc308000) >>     libmodechk.so.0 => /usr/lib/libmodechk.so.0 (0x00007f21fc303000) >>     librt.so.1 => /lib/librt.so.1 (0x00007f21fc2f8000) >>     libpthread.so.0 => /lib/libpthread.so.0 (0x00007f21fc2d7000) >>     libc.so.6 => /lib/libc.so.6 (0x00007f21fc10a000) >>     /lib/ld-linux-x86-64.so.2 (0x00007f21fc355000) >> >> Other hints? Thanks in advance, regards > > If only can-utils are affected, it should be possible to spot some delta > in the Makefiles, the build logs or also the generated binaries of other > tools. There are many more tools, and the can-utils do not reference > fuse or the registry service explicitly. > Yes, I will go in this direction doing diffs between build logs, ldflags order etc. > And: Where does version 25 come from? Do you have it on the host, and > something actually leaks into the yocto build so that the host libs are > referenced? Version 25 is the libfuse API/ABI version that Xenomai wants to use, and it is indicated in Xenomai's configure.ac, as pointed out by Chen. libfuse is built with version 26, but contains backward compatibility API/ABI for version 25, allowing the binaries to use it like Xenomai is doing. In fact, the libfuse2.so library contains the fuse_main_real_compat25, but canutils does not see it during the build, and libcopperplate does not find it at runtime because seems not linked to libfuse2. I will do more investigations about it. Thanks, regards > > Jan > -- Mauro S.