Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 69470

Summary: sys-apps/utempter-0.5.5.5 compile failure in uclibc environment + QA issues
Product: Gentoo Linux Reporter: Daniel Black (RETIRED) <dragonheart>
Component: [OLD] LibraryAssignee: Seemant Kulleen (RETIRED) <seemant>
Status: RESOLVED FIXED    
Severity: normal CC: embedded, greg_g, ps.m, x11
Priority: High Keywords: Inclusion
Version: unspecified   
Hardware: PPC   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: solves missing utmpx on uclibc

Description Daniel Black (RETIRED) gentoo-dev 2004-10-29 16:32:40 UTC
QA issue - mirrored on dev.gentoo.org

Comile fault is as below.

apple linux-2.6.7-hardened-r9 # emerge utempter
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/utempter-0.5.5.5 to /
>>> md5 files   ;-) ChangeLog
>>> md5 files   ;-) metadata.xml
>>> md5 files   ;-) utempter-0.5.5.5.ebuild
>>> md5 files   ;-) utempter-0.5.5.4.ebuild
>>> md5 files   ;-) files/digest-utempter-0.5.5.5
>>> md5 files   ;-) files/digest-utempter-0.5.5.4
>>> md5 files   ;-) files/utempter-0.5.3.2-soname-makefile-fix.patch
>>> md5 files   ;-) files/utempter-0.5.5.4-soname-makefile-fix.patch
>>> md5 files   ;-) files/utempter-0.5.5.5-soname-makefile-fix.patch
>>> md5 src_uri ;-) utempter-0.5.5-5.src.rpm
QA Notice: USE Flag 'macos' not in IUSE for sys-apps/utempter-0.5.5.5
>>> Unpacking source...
>>> Unpacking utempter-0.5.5-5.src.rpm
>>> Unpacking utempter-0.5.5.tar.gz to /var/tmp/portage/utempter-0.5.5.5/work
 * Applying utempter-0.5.5.5-soname-makefile-fix.patch ...                                                                                 [ ok ]
>>> Source unpacked.
gcc -Wall -Os -pipe -mcpu=750    utempter.c   -o utempter
utempter.c:14:19: utmpx.h: No such file or directory
utempter.c: In function `main':
utempter.c:85: error: storage size of 'utx' isn't known
utempter.c:157: warning: implicit declaration of function `pututxline'
utempter.c:158: warning: implicit declaration of function `updwtmpx'
utempter.c:85: warning: unused variable `utx'
make: *** [utempter] Error 1

!!! ERROR: sys-apps/utempter-0.5.5.5 failed.

emerge info
Portage 2.0.51-r2 (uclibc/ppc, gcc-3.4.1, uclibc-0.9.26-r5, 2.6.9-gentoo-r1 ppc)
=================================================================
System uname: 2.6.9-gentoo-r1 ppc 740/750
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CFLAGS="-Os -pipe -mcpu=750"
CHOST="powerpc-pc-linux-uclibc"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -pipe -mcpu=750"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks nodoc noinfo noman sandbox sfperms strict userpriv"
GENTOO_MIRRORS="ftp://mirror.internode.on.net/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X berkdb gtk hardened mysql ncurses opengl perl pie png python readline ssl tcpd tiff uclibc zlib"

FYI I'm just logging these as I see them. I'll try to get around to fixing them sometime.
Comment 1 solar (RETIRED) gentoo-dev 2004-10-29 17:21:51 UTC
Xorg -r2 has !uclibc? ( xterm ) thankfully
Comment 2 Daniel Black (RETIRED) gentoo-dev 2004-10-29 19:51:54 UTC
now if only it had a few more keywords:
# fgrep KEY  x11-base/xorg-x11/*
x11-base/xorg-x11/xorg-x11-6.7.0-r2.ebuild:KEYWORDS="arm alpha amd64 hppa ia64 mips ppc ppc64 ~sparc x86"
x11-base/xorg-x11/xorg-x11-6.8.0-r1.ebuild:KEYWORDS="arm alpha amd64 hppa ia64 mips ~ppc sparc x86"
x11-base/xorg-x11/xorg-x11-6.8.0-r2.ebuild:KEYWORDS="~x86"
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-29 19:55:56 UTC
It's still hard-masked, silly -- I'm not done screwing with it. Keywords are unimportant. Feel free to break your system of any arch if you so choose. =) Although really, it ought to work -- just not very well tested.
Comment 4 Daniel Black (RETIRED) gentoo-dev 2004-11-02 16:09:10 UTC
Unless I'm doing something silly (again!) xterm worked without utempter
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-02 16:54:11 UTC
But did you get the utmp/wtmp entries?
Comment 6 solar (RETIRED) gentoo-dev 2004-11-02 16:58:56 UTC
Sure it should. utempwer is only used so xterm itself does not have to be setuid anymore in order to be able to log to wtmp. I think the the idea is to use 1 setuid vs a bunch of terms(eterm/rvxt..) being suid.

So yeah xterm should work just fine :)
Comment 7 SpanKY gentoo-dev 2004-12-15 10:24:44 UTC
*** Bug 74518 has been marked as a duplicate of this bug. ***
Comment 8 Peter S. Mazinger 2004-12-15 10:50:25 UTC
Created attachment 46059 [details, diff]
solves missing utmpx on uclibc

this is the solution for utempter does not build bug (that was marked as
duplicate)
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2004-12-15 11:42:39 UTC
Cool, we'll get this in. That way I can change the xterm dep to minimal instead of uclibc.

Could you please send the patch to the upstream maintainer? That info should be in the rpm's spec file. Keep us posted on this.
Comment 10 Peter S. Mazinger 2004-12-16 23:02:27 UTC
due to the fact that utmpx.h is SuSv3 requirement, it will be added to uclibc
so sending this upstream won't be a good idea
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2004-12-16 23:07:12 UTC
I spoke with the upstream maintainer yesterday and he said RH would be moving to libutempter as soon as reasonably possible. This will apparently leave utempter unmaintained, so we should also start looking at other solutions such as libutempter.
Comment 12 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-12 19:25:08 UTC
Any idea when utmpx will get into uclibc? Is this a patch worth committing?
Comment 13 SpanKY gentoo-dev 2005-01-12 20:07:33 UTC
probably wont be implemented until we code it ;)
Comment 14 solar (RETIRED) gentoo-dev 2005-01-12 20:53:26 UTC
Please include the patch for now.
Comment 15 Donnie Berkholz (RETIRED) gentoo-dev 2005-04-14 16:48:46 UTC
Seemant, can you please add this?
Comment 16 Seemant Kulleen (RETIRED) gentoo-dev 2005-04-15 06:04:20 UTC
hi guys, sorry for the delay on this.  utempter-0.5.5.6 is in portage which has this patch being applied.  Please test and confirm.
Comment 17 Matthias Egger 2005-06-18 03:31:56 UTC
(In reply to comment #16)
> hi guys, sorry for the delay on this.  utempter-0.5.5.6 is in portage which
has this patch being applied.  Please test and confirm.

uclibc and utempter-0.5.5.6 works for me with Keyword ~x86. Thanks!