Re: [lfs-support] v 9.0: Chpt 6.46 Kmod make error: /usr/lib/liblzma.so: file not recognized: Is a directory

2019-10-16 Thread Richard Melville
On Wed, 16 Oct 2019 at 09:39, Richard Melville <6tric...@gmail.com> wrote:

>
> On Wed, 16 Oct 2019 at 01:48, Ken Moffat  wrote:
>
>> On Tue, Oct 15, 2019 at 07:09:30PM -0500, Trent wrote:
>> > I am rebuilding again, and this time on a SSD drive connected to a USB
>> > adapter. Going much faster.
>> >
>> > I came up on this.
>> >
>> > in Chapter 6.46
>> >
>> >
>> http://www.linuxfromscratch.org/lfs/view/stable-systemd/chapter06/kmod.html
>> >
>> > Here is what is returned from "make":
>> >
>> >
>> > make --no-print-directory all-recursive
>> > Making all in .
>> > CCLD libkmod/libkmod.la 
>> > CCLD tools/kmod
>> > /usr/bin/ld: /usr/lib/liblzma.so : file not
>> recognized:
>> > Is a directory
>> > collect2: error: ld returned 1 exit status
>> > make[2]: *** [Makefile:1448: libkmod/libkmod.la ]
>> Error 1
>> > make[2]: *** Waiting for unfinished jobs
>> > /usr/bin/ld: /usr/lib/liblzma.so : file not
>> recognized:
>> > Is a directory
>>
>> Very weird output with those  items in it
>>
>
> Ken, what I'm finding weird is that, when the mail arrived at my end, it
> was perfectly formed with no " items in it".  Is it Trent, is it
> you, or is it me that has the problem?  I really don't know.  It would be
> interesting to find out what other subscribers are seeing.
>
> Richard
>

I think I see the "problem".  Trent has two different threads running here,
and, I think Ken, you may be replying to one thread whilst referencing
another.  I have only just read the other (earlier) message from Trent and
seen the " items in it".  Yes, that was a typo earlier s/hyyp/http.

Richard
-- 
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] v 9.0: Chpt 6.46 Kmod make error: /usr/lib/liblzma.so: file not recognized: Is a directory

2019-10-16 Thread Richard Melville
On Wed, 16 Oct 2019 at 01:48, Ken Moffat  wrote:

> On Tue, Oct 15, 2019 at 07:09:30PM -0500, Trent wrote:
> > I am rebuilding again, and this time on a SSD drive connected to a USB
> > adapter. Going much faster.
> >
> > I came up on this.
> >
> > in Chapter 6.46
> >
> >
> http://www.linuxfromscratch.org/lfs/view/stable-systemd/chapter06/kmod.html
> >
> > Here is what is returned from "make":
> >
> >
> > make --no-print-directory all-recursive
> > Making all in .
> > CCLD libkmod/libkmod.la 
> > CCLD tools/kmod
> > /usr/bin/ld: /usr/lib/liblzma.so : file not
> recognized:
> > Is a directory
> > collect2: error: ld returned 1 exit status
> > make[2]: *** [Makefile:1448: libkmod/libkmod.la ]
> Error 1
> > make[2]: *** Waiting for unfinished jobs
> > /usr/bin/ld: /usr/lib/liblzma.so : file not
> recognized:
> > Is a directory
>
> Very weird output with those  items in it
>

Ken, what I'm finding weird is that, when the mail arrived at my end, it
was perfectly formed with no " items in it".  Is it Trent, is it
you, or is it me that has the problem?  I really don't know.  It would be
interesting to find out what other subscribers are seeing.

Richard
-- 
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] v 9.0: Chpt 6.46 Kmod make error: /usr/lib/liblzma.so: file not recognized: Is a directory

2019-10-15 Thread Ken Moffat
On Tue, Oct 15, 2019 at 09:35:00PM -0500, Cindy Sue Causey wrote:
> On 10/15/19, Ken Moffat  wrote:
> > On Tue, Oct 15, 2019 at 07:09:30PM -0500, Trent wrote:

> >> Making all in .
> >> CCLD libkmod/libkmod.la 
> >> CCLD tools/kmod
> >> /usr/bin/ld: /usr/lib/liblzma.so : file not recognized:
> >> Is a directory
> >> collect2: error: ld returned 1 exit status
> >> make[2]: *** [Makefile:1448: libkmod/libkmod.la ] Error
> >> 1
> >> make[2]: *** Waiting for unfinished jobs
> >> /usr/bin/ld: /usr/lib/liblzma.so : file not recognized:
> >> Is a directory
> >
> > Very weird output with those  items in it.
> >
[...]
> >> I see it is related to Xz from the previous section 6.45. I have rerun
> >> that
> >> section 3-4 times now. I have also removed /usr/bin/ld:
> >> /usr/lib/liblzma.so
> >>  and rebuilt section 6.45 again.
> >
> > And again - something odd in your mailer ?
> 
> 
> If this is what occurred before, I missed it that time around.

No, 'again' referred to the lines earleir in the mail.

> It
> looks like something is reading and then presenting all the dotSO and
> dotLA file names as URLs:
> 
> https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains
> 
> TLDs.. Top level domains.. dotLA is Laos, and dotSO is Somalia.. :)
> 
> Cindy :)

Thanks - I've never seen anything inserting http:// like that before
and didn't realise those two suffixes happened to match TLDs.

> -- 
> * runs with birdseed *
> -- 

LOL.

And to Trent - yes, I saw your followup, but after I'd sent my
original reply.

ĸen
-- 
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
 - Unseen Academicals
-- 
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] v 9.0: Chpt 6.46 Kmod make error: /usr/lib/liblzma.so: file not recognized: Is a directory

2019-10-15 Thread Trent


On 10/15/19 7:43 PM, Ken Moffat wrote:

On Tue, Oct 15, 2019 at 07:09:30PM -0500, Trent wrote:

I am rebuilding again, and this time on a SSD drive connected to a USB
adapter. Going much faster.

I came up on this.

in Chapter 6.46

http://www.linuxfromscratch.org/lfs/view/stable-systemd/chapter06/kmod.html

Here is what is returned from "make":


make --no-print-directory all-recursive
Making all in .
CCLD     libkmod/libkmod.la 
CCLD     tools/kmod
/usr/bin/ld: /usr/lib/liblzma.so : file not recognized:
Is a directory
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1448: libkmod/libkmod.la ] Error 1
make[2]: *** Waiting for unfinished jobs
/usr/bin/ld: /usr/lib/liblzma.so : file not recognized:
Is a directory

Very weird output with those  items in it.


collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1662: tools/kmod] Error 1
make[1]: *** [Makefile:2167: all-recursive] Error 1
make: *** [Makefile:1219: all] Error 2


I see it is related to Xz from the previous section 6.45. I have rerun that
section 3-4 times now. I have also removed /usr/bin/ld: /usr/lib/liblzma.so
 and rebuilt section 6.45 again.

And again - something odd in your mailer ?

But what on earth do you mean when you say you have removed
/usr/bin/ld ?

Not sure of what to make of this, and not seeing anything online about it.


Looking at a completed sysv build:

ken@milliways ~ $file /usr/lib/liblzma.*
/usr/lib/liblzma.la.hidden: libtool library file, ASCII text
/usr/lib/liblzma.so:symbolic link to ../../lib/liblzma.so.5.2.4

So, liblzma should have been moved to /lib and the symlink fixed up.
All at the end of the xz instructions.  I suggest you look at your
command history.  But after a bad move it's possible that the
readlink might give a weird result.  So before rerunning, compare
what that readlink currently returns against my output above, and
perhaps remove the mis-installed xz before repeating xz.

There are several places where we move libraries to /lib and they
are all candidates for weird errors if they go wrong.  And you will
probably only see those error messages in an LFS context because
most other distros, at least those using the infernal systemd, do
not separate /lib.

