problem in static build of lshw

asked 2019-04-13 09:15:14 -0500

Hi, I have running fedora 20 version and like to build lshw version B.02.18 using command make static. But it throwing error like

[root@localhost src]# make static make -C core all make[1]: Entering directory /tmp/lshw-B.02.18/src/core' make[1]: Nothing to be done forall'. make[1]: Leaving directory `/tmp/lshw-B.02.18/src/core' g++ -static -L./core/ -g -Wl,--as-needed -o lshw-static lshw.o -llshw -lresolv /usr/bin/ld: cannot find -lresolv /usr/bin/ld: cannot find -lm /usr/bin/ld: cannot find -lc collect2: error: ld returned 1 exit status make: * [lshw-static] Error 1

How to resolve this issue,kindly help

edit retag flag offensive close merge delete



no.. you are 4 years behind in your fedora release, means your devel packages may not be compatible with the real world anymore. Tons of reasons to upgrade first, and then install lshw out of the fedora 28+ repo.

rdtcustomercare gravatar imagerdtcustomercare ( 2019-04-13 10:38:24 -0500 )edit

It looks libe glibc-devel is not installed. That would explain the missing -lc and -lm.

villykruse gravatar imagevillykruse ( 2019-04-13 14:28:27 -0500 )edit

More probably glibc-static is missing.

fcomida gravatar imagefcomida ( 2019-04-13 17:22:36 -0500 )edit

Yes, certainly.

villykruse gravatar imagevillykruse ( 2019-04-14 03:36:09 -0500 )edit

Thanks for everyone . You are correct and installing glibc-static resolved this error.

Manju2022 gravatar imageManju2022 ( 2019-04-15 00:13:04 -0500 )edit