Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Fwd: LFS'ing an alpha, continued
@ 2002-11-13 13:08 Kelledin
  2002-11-13 14:49 ` Falk Hueffner
  0 siblings, 1 reply; 11+ messages in thread
From: Kelledin @ 2002-11-13 13:08 UTC (permalink / raw)
  To: axp-list

On Tuesday 12 November 2002 09:04 pm, Michal Jaegermann wrote:
> On Tue, Nov 12, 2002 at 07:24:13PM -0500, Kelledin wrote:
> > Fourth (and finally, for now), aboot-0.9a doesn't compile
> > against recent glibc versions.
>
> Which are "recent".  The last time I was recompiling aboot, to
> make it look for initrd in more places then original, was
> on September 9th of this year and it definitely compiled and
> it even works. :-)

2.2.5 tripped the problem--basically a slew of unresolved
references to the glibc puts() function, which is used by the
glibc printf() function.  I didn't get so far as testing it with
2.3.1, because 2.3.1 has other problems.  I consider 2.3.1 to be
too experimental at this point.

> > The problem is that it tries to
> > override the printf() function, and glibc won't just go
> > along with that.
>
> This is a boot loader.  You are not linking that with glibc
> but with a small static library which provides only a minimal
> required stuff.  Full glibc is not available when you are
> using this.

That small static library is supposed to override glibc printf()
with its own bare-metal printf().  It doesn't, for whatever
reason--the bootloader code still tries to link with glibc's
printf().  Come to think of it, it could be gcc or binutils
that's refusing to go along with it...what versions of those
software packages are you using?  I'm using (patched) gcc-3.2 and 
binutils-2.13, both of which are in the stable LFS book.

Unlike the netkit patch, this patch actually came from yours
truly.

> I am not sure what you are doing but definitely something
> funny.

I just renamed aboot's internal from-scratch printf() and forced
all bootloader code to call this different function name.  Thus
it doesn't have to rely on the ability to override glibc's
printf().  But as I said, it would probably break "TESTING"
mode, which is why it's only a workaround.

--
Kelledin
"If a server crashes in a server farm and no one pings it, does
it still cost four figures to fix?"




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Fwd: LFS'ing an alpha, continued
  2002-11-13 13:08 Fwd: LFS'ing an alpha, continued Kelledin
@ 2002-11-13 14:49 ` Falk Hueffner
  2002-11-13 17:09   ` Kelledin
  2002-11-14  5:48   ` Creating Su Login karthikeyan
  0 siblings, 2 replies; 11+ messages in thread
From: Falk Hueffner @ 2002-11-13 14:49 UTC (permalink / raw)
  To: axp-list

Kelledin <kelledin+AXP@skarpsey.dyndns.org> writes:

> On Tuesday 12 November 2002 09:04 pm, Michal Jaegermann wrote:
> > On Tue, Nov 12, 2002 at 07:24:13PM -0500, Kelledin wrote:
> > > Fourth (and finally, for now), aboot-0.9a doesn't compile
> > > against recent glibc versions.
> >
> > Which are "recent".  The last time I was recompiling aboot, to
> > make it look for initrd in more places then original, was
> > on September 9th of this year and it definitely compiled and
> > it even works. :-)
> 
> 2.2.5 tripped the problem--basically a slew of unresolved
> references to the glibc puts() function, which is used by the
> glibc printf() function. 

Are you sure it isn't rather caused by gcc optimizing
printf("foo\n")
to
puts("foo")
?

(Yes, it really does that. Pretty clever, eh?)


