Re: [lfs-support] glibc-2.26 make install failed

2017-11-02 Thread Pierre Labastie

On 02/11/2017 21:08, Michael Shell wrote:

On Thu, 2 Nov 2017 20:26:57 +0100
Pierre Labastie  wrote:


The text tells it removes a check that fails in the partial LFS environment.


   Pierre,

And is that check run during the installation step where his error
happened?

Yes (please read the book, it's there).


For the record, glibc-2.26 and later no longer installs a libnss_nis
by default:

https://bugs.archlinux.org/task/54592

"The NIS(+) name service modules, libnss_nis, libnss_nisplus, and
  libnss_compat, are deprecated, and will not be built or installed by
  default. Replacement implementations based on TIRPC, which
  additionally support IPv6, are available from
  ."


and also note for those upgrading an existing glibc:


"Since nsswitch.conf is a backup file for filesystem, wouldn't dropping
  the obsolete-nsl flag require a manual intervention for everyone with
  a modified nsswitch.conf? As I understand it now, breaking the 'compat'
  module would force all such users to correct it *before* they update
  to a new glibc, or they will become immediately unable to fix their
  system without booting from alternative media or using an emergency
  shell."


It's not clear to me what exactly the new glibc does not like
in "modified" nsswitch.conf.


All I can tell is that I upgraded to glibc-2.26 on an already built 
system, and the test-installation.pl check passed. I think the 
environment in early chapter 6 prevents the test-installation.pl script 
to find that the obsolete nis modules are not installed, but on a 
completed system, it works.


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

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] glibc-2.26 make install failed

2017-11-02 Thread Michael Shell
On Thu, 2 Nov 2017 20:26:57 +0100
Pierre Labastie  wrote:

> The text tells it removes a check that fails in the partial LFS environment.


  Pierre,

And is that check run during the installation step where his error
happened?

For the record, glibc-2.26 and later no longer installs a libnss_nis
by default:

https://bugs.archlinux.org/task/54592

"The NIS(+) name service modules, libnss_nis, libnss_nisplus, and
 libnss_compat, are deprecated, and will not be built or installed by
 default. Replacement implementations based on TIRPC, which
 additionally support IPv6, are available from
 ."


and also note for those upgrading an existing glibc:


"Since nsswitch.conf is a backup file for filesystem, wouldn't dropping
 the obsolete-nsl flag require a manual intervention for everyone with
 a modified nsswitch.conf? As I understand it now, breaking the 'compat'
 module would force all such users to correct it *before* they update
 to a new glibc, or they will become immediately unable to fix their
 system without booting from alternative media or using an emergency
 shell."


It's not clear to me what exactly the new glibc does not like
in "modified" nsswitch.conf. 

Of course, all should be well for a new LFS installation that
follows the book.


   Cheers,

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

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] glibc-2.26 make install failed

2017-11-02 Thread Pierre Labastie

On 02/11/2017 19:41, Nayab Basha Sayed wrote:

Hi all,

I've compiled glibc-2.26 from Chapter 6.

When I check with `make check` command, only one test case failed: 
FAIL: misc/tst-clone3


I chose to ignore it and continued the installation with `make 
install`. It stopped installation throwing following error:


LD_SO=ld-linux-x86-64.so.2 CC="gcc -isystem 
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include -isystem /usr/include" 
/usr/bin/perl scripts/test-installation.pl 
 /sources/glibc-2.26/build/
/tools/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: 
cannot find -lnss_nis

collect2: error: ld returned 1 exit status
Execution of gcc -isystem 
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include -isystem /usr/include 
failed!


And when I check the library with the following command, I found no 
libnss_nis.so library.

Command: /sbin/ldconfig -p | grep nss_nis

How to overcome this problem and continue the glibc installation? 
Would anybody help, please?


You forgot the instruction after "touch /etc/ld.so.conf":

sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile

The text tells it removes a check that fails in the partial LFS environment.

Pierre

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

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style