SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It looks like there is something wrong with libiw.
Quote:
I also have the soft link /usr/lib/libiw.so -> /usr/lib/libiw.a
That's a very bad idea ... such a thing will never work, because they are two very very different files. Please re-install libiw properly. You may need to './configure --enable-shared'.
In order for it to generate a '.so' along with a '.a', you need to tell it to make a shared library. (hence the './configure --enable-shared') I might be wrong and this may not be the right option. Try './configure --help' or read 'INSTALL' or 'README'. Or, go ahead and ask on the programming forum ...
Well a bit confused now. Do you mean when I configure conky or libiw I should '--enable-shared'?
The tar.gz libiw only contains the headers I mentioned and libiw.a not any configure scripts or installation scripts. I just unzipped in the root dir and it installed to the specific locations.
Conky config says --enable-shared is default.
Because I could not find any reference to a libiw.so in my Slack install (I checked with pkgtool as to the files that come with wireless-tools and it lists, libiw.a, wireless.h & iwlib.h but not the libiw.so).
I found libiw.so.25 in a Red Hat RPM libiw-devel-25-1.i686.rpm and used rpm2tgz to extract and install it to /lib.
Now the compile goes through ok but make fails with........
linux.o(.text+0xcbb): In function `update_net_stats':
: undefined reference to `iw_sawap_ntop'
collect2: ld returned 1 exit status
make[2]: *** [conky] Error 1
Hmm one step forward one step back. Do I need to install wireless_tools sources? If so where do I put them/how do I install them? (already have them)
2) Untar it and open a terminal and 'cd' into the newly created directory.
3) Edit the 'Makefile'
change:
Code:
## Installation directory. By default, go in /usr/local.
## Distributions should probably use /, but they probably know better...
ifndef PREFIX
PREFIX = /usr/local
endif
to:
Code:
## Installation directory. By default, go in /usr/local.
## Distributions should probably use /, but they probably know better...
ifndef PREFIX
PREFIX = /usr
endif
4) run 'make', then 'su' into root and run 'make install'
Now it's installed properly so just try compiling conky again (you don't need the --enable-shared here. I thought libiw used a configure script, it's just a makefile.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.