-- 
	Falk




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Fwd: LFS'ing an alpha, continued
  2002-11-13 14:49 ` Falk Hueffner
@ 2002-11-13 17:09   ` Kelledin
  2002-11-13 17:41     ` Falk Hueffner
  2002-11-13 17:41     ` Peter Petrakis
  2002-11-14  5:48   ` Creating Su Login karthikeyan
  1 sibling, 2 replies; 11+ messages in thread
From: Kelledin @ 2002-11-13 17:09 UTC (permalink / raw)
  To: axp-list

On Wednesday 13 November 2002 08:49 am, Falk Hueffner wrote:
> Kelledin <kelledin+AXP@skarpsey.dyndns.org> writes:
> > On Tuesday 12 November 2002 09:04 pm, Michal Jaegermann 
wrote:
> > > On Tue, Nov 12, 2002 at 07:24:13PM -0500, Kelledin wrote:
> > > > Fourth (and finally, for now), aboot-0.9a doesn't
> > > > compile against recent glibc versions.
> > >
> > > Which are "recent".  The last time I was recompiling
> > > aboot, to make it look for initrd in more places then
> > > original, was on September 9th of this year and it
> > > definitely compiled and it even works. :-)
> >
> > 2.2.5 tripped the problem--basically a slew of unresolved
> > references to the glibc puts() function, which is used by
> > the glibc printf() function.
>
> Are you sure it isn't rather caused by gcc optimizing
> printf("foo\n")
> to
> puts("foo")
> ?
>
> (Yes, it really does that. Pretty clever, eh?)

Yikes, that would do it.

Hmmm.

My next question would be, how do we keep gcc from doing that?  I 
assume it's some spanking-new feature in gcc3...

-- 
Kelledin
"If a server crashes in a server farm and no one pings it, does 
it still cost four figures to fix?"




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Fwd: LFS'ing an alpha, continued
  2002-11-13 17:09   ` Kelledin
@ 2002-11-13 17:41     ` Falk Hueffner
  2002-11-13 17:41     ` Peter Petrakis
  1 sibling, 0 replies; 11+ messages in thread
From: Falk Hueffner @ 2002-11-13 17:41 UTC (permalink / raw)
  To: axp-list

Kelledin <kelledin+AXP@skarpsey.dyndns.org> writes:

> On Wednesday 13 November 2002 08:49 am, Falk Hueffner wrote:
> > Are you sure it isn't rather caused by gcc optimizing
> > printf("foo\n")
> > to
> > puts("foo")
> > ?
> >
> > (Yes, it really does that. Pretty clever, eh?)
> 
> Yikes, that would do it.
> 
> My next question would be, how do we keep gcc from doing that?  I
> assume it's some spanking-new feature in gcc3...

-ffreestanding. Unfortunately, that will turn off all builtin
handling, like expanding memcpy inline. One can work around that with
#define memcpy __builtin_memcpy.

Perhaps it's just easier to provide a puts, though...

-- 
	Falk




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Fwd: LFS'ing an alpha, continued
  2002-11-13 17:09   ` Kelledin
  2002-11-13 17:41     ` Falk Hueffner
@ 2002-11-13 17:41     ` Peter Petrakis
  2002-11-13 18:19       ` Michal Jaegermann
  1 sibling, 1 reply; 11+ messages in thread
From: Peter Petrakis @ 2002-11-13 17:41 UTC (permalink / raw)
  To: axp-list

> > Are you sure it isn't rather caused by gcc optimizing
> > printf("foo\n")
> > to
> > puts("foo")
> > ?
> >
> > (Yes, it really does that. Pretty clever, eh?)
> 
> Yikes, that would do it.
> 
> Hmmm.
> 
> My next question would be, how do we keep gcc from doing that?  I
> assume it's some spanking-new feature in gcc3...

-O0 oughta do it. I don't think that's a new feature but a basic optimization.
The opt flags above tell gcc not to optimize at all. aboot doesnt need to be
any faster anyways ;) 

