Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249582 - sys-apps/util-linux-2.14.1 + uclibc - scriptreplay.c:39: error: `program_invocation_short_name' undeclared (first use in this function)
Summary: sys-apps/util-linux-2.14.1 + uclibc - scriptreplay.c:39: error: `program_invo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
: 310035 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-02 07:48 UTC by Natanael Copa
Modified: 2012-04-23 04:33 UTC (History)
8 users (show)

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


Attachments
ported patch from 2.13 (util-linux-2.14-uclibc.patch,2.60 KB, patch)
2009-01-03 02:59 UTC, Simon Schäfer
Details | Diff
patch for util-linux-2.16.1.ebuild to add a few sed commands (util-linux-2.16.1.ebuild.patch,1.12 KB, patch)
2009-11-24 10:59 UTC, cygeus
Details | Diff
uclibc compatibility patch for util-linux-2.16.1 (util-linux-2.16-uclibc.patch,8.25 KB, patch)
2009-12-27 18:42 UTC, René Rhéaume (a.k.a. repzilon, rener)
Details | Diff
Modified ebuild with the patch added (util-linux-2.16.1.ebuild,2.56 KB, text/plain)
2009-12-27 18:44 UTC, René Rhéaume (a.k.a. repzilon, rener)
Details
uclibc compatibility patch for util-linux-2.16.2 (util-linux-2.16.2-uclibc.patch,6.68 KB, patch)
2010-04-21 09:14 UTC, Urs Zurbuchen
Details | Diff
Ebuild with patch for 2.16.2 (util-linux-2.16.2-r1.ebuild,2.60 KB, text/plain)
2010-04-21 09:19 UTC, Urs Zurbuchen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Natanael Copa 2008-12-02 07:48:30 UTC
mv -f .deps/rename.Tpo .deps/rename.Po
scriptreplay.c: In function `usage':
scriptreplay.c:39: error: `program_invocation_short_name' undeclared (first use in this function)
scriptreplay.c:39: error: (Each undeclared identifier is reported only once
scriptreplay.c:39: error: for each function it appears in.)
i386-gentoo-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -include ../config.h -I../include -DLOCALEDIR=\"/usr/share/locale\"   -fsigned-char -march=i386 -Os -pipe -fomit-frame-pointer -MT write-write.o -MD -MP -MF .deps/write-write.Tpo -c -o write-write.o `test -f 'write.c' || echo './'`write.c
make[2]: *** [scriptreplay.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/write-write.Tpo .deps/write-write.Po
mv -f .deps/setterm.Tpo .deps/setterm.Po
make[2]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.14.1/work/util-linux-ng-2.14.1/misc-utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.14.1/work/util-linux-ng-2.14.1'
make: *** [all] Error 2
 * 
 * ERROR: sys-apps/util-linux-2.14.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2050:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
Comment 1 Natanael Copa 2008-12-02 07:49:24 UTC
Portage 2.1.4.5 (uclibc/x86/hardened, gcc-3.4.6, uclibc-0.9.28.3-r7, 2.6.26-vs2.3.0.35.6-gentoo i686)
=================================================================
System uname: 2.6.26-vs2.3.0.35.6-gentoo i686 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz
Timestamp of tree: Tue, 02 Dec 2008 06:08:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.6.3, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-march=i386 -Os -pipe -fomit-frame-pointer"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -pipe"
DISTDIR="/var/cache/distfiles"
FEATURES="autoconfig buildpkg distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/var/cache/packages/default"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/alpine-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X509 bitmap-fonts bri bzip2 cli cracklib crypt dri encode expat extensions hardened iproute2 ipv6 jpeg lua mad midi mmap mudflap ncurses netboot nonfsv4 ntfs objc ogg openmp oss pci pcmcia pic png pppd pri readline reflection rrdtool sensord session snmp speex spl ssl tdb truetype truetype-fonts uclibc uclibc++ udev usb userlocales vhosts wifi wordexp x86 xorg zaptel zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" MISDN_CARDS="avmfritz hfcmulti hfcpci hfcsmini hfcsusb netjetpci sedlfax w6692pci xhfc" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l apm ark chips cirrus cyrix epson glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng vesa vga voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Tom Lloyd 2008-12-03 17:19:14 UTC
I'm also seeing this bug, but on CHOST="powerpc-gentoo-linux-uclibc"

Effectively the same compiler output and everything.  (Except for the obvious differences from arch.)
Comment 3 Toei Rei 2008-12-04 09:58:32 UTC
problem confirmed. Maybe a missing dependency?
Comment 4 Natanael Copa 2008-12-04 10:15:47 UTC
(In reply to comment #3)
> problem confirmed. Maybe a missing dependency?
> 

no. some programs uses program_invocation_short_name which is unimlpemented in uclibc-0.9.28. might be it helps to upgrade to uclibc-0.9.30.

Its simple to backport the functionallity though. (ie, update the util-linux-2.13-uclibc.patch)
Comment 5 LBogdan 2008-12-21 15:13:51 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > problem confirmed. Maybe a missing dependency?
> > 
> 
> no. some programs uses program_invocation_short_name which is unimlpemented in
> uclibc-0.9.28. might be it helps to upgrade to uclibc-0.9.30.
> 
> Its simple to backport the functionallity though. (ie, update the
> util-linux-2.13-uclibc.patch)
> 

Can you be so kind to give extra information for the newbies who don't know how to do that? I'm trying for days to get this working, without success.
Comment 6 Anthony Giorgio 2008-12-23 04:35:33 UTC
I agree - I'd like to know how to use the mentioned patch.  I tried emerging uclibc-0.9.30, but the compile fails for me.
Comment 7 Simon Schäfer 2009-01-03 02:59:15 UTC
Created attachment 177181 [details, diff]
ported patch from 2.13

added a patch to actualy compile util-linux-2.14, don't know if everything works as expected, but it compiles.
Comment 8 Tom Lloyd 2009-01-05 00:15:11 UTC
I have upgraded to uclibc-0.9.30 and it compiles now.  Maybe the new uclibc should be stabilised; this isn't the only bug it fixes for me.
Comment 9 Anthony Giorgio 2009-01-06 15:43:04 UTC
Upgrading to 0.9.30 caused all sorts of problems for me.  I had to back out the install from a quickpkg of 0.9.28-r3 to fix the undefined symbol problems.
Comment 10 Tom Lloyd 2009-01-06 16:34:34 UTC
Did you recompile world?  I don't think you have to do this any more with glibc, but uClibc isn't so stable in between versions.  I had quite a few programs failing to start when I first went to 0.9.30; remerging them sorted it out.
Comment 11 Anthony Giorgio 2009-01-06 22:22:14 UTC
I wasn't able to recompile world, because things like /bin/sh wouldn't start - they would just complain about undefined symbols.  I had to reboot my NSLU2 into the flash filesystem and untar the quickpkg of uclibc to recover.
Comment 12 Audiodef 2009-01-08 19:31:46 UTC
I have a compile failure, but with different output:

mkswap.c:56:23: error: uuid/uuid.h: No such file or directory                                                     
mkswap.c: In function 'write_uuid_and_label':                                                                     
mkswap.c:204: warning: implicit declaration of function 'uuid_unparse'                                            
mkswap.c: In function 'main':                                                                                     
mkswap.c:501: error: 'uuid_t' undeclared (first use in this function)                                             
mkswap.c:501: error: (Each undeclared identifier is reported only once                                            
mkswap.c:501: error: for each function it appears in.)                                                            
mkswap.c:501: error: expected ';' before 'uuid_dat'                                                               
mkswap.c:568: warning: implicit declaration of function 'uuid_parse'                                              
mkswap.c:568: error: 'uuid_dat' undeclared (first use in this function)                                           
mkswap.c:571: warning: implicit declaration of function 'uuid_generate'                                           
make[2]: *** [mkswap.o] Error 1                                                                                   
make[2]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.14.1/work/util-linux-ng-2.14.1/disk-utils'     
make[1]: *** [all-recursive] Error 1                                                                              
make[1]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.14.1/work/util-linux-ng-2.14.1'                
make: *** [all] Error 2                                                                                           
 *                                                                                                                
 * ERROR: sys-apps/util-linux-2.14.1 failed.                                                                      
 * Call stack:                                                                                                    
 *               ebuild.sh, line   49:  Called src_compile                                                        
 *             environment, line 2078:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-apps/util-linux-2.14.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/util-linux-2.14.1/temp/environment'.
 
I also can't emerge uclibc-0.9.30 or 0.9.28 at all.

Emerge --info:
Portage 2.2_rc20 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.28-gentoo i686)                   
=================================================================                                            
System uname: Linux-2.6.28-gentoo-i686-Intel-R-_Pentium-R-_D_CPU_3.20GHz-with-glibc2.0                       
Timestamp of tree: Thu, 08 Jan 2009 16:45:03 +0000                                                           
ccache version 2.4 [enabled]                                                                                 
app-shells/bash:     3.2_p48                                                                                 
dev-java/java-config: 1.3.7-r1, 2.1.6-r1                                                                     
dev-lang/python:     2.4.4-r13                                                                               
dev-python/pycrypto: 2.0.1-r6                                                                                
dev-util/ccache:     2.4-r8                                                                                  
dev-util/cmake:      2.6.2-r1                                                                                
sys-apps/baselayout: 1.12.11.1                                                                               
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strictunmerge-orphans userfetch"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ "
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X accessibility acl alsa berkdb bzip2 cairo cdaudio cddb cdio cdparanoia cli cpudetection cracklib crypt csscups dbus dri dssi dvdread embedded encode exif firefox3 fortran ftp gdbm gif gpm hal iconv id3tag ipv6 isdnlog jabber jack java jpeg kde4 ladspa lash lirc midi mp3 mp3tunes mudflap ncurses nls nptl nptlonly nsplugin openmp oscpam pcre pdf perl png pppd python qt3 readline reflection session spl ssl svg sysfs tcpd templates tiff truetype unicode vcd win32codecs wma wmp x86 xcf xml xorg xpm xscreensaver xulrunner zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lockdeflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 13 Audiodef 2009-01-08 19:32:11 UTC
I have a compile failure, but with different output:

mkswap.c:56:23: error: uuid/uuid.h: No such file or directory                                                     
mkswap.c: In function 'write_uuid_and_label':                                                                     
mkswap.c:204: warning: implicit declaration of function 'uuid_unparse'                                            
mkswap.c: In function 'main':                                                                                     
mkswap.c:501: error: 'uuid_t' undeclared (first use in this function)                                             
mkswap.c:501: error: (Each undeclared identifier is reported only once                                            
mkswap.c:501: error: for each function it appears in.)                                                            
mkswap.c:501: error: expected ';' before 'uuid_dat'                                                               
mkswap.c:568: warning: implicit declaration of function 'uuid_parse'                                              
mkswap.c:568: error: 'uuid_dat' undeclared (first use in this function)                                           
mkswap.c:571: warning: implicit declaration of function 'uuid_generate'                                           
make[2]: *** [mkswap.o] Error 1                                                                                   
make[2]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.14.1/work/util-linux-ng-2.14.1/disk-utils'     
make[1]: *** [all-recursive] Error 1                                                                              
make[1]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.14.1/work/util-linux-ng-2.14.1'                
make: *** [all] Error 2                                                                                           
 *                                                                                                                
 * ERROR: sys-apps/util-linux-2.14.1 failed.                                                                      
 * Call stack:                                                                                                    
 *               ebuild.sh, line   49:  Called src_compile                                                        
 *             environment, line 2078:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-apps/util-linux-2.14.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/util-linux-2.14.1/temp/environment'.
 
I also can't emerge uclibc-0.9.30 or 0.9.28 at all.

Emerge --info:
Portage 2.2_rc20 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.28-gentoo i686)                   
=================================================================                                            
System uname: Linux-2.6.28-gentoo-i686-Intel-R-_Pentium-R-_D_CPU_3.20GHz-with-glibc2.0                       
Timestamp of tree: Thu, 08 Jan 2009 16:45:03 +0000                                                           
ccache version 2.4 [enabled]                                                                                 
app-shells/bash:     3.2_p48                                                                                 
dev-java/java-config: 1.3.7-r1, 2.1.6-r1                                                                     
dev-lang/python:     2.4.4-r13                                                                               
dev-python/pycrypto: 2.0.1-r6                                                                                
dev-util/ccache:     2.4-r8                                                                                  
dev-util/cmake:      2.6.2-r1                                                                                
sys-apps/baselayout: 1.12.11.1                                                                               
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strictunmerge-orphans userfetch"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ "
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X accessibility acl alsa berkdb bzip2 cairo cdaudio cddb cdio cdparanoia cli cpudetection cracklib crypt csscups dbus dri dssi dvdread embedded encode exif firefox3 fortran ftp gdbm gif gpm hal iconv id3tag ipv6 isdnlog jabber jack java jpeg kde4 ladspa lash lirc midi mp3 mp3tunes mudflap ncurses nls nptl nptlonly nsplugin openmp oscpam pcre pdf perl png pppd python qt3 readline reflection session spl ssl svg sysfs tcpd templates tiff truetype unicode vcd win32codecs wma wmp x86 xcf xml xorg xpm xscreensaver xulrunner zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lockdeflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 14 Audiodef 2009-01-08 20:42:47 UTC
I've tried updating glibc and python. Nope. Just. Cannot. Compile. 

Can we get instructions on how to use the patch, please?
Comment 15 Audiodef 2009-01-08 20:44:43 UTC
Also, I wish to point out that when pretending the emerge, it will show you that it's hard-coded NOT to use uclibc, so not sure why emerging uclibc would work. 
Comment 16 Audiodef 2009-01-11 22:03:29 UTC
Nope, the patch does not work for me. 
Comment 17 Tom Lloyd 2009-01-11 22:32:48 UTC
Damien Moody:  I suspect we are talking about different bugs.  To my knowledge, uClibc and Glibc should never coexist on the same system unless one of them is being used for cross-compiling.  They do the same thing; they would conflict with one another (horribly).  Since you have Glibc, and this bug is related to uClibc, and your compiler output is different, you may be better placed either searching for a bug that *does* match your compiler output, or filing one of your own.
Comment 18 Anthony Giorgio 2009-01-12 13:06:37 UTC
The above patch works for me on my NSLU2.  I was able to complete the emerge successfully.
Comment 19 Anthony Giorgio 2009-01-16 21:25:56 UTC
Upgrading to uclibc-0.9.30 resolved this for me.
Comment 20 Tobias Leupold 2009-01-17 13:39:37 UTC
The patch made it work for me on my NSLU2 with sys-libs/uclibc-0.9.28.3-r7
Comment 21 Víctor Navarro 2009-02-10 08:14:36 UTC
It worked for me emerging sys-apps/util-linux-2.14.1 using "uclibc" USE flag and using uclibc-0.9.30 (it doesn't work with uclibc-0.9.28.3-r3)

USE="uclibc" emerge sys-apps/util-linux

I also had to use sys-apps/shadow-4.0.18.2 because it did not compile with uclibc.
Comment 22 SpanKY gentoo-dev 2009-07-26 20:05:46 UTC
added some more sed statements to 2.14.2

http://sources.gentoo.org/sys-apps/util-linux/util-linux-2.14.2.ebuild?r1=1.10&r2=1.11
Comment 23 cygeus 2009-11-24 10:59:16 UTC
Created attachment 211050 [details, diff]
patch for util-linux-2.16.1.ebuild to add a few sed commands
Comment 24 cygeus 2009-11-24 11:02:45 UTC
I'm reopening this bug because the same problem occurs with sys-apps/util-linux-2.16.1 and sys-libs/uclibc-0.9.28.3-r8. Both are the latest stable at the moment of writing. The fix from comment #22 somehow disappeared from the ebuild. I've attached a patch which readds it.

It seems I can't reopen the bug. Can someone with the needed privileges do it?

thanks
Comment 25 Natanael Copa 2009-11-24 12:33:42 UTC
repoening as requested
Comment 26 René Rhéaume (a.k.a. repzilon, rener) 2009-12-27 18:42:30 UTC
Created attachment 214341 [details, diff]
uclibc compatibility patch for util-linux-2.16.1

Before knowing the existence of this bug, I started to write a patch based on a code snippet found in the main of swapon.c. Then, I found a uclibc patch for util-linux 2.13 in $FILESDIR (time for cleanup there) and this bug. So I changed my #ifdefs to match those from the 2.13 patch and shaved a char pointer. I still use the myform = condition ? true_value : false_value instruction from the swapon snippet as it makes a shorter diff.
Comment 27 René Rhéaume (a.k.a. repzilon, rener) 2009-12-27 18:44:01 UTC
Created attachment 214343 [details]
Modified ebuild with the patch added

I forgot to mention my patch applies and build on both uclibc and glibc and so may be sent upstream.
Comment 28 Tobias Leupold 2009-12-31 15:19:59 UTC
Works fine for me on my NSLU2.
Comment 29 SpanKY gentoo-dev 2010-03-19 23:10:05 UTC
*** Bug 310035 has been marked as a duplicate of this bug. ***
Comment 30 Urs Zurbuchen 2010-04-21 09:14:22 UTC
Created attachment 228597 [details, diff]
uclibc compatibility patch for util-linux-2.16.2

Minor change was required for this patch to work for util-linux-2.16.2 (for mount/swapon.c)
Comment 31 Urs Zurbuchen 2010-04-21 09:19:11 UTC
Created attachment 228599 [details]
Ebuild with patch for 2.16.2

Easiest way to use this ebuild and experience (almost) no problems with syncing the portage tree, is to create an overlay and put it there. As long as the Gentoo project doesn't release an identically named ebuild (which seems to happen very rarely), you will be fine.

Enjoy.
Comment 32 Tobias Leupold 2010-04-21 11:28:53 UTC
Works on my NSLU2 :-)
Comment 33 SpanKY gentoo-dev 2012-04-23 04:33:06 UTC
newer util-linux/uclibc seem to build fine together