Hi Daniel,
The patch worked. Thanks!
- Sriram
On 4/23/19, 5:42 PM, "Daniel Gryniewicz" <dang(a)redhat.com> wrote:
Okay, I think this is caused by having an old version of gcc. I see
similar error on Fedora 24 (gcc 6.3.1) but not on Fedora 27 or newer.
For me, I have to patch out LTTng support from ntirpc to build it for
Ganesha. Something like the attached patch may work for you.
Daniel
On 4/23/19 6:04 AM, Sriram Patil wrote:
Also, lttng version,
sriramp@ubuntu:~/workspace/nfs-ganesha/build$ lttng --version
lttng (LTTng Trace Control) 2.7.1 - Herbe à Détourne
- Sriram
On 4/23/19, 10:15 AM, "Sriram Patil" <sriramp(a)vmware.com> wrote:
Hi Daniel,
Here's my configuration,
sriramp@ubuntu:~/workspace/nfs-ganesha/build$ uname -a
Linux ubuntu 4.8.0-36-generic #36~16.04.1-Ubuntu SMP Sun Feb 5 09:39:57 UTC 2017
x86_64 x86_64 x86_64 GNU/Linux
sriramp@ubuntu:~/workspace/nfs-ganesha/build$ cmake --version
cmake version 3.5.1
CMake suite maintained and supported by Kitware (
kitware.com/cmake).
sriramp@ubuntu:~/workspace/nfs-ganesha/build$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- Sriram
On 4/22/19, 7:04 PM, "Daniel Gryniewicz" <dang(a)redhat.com> wrote:
They both build for me (I always build with LTTng). What
distro/version/compiler/cmake are you using?
Daniel
On 4/20/19 3:34 PM, Sriram Patil wrote:
> Hi,
>
> It looks like lttng linking is broken in both top of the tree and
> 2.7-stable branch. I am seeing following errors when trying to compile
> ganesha by setting USE_LTTNG,
>
> On top of tree,
>
> /usr/bin/ld: ganesha.nfsd: hidden symbol `tracepoint_dlopen' in
> CMakeFiles/ganesha.nfsd.dir/MainNFSD/nfs_main.c.o is referenced by DSO
>
> /usr/bin/ld: final link failed: Bad value
>
> collect2: error: ld returned 1 exit status
>
> CMakeFiles/ganesha.nfsd.dir/build.make:107: recipe for target
> 'ganesha.nfsd' failed
>
> make[2]: *** [ganesha.nfsd] Error 1
>
> CMakeFiles/Makefile2:201: recipe for target
> 'CMakeFiles/ganesha.nfsd.dir/all' failed
>
> make[1]: *** [CMakeFiles/ganesha.nfsd.dir/all] Error 2
>
> Makefile:149: recipe for target 'all' failed
>
> make: *** [all] Error 2
>
> On V2.7-stable branch,
>
> /usr/bin/ld: rpcping: hidden symbol `tracepoint_dlopen' in
> ../src/lttng/libntirpc_lttng.a(main.c.o) is referenced by DSO
>
> /usr/bin/ld: final link failed: Bad value
>
> collect2: error: ld returned 1 exit status
>
> libntirpc/tests/CMakeFiles/rpcping.dir/build.make:109: recipe for target
> 'libntirpc/tests/rpcping' failed
>
> make[2]: *** [libntirpc/tests/rpcping] Error 1
>
> CMakeFiles/Makefile2:450: recipe for target
> 'libntirpc/tests/CMakeFiles/rpcping.dir/all' failed
>
> make[1]: *** [libntirpc/tests/CMakeFiles/rpcping.dir/all] Error 2
>
> Makefile:149: recipe for target 'all' failed
>
> make: *** [all] Error 2
>
> - Sriram
>
>
> _______________________________________________
> Devel mailing list -- devel(a)lists.nfs-ganesha.org
> To unsubscribe send an email to devel-leave(a)lists.nfs-ganesha.org
>
_______________________________________________
Devel mailing list -- devel(a)lists.nfs-ganesha.org
To unsubscribe send an email to devel-leave(a)lists.nfs-ganesha.org