Peter
--
www.alphadriven.org




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Fwd: LFS'ing an alpha, continued
  2002-11-13 17:41     ` Peter Petrakis
@ 2002-11-13 18:19       ` Michal Jaegermann
  2002-11-13 20:57         ` George France
  0 siblings, 1 reply; 11+ messages in thread
From: Michal Jaegermann @ 2002-11-13 18:19 UTC (permalink / raw)
  To: axp-list

On Wed, Nov 13, 2002 at 12:41:28PM -0500, Peter Petrakis wrote:
> > > Are you sure it isn't rather caused by gcc optimizing
> > > printf("foo\n")
> > > to
> > > puts("foo")
> > > ?
> > >
> > > (Yes, it really does that. Pretty clever, eh?)
> > 
> > Yikes, that would do it.
> > 
> > Hmmm.
> > 
> > My next question would be, how do we keep gcc from doing that?  I
> > assume it's some spanking-new feature in gcc3...
> 
> -O0 oughta do it.

The other way out would be to provide 'puts()' in a "private" library.
It can be trivially implemented in terms of 'printf()'. :-)

If built-ins from gcc3 are getting you instead then '-fno-builtin'
in compilation flags should solve the problem and there is always
also '-ffreestanding'.  At least a "bootloader" part of the whole
package (there are other programs there as well) is really
"freestanding".

   Michal




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Fwd: LFS'ing an alpha, continued
  2002-11-13 18:19       ` Michal Jaegermann
@ 2002-11-13 20:57         ` George France
  0 siblings, 0 replies; 11+ messages in thread
From: George France @ 2002-11-13 20:57 UTC (permalink / raw)
  To: axp-list, Michal Jaegermann; +Cc: Kelledin

hrmm, <cough>, <cough> 

I believe that Will Woods (author / maintainer of aboot)
is using aboot-0.9b with gentoo and gcc 3.2. I might
just be easier to use the newer version, which has already
addressed these issues????

I hope this helps.

Best Regards,


--George


On Wednesday 13 November 2002 13:19, Michal Jaegermann wrote:
> On Wed, Nov 13, 2002 at 12:41:28PM -0500, Peter Petrakis wrote:
> > > > Are you sure it isn't rather caused by gcc optimizing
> > > > printf("foo\n")
> > > > to
> > > > puts("foo")
> > > > ?
> > > >
> > > > (Yes, it really does that. Pretty clever, eh?)
> > >
> > > Yikes, that would do it.
> > >
> > > Hmmm.
> > >
> > > My next question would be, how do we keep gcc from doing that?  I
> > > assume it's some spanking-new feature in gcc3...
> >
> > -O0 oughta do it.
>
> The other way out would be to provide 'puts()' in a "private" library.
> It can be trivially implemented in terms of 'printf()'. :-)
>
> If built-ins from gcc3 are getting you instead then '-fno-builtin'
> in compilation flags should solve the problem and there is always
> also '-ffreestanding'.  At least a "bootloader" part of the whole
> package (there are other programs there as well) is really
> "freestanding".
>
>    Michal
>
>
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Creating Su Login
  2002-11-13 14:49 ` Falk Hueffner
  2002-11-13 17:09   ` Kelledin
@ 2002-11-14  5:48   ` karthikeyan
  2002-11-14 17:03     ` Michal Jaegermann
  1 sibling, 1 reply; 11+ messages in thread
From: karthikeyan @ 2002-11-14  5:48 UTC (permalink / raw)
  To: axp-list

Hi All,

  I m new to this admin stuff.  I have an SSH root login access to my
friends server at florida. My question would be how to create a login less
powerfull then [root] so that i can share with a person who is trying to
build a Control Panel for our Hosting Site.  I know how to create user using
[useradd <user name>].

  Environment : Redhat 7.3

  Looking forward for earliest response.

karthikeyan.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Creating Su Login
@ 2002-11-14 16:06 Robert M. Riches Jr.
  0 siblings, 0 replies; 11+ messages in thread
From: Robert M. Riches Jr. @ 2002-11-14 16:06 UTC (permalink / raw)
  To: axp-list

> From: "karthikeyan" <karthikeyan@aspiresys.com>
> Date: Thu, 14 Nov 2002 11:18:05 +0530
>
>   I m new to this admin stuff.  I have an SSH root login access to my
> friends server at florida. My question would be how to create a login less
> powerfull then [root] so that i can share with a person who is trying to
> build a Control Panel for our Hosting Site.  I know how to create user using
> [useradd <user name>].
>
>   Environment : Redhat 7.3

Where did you get Redhat 7.3 for the 64-bit Alpha (AXP)
architecture?  :-)  Redhat 7.2 is the most recently announced
version.  Are you sure you have the right mailing list?

As root, run 'linuxconf' (without the quotes).  There is a
section for creating/maintaining normal user accounts.  The
GUI lets you set a bunch of account parameters.  Once the
account is created, just log in as that user.  If said user
needs root privileges every so often, use 'su' and give the
root password.

Robert Riches
rm.riches@verizon.net




^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: Creating Su Login
@ 2002-11-14 16:46 Lease, Mike
  0 siblings, 0 replies; 11+ messages in thread
From: Lease, Mike @ 2002-11-14 16:46 UTC (permalink / raw)
  To: axp-list

My suggestion would be to use the "sudo" command.  Basically, this
allows a regular user to run a restricted set of commands that
require root privileges (thus, you can give the user access ONLY
to what is absolutely necessary, and deny access to everything
else).  You would add the username to the file /etc/sudoers, along 
with the commands that that user is permitted to run as root.  The 
user is prompted for his own password (to avoid problems with 
someone else running sudo from an unattended login), and then if 
everything is correct, the command is executed.  There are man 
pages for both sudo and sudoers for details on how to use the 
command and how to add the appropriate entries to /etc/sudoers,
and I would recommend reading the security notes and caveats near
the bottom of the sudo man page.

-Mike 


-----Original Message-----
From: karthikeyan [mailto:karthikeyan@aspiresys.com]
Sent: Thursday, November 14, 2002 12:48 AM
To: axp-list@redhat.com
Subject: Creating Su Login


Hi All,

  I m new to this admin stuff.  I have an SSH root login access to my
friends server at florida. My question would be how to create a login less
powerfull then [root] so that i can share with a person who is trying to
build a Control Panel for our Hosting Site.  I know how to create user using
[useradd <user name>].

  Environment : Redhat 7.3

  Looking forward for earliest response.

karthikeyan.




_______________________________________________
Axp-list mailing list
Axp-list@redhat.com
https://listman.redhat.com/mailman/listinfo/axp-list




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Creating Su Login
  2002-11-14  5:48   ` Creating Su Login karthikeyan
