From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <84058e2f6c2152f8a6ced2bef3e4ba19.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199703260445.XAA03801@www.webdevelop.com> Date: Tue, 25 Mar 97 23:56:53 -0400 From: Steven Kokinos Subject: utmp/util-linux, etc. LONG MESSAGE 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