ĸen


Yeah, for some reason the message got malformed, but as I mentioned I 
was able to resolve. It is one of those sections in which pasting all 
the commands at once gets messed up.



Thanks for responding!




--
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] v 9.0: Chpt 6.46 Kmod make error: /usr/lib/liblzma.so: file not recognized: Is a directory

2019-10-15 Thread Cindy Sue Causey
On 10/15/19, Ken Moffat  wrote:
> On Tue, Oct 15, 2019 at 07:09:30PM -0500, Trent wrote:
>>
>> Here is what is returned from "make":
>>
>> make --no-print-directory all-recursive
>> Making all in .
>> CCLD libkmod/libkmod.la 
>> CCLD tools/kmod
>> /usr/bin/ld: /usr/lib/liblzma.so : file not recognized:
>> Is a directory
>> collect2: error: ld returned 1 exit status
>> make[2]: *** [Makefile:1448: libkmod/libkmod.la ] Error
>> 1
>> make[2]: *** Waiting for unfinished jobs
>> /usr/bin/ld: /usr/lib/liblzma.so : file not recognized:
>> Is a directory
>
> Very weird output with those  items in it.
>
>> collect2: error: ld returned 1 exit status
>> make[2]: *** [Makefile:1662: tools/kmod] Error 1
>> make[1]: *** [Makefile:2167: all-recursive] Error 1
>> make: *** [Makefile:1219: all] Error 2
>>
>>
>> I see it is related to Xz from the previous section 6.45. I have rerun
>> that
>> section 3-4 times now. I have also removed /usr/bin/ld:
>> /usr/lib/liblzma.so
>>  and rebuilt section 6.45 again.
>
> And again - something odd in your mailer ?


If this is what occurred before, I missed it that time around. It
looks like something is reading and then presenting all the dotSO and
dotLA file names as URLs:

https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains

TLDs.. Top level domains.. dotLA is Laos, and dotSO is Somalia.. :)

Cindy :)
-- 
* runs with birdseed *
-- 
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] v 9.0: Chpt 6.46 Kmod make error: /usr/lib/liblzma.so: file not recognized: Is a directory

2019-10-15 Thread Ken Moffat
On Tue, Oct 15, 2019 at 07:09:30PM -0500, Trent wrote:
> I am rebuilding again, and this time on a SSD drive connected to a USB
> adapter. Going much faster.
> 
> I came up on this.
> 
> in Chapter 6.46
> 
> http://www.linuxfromscratch.org/lfs/view/stable-systemd/chapter06/kmod.html
> 
> Here is what is returned from "make":
> 
> 
> make --no-print-directory all-recursive
> Making all in .
> CCLD     libkmod/libkmod.la 
> CCLD     tools/kmod
> /usr/bin/ld: /usr/lib/liblzma.so : file not recognized:
> Is a directory
> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile:1448: libkmod/libkmod.la ] Error 1
> make[2]: *** Waiting for unfinished jobs
> /usr/bin/ld: /usr/lib/liblzma.so : file not recognized:
> Is a directory

Very weird output with those  items in it.

> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile:1662: tools/kmod] Error 1
> make[1]: *** [Makefile:2167: all-recursive] Error 1
> make: *** [Makefile:1219: all] Error 2
> 
> 
> I see it is related to Xz from the previous section 6.45. I have rerun that
> section 3-4 times now. I have also removed /usr/bin/ld: /usr/lib/liblzma.so
>  and rebuilt section 6.45 again.

And again - something odd in your mailer ?

But what on earth do you mean when you say you have removed
/usr/bin/ld ?
> 
> Not sure of what to make of this, and not seeing anything online about it.
> 

Looking at a completed sysv build:

ken@milliways ~ $file /usr/lib/liblzma.*
/usr/lib/liblzma.la.hidden: libtool library file, ASCII text
/usr/lib/liblzma.so:symbolic link to ../../lib/liblzma.so.5.2.4