@ 2002-11-14 17:03     ` Michal Jaegermann
  0 siblings, 0 replies; 11+ messages in thread
From: Michal Jaegermann @ 2002-11-14 17:03 UTC (permalink / raw)
  To: axp-list

On Thu, Nov 14, 2002 at 11:18:05AM +0530, karthikeyan wrote:
> My question would be how to create a login less
> powerfull then [root] so that i can share with a person who is trying to
> build a Control Panel for our Hosting Site.

No really good way to create "nearly root" login (if it will be powerful
enough it will get root in no time) but look for 'sudo' utility instead.
It also can be misconfigured. :-)

>   Environment : Redhat 7.3

On Alpha?  Not that the question had anything to do with Alpha in any
case.

  Michal




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-11-14 17:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-13 13:08 Fwd: LFS'ing an alpha, continued Kelledin
2002-11-13 14:49 ` Falk Hueffner
2002-11-13 17:09   ` Kelledin
2002-11-13 17:41     ` Falk Hueffner
2002-11-13 17:41     ` Peter Petrakis
2002-11-13 18:19       ` Michal Jaegermann
2002-11-13 20:57         ` George France
2002-11-14  5:48   ` Creating Su Login karthikeyan
2002-11-14 17:03     ` Michal Jaegermann
  -- strict thread matches above, loose matches on Subject: below --
2002-11-14 16:06 Robert M. Riches Jr.
2002-11-14 16:46 Lease, Mike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox