
Hi, I'm trying to compile a program from source I stuck on these errors and so far I have been able to find the root cause: [87%] Linking CXX executable record_time_signal/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: cannot find -ludev: File or directory does not existcollect2: error: ld returned 1 exit statusgmake [6]: *** [CMakeFiles / record_time_signal.dir / build.make: 132: record_time_signal] Error 1gmake [5]: *** [CMakeFiles / Makefile2: 1309: CMakeFiles / record_time_signal.dir / all] Error 2gmake [4]: *** [Makefile: 156: all] Error 2gmake [3]: *** [CMakeFiles / wsjtx-install.dir / build.make: 78: wsjtx-prefix / src / wsjtx-stamp / wsjtx-build] Error 2gmake [2]: *** [CMakeFiles / Makefile2: 305: CMakeFiles / wsjtx-install.dir / all] Error 2gmake [1]: *** [CMakeFiles / Makefile2: 390: CMakeFiles / install.dir / rule] Error 2gmake: *** [Makefile: 267: install] Error 2 Is there anybody here that could provide me some suggestions? Thanks in advance! Regards, -- Marco Calistri Build: openSUSE Tumbleweed 20220719 Kernel: 5.18.11-1-default - XFCE: (4.16.0)

* Marco Calistri <PY1ZRJ@outlook.com> [07-21-22 13:49]:
Hi,
I'm trying to compile a program from source I stuck on these errors and so far I have been able to find the root cause:
[87%] Linking CXX executable record_time_signal/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: cannot find -ludev: File or directory does not existcollect2: error: ld returned 1 exit statusgmake [6]: *** [CMakeFiles / record_time_signal.dir / build.make: 132: record_time_signal] Error 1gmake [5]: *** [CMakeFiles / Makefile2: 1309: CMakeFiles / record_time_signal.dir / all] Error 2gmake [4]: *** [Makefile: 156: all] Error 2gmake [3]: *** [CMakeFiles / wsjtx-install.dir / build.make: 78: wsjtx-prefix / src / wsjtx-stamp / wsjtx-build] Error 2gmake [2]: *** [CMakeFiles / Makefile2: 305: CMakeFiles / wsjtx-install.dir / all] Error 2gmake [1]: *** [CMakeFiles / Makefile2: 390: CMakeFiles / install.dir / rule] Error 2gmake: *** [Makefile: 267: install] Error 2
Is there anybody here that could provide me some suggestions?
Thanks in advance!
I don't know what you are trying to compile and I do not see where you bother to mention it, but: zypper si --help did you bother to install all the requirements to compile <what-ever>? -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc

Il 21/07/22 15:06, Patrick Shanahan ha scritto:
* Marco Calistri <PY1ZRJ@outlook.com> [07-21-22 13:49]:
Hi,
I'm trying to compile a program from source I stuck on these errors and so far I have been able to find the root cause:
[87%] Linking CXX executable record_time_signal/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: cannot find -ludev: File or directory does not existcollect2: error: ld returned 1 exit statusgmake [6]: *** [CMakeFiles / record_time_signal.dir / build.make: 132: record_time_signal] Error 1gmake [5]: *** [CMakeFiles / Makefile2: 1309: CMakeFiles / record_time_signal.dir / all] Error 2gmake [4]: *** [Makefile: 156: all] Error 2gmake [3]: *** [CMakeFiles / wsjtx-install.dir / build.make: 78: wsjtx-prefix / src / wsjtx-stamp / wsjtx-build] Error 2gmake [2]: *** [CMakeFiles / Makefile2: 305: CMakeFiles / wsjtx-install.dir / all] Error 2gmake [1]: *** [CMakeFiles / Makefile2: 390: CMakeFiles / install.dir / rule] Error 2gmake: *** [Makefile: 267: install] Error 2
Is there anybody here that could provide me some suggestions?
Thanks in advance! I don't know what you are trying to compile and I do not see where you bother to mention it, but: zypper si --help
did you bother to install all the requirements to compile <what-ever>?
Yes, I use to compile this package (WSJT-X by K1JT: it is a software for amateur radio data transmission) and it always went well. My openSUSE TW has been recently updated with new gcc plus other packages and I suspect that now I'm missing some requirements to succeed with source compiling. I think some of the software programming most skilled "lurking" on this channel, could be easily able to provide me the answer. Regards, -- Marco Calistri Build: openSUSE Tumbleweed 20220719 Kernel: 5.18.11-1-default - XFCE: (4.16.0)

On 7/21/2022 12:15, Marco Calistri wrote:
Il 21/07/22 15:06, Patrick Shanahan ha scritto:
did you bother to install all the requirements to compile <what-ever>?
Yes, I use to compile this package (WSJT-X by K1JT: it is a software for amateur radio data transmission) and it always went well.
My openSUSE TW has been recently updated with new gcc plus other packages and I suspect that now I'm missing some requirements to succeed with source compiling.
"ld: cannot find -ludev"--it would seem you need systemd-devel which has the libudev development files in it. Once you install that, it is entirely likely it will fail again with another missing requirement, so it would be advisable to look at the documentation for the software and see all libraries it needs to compile and install them all in one go. -- Jason Craig

W dniu 21.07.2022 o 19:49, Marco Calistri pisze:
cannot find -ludev: File or directory does not exist
You need a file called "libudev.so". It should be provided by a package named libudev-devel. But in this particular case "zypper --no-refresh se --provides libudev-devel" will tell you that it's provided by systemd-devel.

Il 21/07/22 14:49, Marco Calistri ha scritto:
Hi,
I'm trying to compile a program from source I stuck on these errors and so far I have been able to find the root cause:
[87%] Linking CXX executable record_time_signal/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: cannot find -ludev: File or directory does not existcollect2: error: ld returned 1 exit statusgmake [6]: *** [CMakeFiles / record_time_signal.dir / build.make: 132: record_time_signal] Error 1gmake [5]: *** [CMakeFiles / Makefile2: 1309: CMakeFiles / record_time_signal.dir / all] Error 2gmake [4]: *** [Makefile: 156: all] Error 2gmake [3]: *** [CMakeFiles / wsjtx-install.dir / build.make: 78: wsjtx-prefix / src / wsjtx-stamp / wsjtx-build] Error 2gmake [2]: *** [CMakeFiles / Makefile2: 305: CMakeFiles / wsjtx-install.dir / all] Error 2gmake [1]: *** [CMakeFiles / Makefile2: 390: CMakeFiles / install.dir / rule] Error 2gmake: *** [Makefile: 267: install] Error 2
Is there anybody here that could provide me some suggestions?
Thanks in advance!
Regards,
Problem solved thanks to precise information sent by: Adam Mizerski Jason Craig It was missing this package: systemd-devel Many thanks indeed Adam and Jason 😁 Best regards! -- Marco Calistri Build: openSUSE Tumbleweed 20220719 Kernel: 5.18.11-1-default - XFCE: (4.16.0)
participants (4)
-
Adam Mizerski
-
Jason Craig
-
Marco Calistri
-
Patrick Shanahan