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

Bug 351919

Summary: sys-fs/mdadm-3.1.4[static] shows warnings that may indicate a real problem
Product: Gentoo Linux Reporter: Sebastian Pipping <sping>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED CANTFIX    
Severity: normal CC: genkernel, sping
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 282100    

Description Sebastian Pipping gentoo-dev 2011-01-17 15:43:34 UTC
# USE=static CFLAGS="-Wall" ebuild mdadm-3.1.4.ebuild clean compile
[..]
config.o: In function `createline':
config.c:(.text+0xc07): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
config.c:(.text+0xb2a): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
config.o: In function `createline':
config.c:(.text+0xc07): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
config.c:(.text+0xb2a): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
>>> Source compiled.

Any ideas?
Comment 1 SpanKY gentoo-dev 2011-01-17 19:43:16 UTC
expected behavior for glibc static linking
Comment 2 Tolga Dalman 2011-01-18 08:16:37 UTC
Does that mean, the "static" mdadm binary is in fact NOT static but depends on libc.so ? In that case, an obvious fix is to remove the "static" USEFLAG from mdadm.
Alternatively those function could be replaced in the upstream code I suppose ...
Comment 3 SpanKY gentoo-dev 2011-01-18 19:48:12 UTC
you're talking a problem specific to *glibc*

we're not planning on patching glibc in any way to address this.  feel free to complain upstream, but they've already made it clear they dont care.