Discussion:
error on "make install" util-linux
ken_i_m
2000-11-02 06:16:57 UTC
Permalink
Hey, hey I be getting further and further along with this.

make install complained with the following:

......
chgrp tty /usr/bin/write
chgrp: invalid group name `tty'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/util-linux-1.10o/misc-utils'
make: *** [install] Error 1


Looking in the MCONFIG file I see a comment block about th"USE_TTY_GROUP"
option. The default is yes. Do I want to change this to no or did I miss
something else at an earlier point in this enterprise? Missing stuff has me
wondering if there is a method I can utilize when I get this thing to boot
to check for missing loose ends?
I think, therefore, ken_i_m
--
Unsubscribe: send email to lfs-discuss-***@linuxfromscratch.org
and put unsubscribe in the subject header of the message
Erika Pacholleck
2000-11-02 08:07:40 UTC
Permalink
cchgrp tty /usr/bin/write
chgrp: invalid group name `tty'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/util-linux-1.10o/misc-utils'
make: *** [install] Error 1
Chapter 5, Creating passwd and group files:
this is where you create the tty group.

About missing: when I built my first lfs I used this very
effective but oldfashioned way with a sheat of paper and
a pen ;-)

Erika
--
Unsubscribe: send email to lfs-discuss-***@linuxfromscratch.org
and put unsubscribe in the subject header of the message
ken_i_m
2000-11-02 14:35:48 UTC
Permalink
/etc/group

root:x:0:
bin:x:1:
sys:x:2:
kmem:x:3:
tty:x:4:
uucp:x:5:
daemon:x:6:
floppy:x:7:
disk:x:8:

Well, I didn't miss creating the files.
Post by Erika Pacholleck
cchgrp tty /usr/bin/write
chgrp: invalid group name `tty'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/util-linux-1.10o/misc-utils'
make: *** [install] Error 1
this is where you create the tty group.
About missing: when I built my first lfs I used this very
effective but oldfashioned way with a sheat of paper and
a pen ;-)
Erika
--
and put unsubscribe in the subject header of the message
I think, therefore, ken_i_m
--
Unsubscribe: send email to lfs-discuss-***@linuxfromscratch.org
and put unsubscribe in the subject header of the message
r***@web.de
2000-11-02 18:42:00 UTC
Permalink
the x in "tty:x:4:" indicates the use of shadow passwords.
could a faulty shadow password suite be the problem?
try replacing the x with ! (exclamation mark)
! means: password is empty line and shadow passwords are not used.
i'm not sure if passwords are actually checked when you run make,
but i think it's worth a try.

hth
Post by ken_i_m
/etc/group
Well, I didn't miss creating the files.
Post by Erika Pacholleck
cchgrp tty /usr/bin/write
chgrp: invalid group name `tty'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/util-linux-1.10o/misc-utils'
make: *** [install] Error 1
this is where you create the tty group.
About missing: when I built my first lfs I used this very
effective but oldfashioned way with a sheat of paper and
a pen ;-)
Erika
--
--
Unsubscribe: send email to lfs-discuss-***@linuxfromscratch.org
and put unsubscribe in the subject header of the message
ken_i_m
2000-11-02 20:07:55 UTC
Permalink
Tried editing the /etc/group file - replacing the x with ! > no go
logout and back in to possibly reset environment variables (most likely a
pointless exercise leftover from too much time with Windoze) > no go
Went through page to install shadow passwords again. Watched screen closely
during this but didn't see any error messages or other indications of
things gone amiss.

bash# whoami
root
bash# groups
root bin sys kmem tyy daemon 10

I was a little confused about exactly how to edit the MCONFIG file for the
util-linux install. Partly because what I see in the file I have does not
look exactly like the example in the book. This is what I have and did:

# Different optimizations for different cpus.
ifeq "$(ARCH)" "intel"
ifeq "$(CPU)" "i386"
OPT= -pipe -O2 -i686 -fomit-frame-pointer
else
OPT= -pipe -O2 -m486 -fomit-frame-pointer
endif
else
ifeq "$(ARCH)" "arm"
......

