Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203711 - sys-apps/util-linux-2.13-r3 fails to compile on uclibc due to multiple problems
Summary: sys-apps/util-linux-2.13-r3 fails to compile on uclibc due to multiple problems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
: 207918 208411 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-12-29 19:54 UTC by Stefan Hellermann
Modified: 2008-02-01 10:57 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Hellermann 2007-12-29 19:54:02 UTC
I'm trying to update a uclibc-base stage3 to ~x86, first I had to add 3 lines to /usr/include/netdb.h, like described in http://bugs.gentoo.org/show_bug.cgi?id=195368

The only package left with build errors is util-linux

Making all in include
Making all in disk-utils
fsck.cramfs.c:39:1: warning: "_GNU_SOURCE" redefined
In file included from <command-line>:0:
./../config.h:206:1: warning: this is the location of the previous definition
Making all in fdisk
Making all in getopt
Making all in hwclock
Making all in login-utils
agetty.c: In function 'do_prompt':
agetty.c:887: error: 'HOST_NAME_MAX' undeclared (first use in this function)
agetty.c:887: error: (Each undeclared identifier is reported only once
agetty.c:887: error: for each function it appears in.)
make[2]: *** [agetty.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I grepped through another system with glibc, found a declaration of HOST_NAME_MAX to 64 and added this to /usr/include/netdb.h (very bad hack!)

But it's not enough, util-linux crashes now with this:

Making all in include
Making all in disk-utils
fsck.cramfs.c:39:1: warning: "_GNU_SOURCE" redefined
In file included from <command-line>:0:
./../config.h:206:1: warning: this is the location of the previous definition
Making all in fdisk
Making all in getopt
Making all in hwclock
Making all in login-utils
Making all in misc-utils
Making all in mount
Making all in partx
Making all in po
Making all in schedutils
chrt.c:24:1: warning: "_GNU_SOURCE" redefined
In file included from <command-line>:0:
./../config.h:206:1: warning: this is the location of the previous definition
taskset.c:29:1: warning: "_GNU_SOURCE" redefined
In file included from <command-line>:0:
./../config.h:206:1: warning: this is the location of the previous definition
taskset.c: In function 'main':
taskset.c:407: error: 'cpu_set_t' undeclared (first use in this function)
taskset.c:407: error: (Each undeclared identifier is reported only once
taskset.c:407: error: for each function it appears in.)
taskset.c:407: error: expected expression before ')' token
taskset.c:440: error: expected expression before ')' token
taskset.c:447: error: expected expression before ')' token
make[2]: *** [taskset.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

this time I don't know how to fix it ;)



Reproducible: Always

Steps to Reproduce:
1. emerge sys-apps/util-linux-2.13-r3 on uclibc



Expected Results:  
util-linux should compile.

the stage3 i'm using is stage3-x86-uclibc-2006.1.tar.bz2, updated to ~x86 with emerge -e world

$ emerge --info
Portage 2.1.4_rc11 (uclibc/x86, gcc-4.2.2, uclibc-0.9.28.3-r1, 2.6.24-rc6-git2 i686)
=================================================================
System uname: 2.6.24-rc6-git2 i686 AMD Athlon(tm) 64 Processor 3700+
Timestamp of tree: Sat, 29 Dec 2007 12:30:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.5.1-r4
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-O2 -march=pentium3 -mtune=k8 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium3 -mtune=k8 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer nodoc noinfo noman parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LDFLAGS="-Wl,-z,relro -Wl,--as-needed -Wl,-O1"
MAKEOPTS="-j3 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="minimal nocxx unicode x86" ELIBC="uclibc" KERNEL="linux" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2008-01-12 10:48:35 UTC
ive added a patch to account for uClibc deficiencies to util-linux-2.13-r3

http://sources.gentoo.org/sys-apps/util-linux/files/util-linux-2.13-uclibc.patch?rev=1.1
Comment 2 SpanKY gentoo-dev 2008-01-29 17:14:24 UTC
*** Bug 207918 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-02-01 10:57:30 UTC
*** Bug 208411 has been marked as a duplicate of this bug. ***