Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* utmp/util-linux, etc.  LONG MESSAGE
@ 1997-03-26  3:56 Steven Kokinos
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Kokinos @ 1997-03-26  3:56 UTC (permalink / raw)


Hi All,

After some more working, and searching around through the archives, I 
have come to what I think the actual problem is.

--snip--
>Paul Wouters (paul@xtdnet.nl)
>Tue, 18 Mar 1997 11:18:06 +0100 (MET) 
>I think this is a 'feature' of glibc. The utmp format changed for the
>new ipv6 handling. Apparnetly, some programs you have log or read to
>utmp in the old format. I haven't checked that on my stock 4.1 RedHat
>alpha, since it's a standalong machine right now ;)]
--end snip--

So I'm assuming that the problem I am experiencing (as well as several 
other people) is mostly that the util-linux-2.5-34 programs (most notably 
the login-tools) were built in such a way that they are using an 
incorrect version of utmp, or glibc, or something.  The exact behavior 
I'm seeing is that utmp becomes corrupted once a LIFO login/logout 
pattern is not observed.  To try and nip this I downloaded the source 
package of linux-utils from the update directory and attempted to compile 
it.

rpm -i util-linux-2.5-34.src.rpm
cd /usr/src/redhat/SPEC
rpm -bb util-linux-2.5.spec

The build zips along cheerily until it gets to login.c, where I get the 
following errors.  I'm sure the last one has to do with the utmp 
structure, but I'm not really sure what's going on with the resourcebits. 
 Generally I don't have much trouble getting source rpms to compile.  Any 
help is appreciated...

make[1]: Entering directory 
`/usr/src/redhat/BUILD/util-linux-2.5/login-utils'
gcc -c -pipe -O2 -fomit-frame-pointer -I. -I../bsd -D_GNU_SOURCE 
-DSBINDIR=\"/sb
in\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\"  
-DUSE_
PAM -DUSE_TTY_GROUP login.c
In file included from /usr/local/include/sys/resource.h:27,
                 from login.c:102:
/usr/local/include/resourcebits.h:31: `RLIMIT_CPU' undeclared here (not 
in a fun
ction)
/usr/local/include/resourcebits.h:31: enumerator value for `_RLIMIT_CPU' 
not int
eger constant
/usr/local/include/resourcebits.h:37: `RLIMIT_FSIZE' undeclared here (not 
in a f
unction)
/usr/local/include/resourcebits.h:37: enumerator value for 
`_RLIMIT_FSIZE' not i
nteger constant
/usr/local/include/resourcebits.h:43: `RLIMIT_DATA' undeclared here (not 
in a fu
nction)
/usr/local/include/resourcebits.h:43: enumerator value for `_RLIMIT_DATA' 
not in
teger constant
/usr/local/include/resourcebits.h:49: `RLIMIT_STACK' undeclared here (not 
in a f
unction)
/usr/local/include/resourcebits.h:49: enumerator value for 
`_RLIMIT_STACK' not i
nteger constant
/usr/local/include/resourcebits.h:55: `RLIMIT_CORE' undeclared here (not 
in a fu
nction)
/usr/local/include/resourcebits.h:55: enumerator value for `_RLIMIT_CORE' 
not in
teger constant
/usr/local/include/resourcebits.h:64: `RLIMIT_RSS' undeclared here (not 
in a fun
ction)
/usr/local/include/resourcebits.h:64: enumerator value for `_RLIMIT_RSS' 
not int
eger constant
/usr/local/include/resourcebits.h:70: `RLIMIT_NOFILE' undeclared here 
(not in a
function)
/usr/local/include/resourcebits.h:70: enumerator value for 
`_RLIMIT_NOFILE' not
integer constant
/usr/local/include/resourcebits.h:78: `RLIMIT_AS' undeclared here (not in 
a func
tion)
/usr/local/include/resourcebits.h:78: enumerator value for `_RLIMIT_AS' 
not inte
ger constant
/usr/local/include/resourcebits.h:84: `RLIMIT_NPROC' undeclared here (not 
in a f
unction)
/usr/local/include/resourcebits.h:84: enumerator value for 
`_RLIMIT_NPROC' not i
nteger constant
/usr/local/include/resourcebits.h:90: `RLIMIT_MEMLOCK' undeclared here 
(not in a
 function)
/usr/local/include/resourcebits.h:90: enumerator value for 
`_RLIMIT_MEMLOCK' not
 integer constant
/usr/local/include/resourcebits.h:95: `RLIM_NLIMITS' undeclared here (not 
in a f
unction)
/usr/local/include/resourcebits.h:95: enumerator value for 
`RLIMIT_NLIMITS' not
integer constant
login.c: In function `main':
login.c:727: warning: passing arg 1 of `time' from incompatible pointer 
type
make[1]: *** [login.o] Error 1
make[1]: Leaving directory 
`/usr/src/redhat/BUILD/util-linux-2.5/login-utils'
make: *** [all] Error 1
Bad exit status

--
Steven Kokinos - Web Developers Network - http://www.webdevelop.com/
steve@webdevelop.com - 60 Day free trial for developers!
Industry leading development environment, multiple T1 network.

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* Re: utmp/util-linux, etc.  LONG MESSAGE
       [not found] <199703260445.XAA03801@www.webdevelop.com>
@ 1997-03-26 19:16 ` Nikita Schmidt
  0 siblings, 0 replies; 2+ messages in thread
From: Nikita Schmidt @ 1997-03-26 19:16 UTC (permalink / raw)


On Mar 25, Steven Kokinos wrote:

> 
> The build zips along cheerily until it gets to login.c, where I get the 
> following errors.  I'm sure the last one has to do with the utmp 
> structure, but I'm not really sure what's going on with the resourcebits. 
>  Generally I don't have much trouble getting source rpms to compile.  Any 
> help is appreciated...
> 
> make[1]: Entering directory 
> `/usr/src/redhat/BUILD/util-linux-2.5/login-utils'
> gcc -c -pipe -O2 -fomit-frame-pointer -I. -I../bsd -D_GNU_SOURCE 
> -DSBINDIR=\"/sb
> in\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\"  
> -DUSE_
> PAM -DUSE_TTY_GROUP login.c
> In file included from /usr/local/include/sys/resource.h:27,
>                  from login.c:102:
> /usr/local/include/resourcebits.h:31: `RLIMIT_CPU' undeclared here (not 
> in a fun
> ction)

New glibc headers are designed to better cooperate with Linux' ones, so
you no longer need most of axp-kernel-patches.  Just point your
<whatever>/include/{linux,asm,scsi} into a non-patched kernel source
tree and it will hopefully be OK.

	Kit

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

end of thread, other threads:[~1997-03-26 19:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <199703260445.XAA03801@www.webdevelop.com>
1997-03-26 19:16 ` utmp/util-linux, etc. LONG MESSAGE Nikita Schmidt
1997-03-26  3:56 Steven Kokinos

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