Bug 328411 - Linking kio_nfs.so fails due to missing -ltirpc
Summary: Linking kio_nfs.so fails due to missing -ltirpc
Status: RESOLVED FIXED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: NFS (show other bugs)
Version: 18.04.3
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 334734 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-12-04 07:35 UTC by Markus Trippelsdorf
Modified: 2021-02-04 21:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Trippelsdorf 2013-12-04 07:35:48 UTC
With glibc trunk I get:
/usr/local/bin/clang++  -w -march=native -O2 -flto -fPIC -march=native -O2 -pipe  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -Woverloaded-virtual -fno-common -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -Wno-return-type-c-linkage -Wl,--enable-new-dtags
 -Wl,--no-undefined -lc  -Wl,--hash-style=gnu,--as-needed,--gc-sections,--icf=all,--icf-iterations=3 -shared -Wl,-soname,kio_nfs.so -o ../../lib/kio_nfs.so CMakeFiles/kio_nfs
.dir/kio_nfs_automoc.o CMakeFiles/kio_nfs.dir/kio_nfs.o CMakeFiles/kio_nfs.dir/mount_xdr.o CMakeFiles/kio_nfs.dir/nfs_prot_xdr.o  -L/usr/lib64/qt4 /usr/lib64/libkio.so.5.11.4
 /usr/lib64/qt4/libQtNetwork.so /usr/lib64/qt4/libQtXml.so /usr/lib64/libkdeui.so.5.11.4 /usr/lib64/qt4/libQtGui.so /usr/lib64/qt4/libQtSvg.so /usr/lib64/libkdecore.so.5.11.4
 /usr/lib64/qt4/libQtDBus.so /usr/lib64/qt4/libQtCore.so -lpthread -Wl,-rpath,/usr/lib64/qt4
/var/tmp/portage/kde-base/kdebase-kioslaves-4.11.4/temp/lto-llvm-a41f68.o:ld-temp.o:function NFSProtocol::openConnection(): error: undefined reference to 'clnttcp_create'
/var/tmp/portage/kde-base/kdebase-kioslaves-4.11.4/temp/lto-llvm-a41f68.o:ld-temp.o:function NFSProtocol::openConnection(): error: undefined reference to 'clntudp_create'
/var/tmp/portage/kde-base/kdebase-kioslaves-4.11.4/temp/lto-llvm-a41f68.o:ld-temp.o:function NFSProtocol::openConnection(): error: undefined reference to 'clnt_pcreateerror'
/var/tmp/portage/kde-base/kdebase-kioslaves-4.11.4/temp/lto-llvm-a41f68.o:ld-temp.o:function NFSProtocol::openConnection(): error: undefined reference to 'authunix_create'
/var/tmp/portage/kde-base/kdebase-kioslaves-4.11.4/temp/lto-llvm-a41f68.o:ld-temp.o:function NFSProtocol::openConnection(): error: undefined reference to 'xdr_void'
/var/tmp/portage/kde-base/kdebase-kioslaves-4.11.4/temp/lto-llvm-a41f68.o:ld-temp.o:function NFSProtocol::openConnection(): error: undefined reference to 'clnttcp_create'
etc.

Adding -ltirpc fixes the issue

Reproducible: Always
Comment 1 Markus Trippelsdorf 2014-03-05 09:13:19 UTC
Ping. Still happens with 4.12.3.
Comment 2 Dawit Alemayehu 2014-11-24 13:00:31 UTC
*** Bug 334734 has been marked as a duplicate of this bug. ***
Comment 3 Markus Trippelsdorf 2015-11-12 10:56:42 UTC
Still happens with kde-apps/kio-extras-15.08.3.

...
CMake Error at nfs/CMakeLists.txt:10 (message):
  Could not find 64-bit XDR datatype functions!
Comment 4 Jonathan Marten 2021-02-04 21:09:24 UTC
Believed fixed, kio_nfs compiles with current Glibc using TIRPC.
Please reopen if there are still build problems on any particular platform.