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.
Distribution: Slackware 11.0 on one box, Xandros Deluxe 3.0/Windows XP dual boot on the other
Posts: 21
Rep:
GCC woes on Slack 11.0
I installed Slackware 11.0 with the base packages + development toolkit, but now I'm having problems compiling anything. I figured I should just recompile gcc, but when I try I get the following:
[snip]
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables
[/snip]
I only burned the first install disc. Is gcc et. al. on one of the other discs or something? All I want to do is have the inherent ability to compile from source, yet it seems there's no way to do that without either using the RPM utilities or doing a full install. Anyway, I hope someone can help.
Do you have a global CFLAGS variable set? This kind of error often is related to (part of) the contents of CFLAGS which the compiler chokes on. What does "echo $CFLAGS" tell? And "echo $CXXFLAGS"?
Distribution: Slackware 11.0 on one box, Xandros Deluxe 3.0/Windows XP dual boot on the other
Posts: 21
Original Poster
Rep:
Yeah. I can't install libc because it gives me the following error during configuration:
[snip]
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
[/snip]
When I echo $CFLAGS and $CXXFLAGS it returns blank.
remove and reinstall _all_ the slackware gcc and glibc packages including glibc-zoneinfo. In fact it might be a good idea to mount the cds, change to the slackware/a directory and do upgradepkg --install-new *.tgz and the same in the slackware/d and slackware/l directories just in case you missed any packages on your install
remove and reinstall _all_ the slackware gcc and glibc packages including glibc-zoneinfo. In fact it might be a good idea to mount the cds, change to the slackware/a directory and do upgradepkg --install-new *.tgz and the same in the slackware/d and slackware/l directories just in case you missed any packages on your install
Um, you will find that *removing* glibc packages is a learning experience you will regret having...
Instead, do this: upgradepkg --reinstall --install-new {a,d,l}/*.tgz
It sounds like something was borked during the install as I haven't had this problem at all. I'd try a reinstall and if the problem remains you may have to consider the possibility that you have either a bad iso download or bad burn.
Distribution: Slackware 11.0 on one box, Xandros Deluxe 3.0/Windows XP dual boot on the other
Posts: 21
Original Poster
Rep:
Problem fixed -- I reinstalled from the DVD and this time did A, AP, D, AND L. Before I had installed only from the first CD and left out the L package. Now I can get into make menuconfig. Thanks for the help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.