Re: ncurses cannot find libstdc++ in chapter 6.21

2005-09-05 Thread Chris Staub

Ilja Honkonen wrote:

Archaic wrote:


On Sun, Sep 04, 2005 at 12:11:08PM +0300, Ilja Honkonen wrote:

No it did not, I noticed this when Groff wouldn't configure 
complaining that

it couldn't compile c++ programs. There were no gcc or c++ or even cc in
/usr/bin. Very strange, but everyting worked after I installed gcc.
Should I compile ncurces again?



First, this is lfs-dev, not lfs-support. You need to followup on



Sorry about that


lfs-support. Second, by symlinking the c++ compiler from /tools into
/usr you have corrupted the build process. You should go back and



I only symlinked libstdc++.so (and .6), does that make any difference?


reinstall gcc by the book and then rebuild every package that uses any
c++ in it. Some use just a tiny bit, some use a lot. If you can
determine absolutely which packages need c++, then should be able to get
away with rebuilding just those packages. Otherwise, rebuild everything



I installed gcc by the book just before Groff (6.27), so it should be 
enough to rebuild packages 6.15-6.26?



from gcc on.



Thanks
Ilja


You shouldn't have to symlink anything unless it tells you to in the 
book. If you do have to then you need to go back and figure out what's 
wrong before going any further. You should go back to the gcc 
installation in chap. 6, and redo that and everything after that.

--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: ncurses cannot find libstdc++ in chapter 6.21

2005-09-05 Thread Jeremy Huntwork

Chris Staub wrote:

[snipped a lot of the previous thread]

You shouldn't have to symlink anything unless it tells you to in the 
book. If you do have to then you need to go back and figure out what's 
wrong before going any further. You should go back to the gcc 
installation in chap. 6, and redo that and everything after that.


Chris, please try to trim your replies in the future. :)

We've seen the previous messages, no need to include the entire thread 
in your replies.


Thanks,

--
JH
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[Fwd: Re: ncurses cannot find libstdc++ in chapter 6.21]

2005-09-04 Thread Chris Staub
 ---BeginMessage---

Ilja Honkonen wrote:

I was building LFS 6.1 and in chapter 6.21 ncurses gave this error
during make:
cd ../obj_s;  /tools/bin/g++ -I../c++ -I../include -I. -DHAVE_CONFIG_H
-I.
-I../include  -D_GNU_SOURCE -DNDEBUG -O2 -fPIC -c ../c++/demo.cc
/tools/bin/g++  -o demo ../obj_s/demo.o -L../lib -lncurses++ -L../lib
-lform
-lmenu -lpanel -lncurses -Wl,-rpath,/sources/ncurses-5.4/lib  -I../c++
-I../include -I. -DHAVE_CONFIG_H -I. -I../include  -D_GNU_SOURCE
-DNDEBUG
-O2 -fPIC