The "i686" is what I changed from the "-m486" that was there. I don't know
why that would have any effect on the validity of the "tty" group . . .
Post by r***@web.de
the x in "tty:x:4:" indicates the use of shadow passwords.
could a faulty shadow password suite be the problem?
try replacing the x with ! (exclamation mark)
! means: password is empty line and shadow passwords are not used.
i'm not sure if passwords are actually checked when you run make,
but i think it's worth a try.
hth
On Thu, 02 Nov 2000 07:35:48 -0700, ken_i_m
Post by ken_i_m
/etc/group
Well, I didn't miss creating the files.
Post by Erika Pacholleck
cchgrp tty /usr/bin/write
chgrp: invalid group name `tty'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/util-linux-1.10o/misc-utils'
make: *** [install] Error 1
this is where you create the tty group.
About missing: when I built my first lfs I used this very
effective but oldfashioned way with a sheat of paper and
a pen ;-)
Erika
--
--
and put unsubscribe in the subject header of the message
I think, therefore, ken_i_m
--
Unsubscribe: send email to lfs-discuss-***@linuxfromscratch.org
and put unsubscribe in the subject header of the message
Gerard Beekmans
2000-11-03 15:20:39 UTC
Permalink
Post by ken_i_m
Tried editing the /etc/group file - replacing the x with ! > no go
logout and back in to possibly reset environment variables (most likely a
pointless exercise leftover from too much time with Windoze) > no go
Went through page to install shadow passwords again. Watched screen closely
during this but didn't see any error messages or other indications of
things gone amiss.
bash# whoami
root
bash# groups
root bin sys kmem tyy daemon 10
it read tyy there not tty. is that a typo when you typed in the output from
the 'groups' command or is tyy the real output>
Post by ken_i_m
I was a little confused about exactly how to edit the MCONFIG file for the
util-linux install. Partly because what I see in the file I have does not
# Different optimizations for different cpus.
ifeq "$(ARCH)" "intel"
ifeq "$(CPU)" "i386"
OPT= -pipe -O2 -i686 -fomit-frame-pointer
else
OPT= -pipe -O2 -m486 -fomit-frame-pointer
endif
else
ifeq "$(ARCH)" "arm"
......
The "i686" is what I changed from the "-m486" that was there. I don't know
why that would have any effect on the validity of the "tty" group . . .
I'm not sure if -i686 is proper there. change it to -march=i686 to be sure
it's legal.
--
Gerard Beekmans
www.linuxfromscratch.org

-*- If Linux doesn't have the solution, you have the wrong problem -*-
--
Unsubscribe: send email to lfs-discuss-***@linuxfromscratch.org
and put unsubscribe in the subject header of the message
ken_i_m
2000-11-03 16:42:16 UTC
Permalink
I changed . . .
USE_TTY_GROUP=no
in MCONFIG and it ran through "make install" OK. I was able to move on to
the following steps for the time being, at least.

At 10:20 AM 11/3/00 -0500, you wrote:
.....
Post by Gerard Beekmans
Post by ken_i_m
bash# groups
root bin sys kmem tyy daemon 10
it read tyy there not tty. is that a typo when you typed in the output from
the 'groups' command or is tyy the real output>
tyy is the output. Opps . . .


Well, that would certainly make all the difference in the world.

All the same I am glad this came up as I can now make the other edits to
the MCONFIG file.

Thanks,

I think, therefore, ken_i_m
--
Unsubscribe: send email to lfs-discuss-***@linuxfromscratch.org
and put unsubscribe in the subject header of the message
ken_i_m
2000-11-03 17:32:30 UTC
Permalink
Hey:

Corrected typo in /etc/group and made edit changes per J.A. Neitzel's e-mail.

util-linux seems happy now. I certainly feel better about things.

Thanks for the help,
I think, therefore, ken_i_m
--
Unsubscribe: send email to lfs-discuss-***@linuxfromscratch.org
and put unsubscribe in the subject header of the message
r***@web.de
2000-11-02 21:20:00 UTC
Permalink
i've had a look a the MCONFIG file of util-linux, this is the part concerning the tty group:

# If USE_TTY_GROUP is set to "yes", then wall and write will be installed
# setgid to the "tty" group, and mesg will only set the group write bit.
# Note that this is only useful if login/xterm/etc. change the group of the
# user's tty to "tty" [The login in util-linux does this correctly, and
# xterm will do it correctly if X is compiled with USE_TTY_GROUP set
# properly.]
USE_TTY_GROUP=yes

if i do understand right compiling with
USE_TTY_GROUT=no
will only affect behavior of wall, write and mesg.

try it ;-)
you can recompile util-linux later (when you finished your lfs-installation).
Post by ken_i_m
Tried editing the /etc/group file - replacing the x with ! > no go
logout and back in to possibly reset environment variables (most likely a
pointless exercise leftover from too much time with Windoze) > no go
Went through page to install shadow passwords again. Watched screen closely
during this but didn't see any error messages or other indications of
things gone amiss.
bash# whoami
root
bash# groups
root bin sys kmem tyy daemon 10
I was a little confused about exactly how to edit the MCONFIG file for the
util-linux install. Partly because what I see in the file I have does not
# Different optimizations for different cpus.
ifeq "$(ARCH)" "intel"
ifeq "$(CPU)" "i386"
OPT= -pipe -O2 -i686 -fomit-frame-pointer
else
OPT= -pipe -O2 -m486 -fomit-frame-pointer
endif
else
ifeq "$(ARCH)" "arm"
......
The "i686" is what I changed from the "-m486" that was there. I don't know
why that would have any effect on the validity of the "tty" group . . .
Post by r***@web.de
the x in "tty:x:4:" indicates the use of shadow passwords.
could a faulty shadow password suite be the problem?
try replacing the x with ! (exclamation mark)
! means: password is empty line and shadow passwords are not used.
i'm not sure if passwords are actually checked when you run make,
but i think it's worth a try.
hth
On Thu, 02 Nov 2000 07:35:48 -0700, ken_i_m
Post by ken_i_m
/etc/group
Well, I didn't miss creating the files.
Post by Erika Pacholleck
cchgrp tty /usr/bin/write
chgrp: invalid group name `tty'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/util-linux-1.10o/misc-utils'
make: *** [install] Error 1
this is where you create the tty group.
About missing: when I built my first lfs I used this very
effective but oldfashioned way with a sheat of paper and
a pen ;-)
Erika
--
--
and put unsubscribe in the subject header of the message
I think, therefore, ken_i_m
--
and put unsubscribe in the subject header of the message
--
Unsubscribe: send email to lfs-discuss-***@linuxfromscratch.org
and put unsubscribe in the subject header of the message
J.A. Neitzel
2000-11-03 07:47:28 UTC
Permalink
Hi, you are correct that the MCONFIG file for util-linux-2.10o is
different from the example in the book.
Post by ken_i_m
I was a little confused about exactly how to edit the MCONFIG file for
the util-linux install. Partly because what I see in the file I have
does not look exactly like the example in the book. This is what I have
# Different optimizations for different cpus.
ifeq "$(ARCH)" "intel"
ifeq "$(CPU)" "i386"
OPT= -pipe -O2 -i686 -fomit-frame-pointer
else
OPT= -pipe -O2 -m486 -fomit-frame-pointer
endif
else
ifeq "$(ARCH)" "arm"
......
The "i686" is what I changed from the "-m486" that was there.
The "if; then" construct used in the MCONFIG file for util-linux-2.10o is
different from the book. Reason? I think it changed from how it was in
util-linux-2.10m . This was the version used prior to book-2.4.2 .

Solution for editing MCONFIG (and hopefully your compile problems too):
1) Find the same section in the file and change it to look like ...
# Different optimizations for different cpus.
ifeq "$(ARCH)" "intel"
ifeq "$(CPU)" "i386"
OPT= -pipe -O2 -m386 -fomit-frame-pointer
else
OPT= -pipe -O2 -mcpu=i686 -march=i686 -fomit-frame-pointer
endif
else
ifeq "$(ARCH)" "arm"
OPT= -pipe -O2 -fsigned-char -fomit-frame-pointer
else
OPT= -O2 -fomit-frame-pointer
endif
endif
....

Note that only one line changes, the second OPT= line. Like you said,
"i686". I have attached my MCONFIG . It has been gzipped; you can gunzip
it and your file with it. My computer is a "i686" too.

I will also post a notice to the list. Hope this helps! :-)
--
Regards,
J.A. Neitzel
***@belvento.org
Loading...