So, liblzma should have been moved to /lib and the symlink fixed up.
All at the end of the xz instructions.  I suggest you look at your
command history.  But after a bad move it's possible that the
readlink might give a weird result.  So before rerunning, compare
what that readlink currently returns against my output above, and
perhaps remove the mis-installed xz before repeating xz.

There are several places where we move libraries to /lib and they
are all candidates for weird errors if they go wrong.  And you will
probably only see those error messages in an LFS context because
most other distros, at least those using the infernal systemd, do
not separate /lib.

ĸen
> -- 
> 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


-- 
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
 - Unseen Academicals
-- 
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] v 9.0: Chpt 6.46 Kmod make error: /usr/lib/liblzma.so: file not recognized: Is a directory

2019-10-15 Thread Trent


On 10/15/19 7:09 PM, Trent wrote:


I am rebuilding again, and this time on a SSD drive connected to a USB 
adapter. Going much faster.


I came up on this.

in Chapter 6.46

http://www.linuxfromscratch.org/lfs/view/stable-systemd/chapter06/kmod.html

Here is what is returned from "make":


make --no-print-directory all-recursive
Making all in .
CCLD     libkmod/libkmod.la 
CCLD     tools/kmod
/usr/bin/ld: /usr/lib/liblzma.so : file not 
recognized: Is a directory

collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1448: libkmod/libkmod.la ] 
Error 1

make[2]: *** Waiting for unfinished jobs
/usr/bin/ld: /usr/lib/liblzma.so : file not 
recognized: Is a directory

collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1662: tools/kmod] Error 1
make[1]: *** [Makefile:2167: all-recursive] Error 1
make: *** [Makefile:1219: all] Error 2


I see it is related to Xz from the previous section 6.45. I have rerun 
that section 3-4 times now. I have also removed /usr/bin/ld: 
/usr/lib/liblzma.so  and rebuilt section 6.45 again.



http://www.linuxfromscratch.org/lfs/view/stable-systemd/chapter06/xz.html


Not sure of what to make of this, and not seeing anything online about it.


Thanks!


Trent





Okay, you all can ignore this.

I guess I needed to take the message literally. Somehow, the liblzma.so 
 file was turned into a directory filled with files.


I did the directory style of removal, and reran the command "ln -svf 
../../lib/$(readlink /usr/lib/liblzma.so) /usr/lib/liblzma.so" again, 
and now it is a file as it should be.


All is well now.

Trent


-- 
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


[lfs-support] v 9.0: Chpt 6.46 Kmod make error: /usr/lib/liblzma.so: file not recognized: Is a directory

2019-10-15 Thread Trent
I am rebuilding again, and this time on a SSD drive connected to a USB 
adapter. Going much faster.


I came up on this.

in Chapter 6.46

http://www.linuxfromscratch.org/lfs/view/stable-systemd/chapter06/kmod.html

Here is what is returned from "make":


make --no-print-directory all-recursive
Making all in .
CCLD     libkmod/libkmod.la 
CCLD     tools/kmod
/usr/bin/ld: /usr/lib/liblzma.so : file not 
recognized: Is a directory

collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1448: libkmod/libkmod.la ] Error 1
make[2]: *** Waiting for unfinished jobs
/usr/bin/ld: /usr/lib/liblzma.so : file not 
recognized: Is a directory

collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1662: tools/kmod] Error 1
make[1]: *** [Makefile:2167: all-recursive] Error 1
make: *** [Makefile:1219: all] Error 2


I see it is related to Xz from the previous section 6.45. I have rerun 
that section 3-4 times now. I have also removed /usr/bin/ld: 
/usr/lib/liblzma.so  and rebuilt section 6.45 again.



http://www.linuxfromscratch.org/lfs/view/stable-systemd/chapter06/xz.html


Not sure of what to make of this, and not seeing anything online about it.


Thanks!


Trent





-- 
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