/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lstdc++
collect2: ld returned 1 exit status
make[1]: *** [demo] Error 1
make[1]: Leaving directory make[1]: Leaving directory
`/sources/ncurses-5.4/c++\'
make: *** [all] Error 2

I fixed the above error by adding this to chapter 6.6:
ln -s /tools/lib/libstdc++.{so,.6} /usr/lib

I have no idea if this is the correct fix, or if the problem was
somewhere
else. There was no libstdc++* in /mnt/lfs/ or its subdirectories when I
got
to 6.21.


I don't think that's a problem with the fact that you stopped and 
restarted - if libstdc++ does not exist in /usr/lib then you forgot to 
install the c++ compiler in chap. 6. Does /usr/bin/gcc exist?



No it did not, I noticed this when Groff wouldn't configure complaining that
 it couldn't compile c++ programs. There were no gcc or c++ or even cc in
/usr/bin. Very strange, but everyting worked after I installed gcc.
Should I compile ncurces again?

Thanks
Ilja


No, recompiling ncurses won't help if gcc is missing from /usr. Try 
checking a couple more things for me...


1. Run the sanity check at the end of the Re-adjusting the toolchain 
section and let me know the results.


2. Does /lib/libc.so.6 exist?

3. Does /usr/bin/ar, as, and ld exist?

---End Message---
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: ncurses cannot find libstdc++ in chapter 6.21

2005-09-04 Thread Chris Staub

Ilja Honkonen wrote:

Lainaus Chris Staub [EMAIL PROTECTED]:


I don't think that's a problem with the fact that you stopped and 
restarted - if libstdc++ does not exist in /usr/lib then you forgot to

install the c++ compiler in chap. 6. Does /usr/bin/gcc exist?


No it did not, I noticed this when Groff wouldn't configure complaining
that
it couldn't compile c++ programs. There were no gcc or c++ or even cc
in
/usr/bin. Very strange, but everyting worked after I installed gcc.
Should I compile ncurces again?


No, recompiling ncurses won't help if gcc is missing from /usr. Try 



But it isn't anymore...


What do you mean? You said earlier that there was no gcc or g++ in 
/usr/bin. Do you just reinstall it?





/usr/bin. Very strange, but everyting worked after I installed gcc.




checking a couple more things for me...
1. Run the sanity check at the end of the Re-adjusting the toolchain 
section and let me know the results.



  [Requesting program interpreter: /lib/ld-linux.so.2]



2. Does /lib/libc.so.6 exist?



lrwxrwxrwx  1 root root 13 Aug 29 15:17 /lib/libc.so.6 - libc-2.3.4.so



3. Does /usr/bin/ar, as, and ld exist?



-rwxr-xr-x  1 root root 227776 Aug 29 15:39 /usr/bin/ar
-rwxr-xr-x  1 root root 931041 Aug 29 15:39 /usr/bin/as
-rwxr-xr-x  1 root root 943144 Aug 29 15:39 /usr/bin/ld

Ilja


OK, then everything else earlier in the chapter is there. You probably 
just need to reinstall gcc (or did you already?), though you may also 
want to recompile everything else after that.

--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: ncurses cannot find libstdc++ in chapter 6.21

2005-09-04 Thread Ilja Honkonen
I don't think that's a problem with the fact that you stopped and
restarted - if libstdc++ does not exist in /usr/lib then you forgot to
install the c++ compiler in chap. 6. Does /usr/bin/gcc exist?

No it did not, I noticed this when Groff wouldn't configure complaining
that
 it couldn't compile c++ programs. There were no gcc or c++ or even cc
in
/usr/bin. Very strange, but everyting worked after I installed gcc.
Should I compile ncurces again?

No, recompiling ncurses won't help if gcc is missing from /usr. Try

 But it isn't anymore...

What do you mean? You said earlier that there was no gcc or g++ in
/usr/bin. Do you just reinstall it?

I figured out that it was missing while trying to install Groff so I
installed it for the first time in chapter 6 (I somehow forgot to install it
when it was supposed to be installed). After that everything has worked
fine, as I wrote (I'm currently in 6.51)
/usr/bin. Very strange, but everyting worked after I installed gcc.

checking a couple more things for me...
1. Run the sanity check at the end of the Re-adjusting the toolchain
section and let me know the results.
   [Requesting program interpreter: /lib/ld-linux.so.2]
2. Does /lib/libc.so.6 exist?
 lrwxrwxrwx  1 root root 13 Aug 29 15:17 /lib/libc.so.6 - libc-2.3.4.so
3. Does /usr/bin/ar, as, and ld exist?
 -rwxr-xr-x  1 root root 227776 Aug 29 15:39 /usr/bin/ar
 -rwxr-xr-x  1 root root 931041 Aug 29 15:39 /usr/bin/as
 -rwxr-xr-x  1 root root 943144 Aug 29 15:39 /usr/bin/ld

OK, then everything else earlier in the chapter is there. You probably
just need to reinstall gcc (or did you already?), though you may also
want to recompile everything else after that.

I have compiled everything after 6.26 according to the book, is there
something between 6.14 and 6.27 that has to be compiled using the compiler
in /mnt/lfs/usr/? Or is the compiler in /mnt/lfs/tools good enough for
packages 6.15-6.26 to be compiled into /usr?

Thanks
Ilja
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: ncurses cannot find libstdc++ in chapter 6.21

2005-09-04 Thread Archaic
On Sun, Sep 04, 2005 at 12:11:08PM +0300, Ilja Honkonen wrote:
 
 No it did not, I noticed this when Groff wouldn't configure complaining that
  it couldn't compile c++ programs. There were no gcc or c++ or even cc in
 /usr/bin. Very strange, but everyting worked after I installed gcc.
 Should I compile ncurces again?

First, this is lfs-dev, not lfs-support. You need to followup on
lfs-support. Second, by symlinking the c++ compiler from /tools into
/usr you have corrupted the build process. You should go back and
reinstall gcc by the book and then rebuild every package that uses any
c++ in it. Some use just a tiny bit, some use a lot. If you can
determine absolutely which packages need c++, then should be able to get
away with rebuilding just those packages. Otherwise, rebuild everything
from gcc on.

-- 
Archaic

Want control, education, and security from your operating system?
Hardened Linux From Scratch
http://www.linuxfromscratch.org/hlfs

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: ncurses cannot find libstdc++ in chapter 6.21

2005-09-04 Thread Ilja Honkonen

Archaic wrote:

On Sun, Sep 04, 2005 at 12:11:08PM +0300, Ilja Honkonen wrote:

No it did not, I noticed this when Groff wouldn't configure complaining that
it couldn't compile c++ programs. There were no gcc or c++ or even cc in
/usr/bin. Very strange, but everyting worked after I installed gcc.
Should I compile ncurces again?


First, this is lfs-dev, not lfs-support. You need to followup on


Sorry about that


lfs-support. Second, by symlinking the c++ compiler from /tools into
/usr you have corrupted the build process. You should go back and


I only symlinked libstdc++.so (and .6), does that make any difference?


reinstall gcc by the book and then rebuild every package that uses any
c++ in it. Some use just a tiny bit, some use a lot. If you can
determine absolutely which packages need c++, then should be able to get
away with rebuilding just those packages. Otherwise, rebuild everything


I installed gcc by the book just before Groff (6.27), so it should be 
enough to rebuild packages 6.15-6.26?



from gcc on.


Thanks
Ilja
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page