Created attachment 195200 [details] patch qt5 needs localbase:ldflags. Tested on 11-RELEASE with Poudriere.
What problem does it solve? I launched pou testport for 11.1-RELEASE, but this would take a while.
Created attachment 195201 [details] patch Corrected line numbers.
(In reply to Gleb Popov from comment #1) Building on CURRENT from yesterday fails with: [20/22] : && /usr/bin/c++ -fPIC -O2 -pipe -march=native -DHARDENEDBSD -fPIE -fPIC -mretpoline -fstack-protector-all -fno-strict-aliasing -DHARDENEDBSD -fPIE -fPIC -mretpoline -std=c++11 -O2 -pipe -march=native -DHARDENEDBSD -fPIE -fPIC -mretpoline -fstack-protector-all -fno-strict-aliasing -DHARDENEDBSD -fPIE -fPIC -mretpoline -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,retpolineplt -fstack-protector -shared -Wl,-soname,libqt5keychain.so.1 -o libqt5keychain.so.0.9.0 CMakeFiles/qt5keychain.dir/keychain.cpp.o CMakeFiles/qt5keychain.dir/keychain_unix.cpp.o CMakeFiles/qt5keychain.dir/gnomekeyring.cpp.o CMakeFiles/qt5keychain.dir/libsecret.cpp.o CMakeFiles/qt5keychain.dir/plaintextstore.cpp.o CMakeFiles/qt5keychain.dir/kwallet_interface.cpp.o CMakeFiles/qt5keychain.dir/moc_keychain.cpp.o CMakeFiles/qt5keychain.dir/moc_keychain_p.cpp.o CMakeFiles/qt5keychain.dir/moc_gnomekeyring_p.cpp.o -Wl,-rpath,/usr/local/lib/qt5: -lsecret-1 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl /usr/local/lib/qt5/libQt5DBus.so.5.10.1 /usr/local/lib/qt5/libQt5Core.so.5.10.1 && : FAILED: libqt5keychain.so.0.9.0 : && /usr/bin/c++ -fPIC -O2 -pipe -march=native -DHARDENEDBSD -fPIE -fPIC -mretpoline -fstack-protector-all -fno-strict-aliasing -DHARDENEDBSD -fPIE -fPIC -mretpoline -std=c++11 -O2 -pipe -march=native -DHARDENEDBSD -fPIE -fPIC -mretpoline -fstack-protector-all -fno-strict-aliasing -DHARDENEDBSD -fPIE -fPIC -mretpoline -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,retpolineplt -fstack-protector -shared -Wl,-soname,libqt5keychain.so.1 -o libqt5keychain.so.0.9.0 CMakeFiles/qt5keychain.dir/keychain.cpp.o CMakeFiles/qt5keychain.dir/keychain_unix.cpp.o CMakeFiles/qt5keychain.dir/gnomekeyring.cpp.o CMakeFiles/qt5keychain.dir/libsecret.cpp.o CMakeFiles/qt5keychain.dir/plaintextstore.cpp.o CMakeFiles/qt5keychain.dir/kwallet_interface.cpp.o CMakeFiles/qt5keychain.dir/moc_keychain.cpp.o CMakeFiles/qt5keychain.dir/moc_keychain_p.cpp.o CMakeFiles/qt5keychain.dir/moc_gnomekeyring_p.cpp.o -Wl,-rpath,/usr/local/lib/qt5: -lsecret-1 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl /usr/local/lib/qt5/libQt5DBus.so.5.10.1 /usr/local/lib/qt5/libQt5Core.so.5.10.1 && : c++: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] /usr/bin/ld: error: unable to find library -lsecret-1 /usr/bin/ld: error: unable to find library -lgio-2.0 /usr/bin/ld: error: unable to find library -lgobject-2.0 /usr/bin/ld: error: unable to find library -lglib-2.0 /usr/bin/ld: error: unable to find library -lintl c++: error: linker command failed with exit code 1 (use -v to see invocation)
Since the update to qtkeychain-0.9.0 I also have the linker error /usr/bin/ld: cannot find -lsecret-1 -- Martin
The patch fixes the issue for me. -- Martin
You both seem to be running non-KDE desktop. Just out of curiosity, what port pulled in qtkeychain for you?
(In reply to Gleb Popov from comment #6) deskutils/nextcloudclient for me.
I am running x11/kde4 nextcloudclient pulled in qtkeychain for me, too. -- Martin
Created attachment 195214 [details] Maintainer's patch Can you check if this patch fixes issue for you?
You need to add LIBSECRET_CMAKE_BOOL= LIBSECRET_SUPPORT
No, it doesn't help. /usr/bin/ld: error: unable to find library -lsecret-1 /usr/bin/ld: error: unable to find library -lgio-2.0 /usr/bin/ld: error: unable to find library -lgobject-2.0 /usr/bin/ld: error: unable to find library -lglib-2.0 /usr/bin/ld: error: unable to find library -lintl The problem is that those libraries can't be found, because correct library path isn't passed. USES=localbase:ldflags is therefore necessary.
A commit references this bug: Author: arrowd Date: Wed Jul 18 19:17:29 UTC 2018 New revision: 474893 URL: https://svnweb.freebsd.org/changeset/ports/474893 Log: security/qtkeychain: Add dependency to libsecret and link to it correctly. PR: 229837 Reported by: Piotr Kubaj <pkubaj@anongoth.pl> Approved by: tcberner (mentor) Changes: head/security/qtkeychain/Makefile
This should be fixed by now. Thanks for your report.