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

Bug 207918

Summary: sys-apps/util-linux-2.13-r2 fails to build on uclibc
Product: Gentoo Linux Reporter: Christoph Gysin <christoph.gysin>
Component: [OLD] Core systemAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christoph Gysin 2008-01-28 16:01:25 UTC
Just tried to upgrade util-linux from 2.12r-r8 to 2.13-r2, and it breaks on AI_ADDRCONFIG which is not defined in uclibc.

--snipp--
make[2]: Entering directory `/var/tmp/portage/sys-apps/util-linux-2.13-r2/work/util-linux-ng-2.13/login-utils'
if i586-pc-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I..  -DMAIN_TEST_CHECKTTY -include ../config.h -I../include -DLOCALEDIR=\"/usr/share/locale\"  -fsigned-char -O2 -march=i586 -pipe -MT checktty_test-checktty.o -MD -MP -MF ".deps/checktty_test-checktty.Tpo" -c -o checktty_test-checktty.o `test -f 'checktty.c' || echo './'`checktty.c; \
	then mv -f ".deps/checktty_test-checktty.Tpo" ".deps/checktty_test-checktty.Po"; else rm -f ".deps/checktty_test-checktty.Tpo"; exit 1; fi
checktty.c: In function 'main':
checktty.c:306: error: 'AI_ADDRCONFIG' undeclared (first use in this function)
checktty.c:306: error: (Each undeclared identifier is reported only once
checktty.c:306: error: for each function it appears in.)
make[2]: *** [checktty_test-checktty.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.13-r2/work/util-linux-ng-2.13/login-utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.13-r2/work/util-linux-ng-2.13'
make: *** [all] Error 2
 * 
 * ERROR: sys-apps/util-linux-2.13-r2 failed.
 * Call stack:
 *                   ebuild.sh, line 1701:  Called dyn_compile
 *                   ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *                   ebuild.sh, line   44:  Called src_compile
 *   util-linux-2.13-r2.ebuild, line   78:  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.13-r2/temp/build.log'.
 * 



Reproducible: Always

Steps to Reproduce:
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-28 16:18:17 UTC
Try w/ 2.13.1
Comment 2 Christoph Gysin 2008-01-29 06:15:40 UTC
Same thing with 2.13.1:

Making all in login-utils
make[2]: Entering directory `/var/tmp/portage/sys-apps/util-linux-2.13.1/work/util-linux-ng-2.13.1/login-utils'
i586-pc-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -DMAIN_TEST_CHECKTTY -include ../config.h -I../include -DLOCALEDIR=\"/usr/share/locale\"  -fsigned-char -O2 -march=i586 -pipe -MT checktty_test-checktty.o -MD -MP -MF .deps/checktty_test-checktty.Tpo -c -o checktty_test-checktty.o `test -f 'checktty.c' || echo './'`checktty.c
checktty.c: In function 'main':
checktty.c:306: error: 'AI_ADDRCONFIG' undeclared (first use in this function)
checktty.c:306: error: (Each undeclared identifier is reported only once
checktty.c:306: error: for each function it appears in.)
make[2]: *** [checktty_test-checktty.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.13.1/work/util-linux-ng-2.13.1/login-utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.13.1/work/util-linux-ng-2.13.1'
make: *** [all] Error 2
 * 
 * ERROR: sys-apps/util-linux-2.13.1 failed.
 * Call stack:
 *                  ebuild.sh, line 1701:  Called dyn_compile
 *                  ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *                  ebuild.sh, line   44:  Called src_compile
 *   util-linux-2.13.1.ebuild, line   72:  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.13.1/temp/build.log'.
 * 

Comment 3 SpanKY gentoo-dev 2008-01-29 17:14:24 UTC
this has already been fixed in newer uclibc

*** This bug has been marked as a duplicate of bug 203711 ***
Comment 4 Christoph Gysin 2008-01-30 06:43:45 UTC
Using sys-libs/uclibc-0.9.28.3-r2 now and it works, thanks.