LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-27-2010, 11:41 PM   #1
Arenlor
LQ Newbie
 
Registered: Feb 2010
Location: /milky_way/sol/terra/na/us/pa
Distribution: Debian
Posts: 11

Rep: Reputation: 0
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?
 
Old 06-28-2010, 06:21 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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.
 
Old 06-28-2010, 08:23 AM   #3
Arenlor
LQ Newbie
 
Registered: Feb 2010
Location: /milky_way/sol/terra/na/us/pa
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: 0
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
 
Old 06-29-2010, 04:13 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
/Guessing here:

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
 
Old 07-01-2010, 03:24 PM   #5
Arenlor
LQ Newbie
 
Registered: Feb 2010
Location: /milky_way/sol/terra/na/us/pa
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: 0
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?
 
Old 07-01-2010, 07:32 PM   #6
Arenlor
LQ Newbie
 
Registered: Feb 2010
Location: /milky_way/sol/terra/na/us/pa
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: 0
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.

Code:
--- configure.orig	2010-07-01 20:12:45.469359758 -0400
+++ configure	2010-07-01 20:11:49.370089277 -0400
@@ -14770,15 +14770,11 @@
 #line 14770 "configure"
 #include "confdefs.h"
 
-#include <strstream.h>
-int
-main ()
+#include <strstream>
+int main ()
 {
-
-char buf[80];
-strstreambuf foo(buf, sizeof(buf))
-
-  ;
+  char buf[80];
+  std::strstreambuf foo(buf, sizeof(buf));
   return 0;
 }
 _ACEOF

Last edited by Arenlor; 07-01-2010 at 07:32 PM. Reason: Added code tags.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in compile library file command "make" reallynewbie2009 Linux - Newbie 4 09-14-2009 10:04 AM
"checking for the pthreads library -lpthreads... no" in Debian Etch cstrieder Linux - Software 7 09-19-2008 06:48 PM
conversion of dynamic ".so" library to ststic ".a" library aashaysood Linux - Hardware 2 07-02-2006 11:15 PM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 02:32 PM
ncurses compile error: "undefined reference" Mr. Eek Linux From Scratch 1 05-12-2003 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration