Getting "checking for library stdc++... no" when trying to compile ncurses on lucid
UbuntuThis forum is for the discussion of Ubuntu 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.
Getting "checking for library stdc++... no" when trying to compile ncurses on lucid
I do have libstdc++6 and libstdc++6-4.4-dev installed though. I can't seem to figure out why it wouldn't detect it. Is it just a bug in ncurses' configure or what?
I presume that's crapping out on the configure. The practise is to post from the first error you get, which helps.
Anyhow, run ldconfig after checking that the directory you have libstdc++* in is in /etc/ld.so.conf. Beware that you need 32 bit for 32 bit compile, 64 bit for 64bit compile.
I'm building a CLFS and was reading the configuration logs so that I could learn some about it, and it didn't give an error, just that one line about it. Also it does not look like it's in there. It just includes a .d directory, which has several files, none of which have it. The two that could have it are:
cat libc.conf
# libc default configuration
/usr/local/lib
cat x86_64-linux-gnu.conf
# Multiarch support
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu
So I think I need to create/edit a file, but not sure exactly what I need to do, scratch what I had posted, found it in /usr/lib32 and /usr/lib. So where do I add it?
Last edited by Arenlor; 06-28-2010 at 08:31 AM.
Reason: Found it
You have clfs going on a 64 bit box. You are cross compiling for what? 32 bits? ARM? Sparc? PPC?
You need the libraries for the particular cpu, and width installed somewhere. It may help to use
./configure --with-libdir=/somewhere/strange
Sorry, had a bit of a week. I'm going on the first pass to make the cross-compiler actually. Yes I'm on 64bit, and I'm using CLFS to make a multilib system. Should I try to install the 32 libraries (if available) to see if that fixes it?
Figured this out on my own. Had to read a few lines through the configure file to find the cause of this bug. I've submitted a patch, but for anyone looking for this, this will fix the issue on ncurses 5.7, with it incorrectly giving a false negative on finding libstdc++. Oh and yes, that's line 14770 there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.