Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469624 - sys-apps/unscd-0.49 does not work w/glibc-2.17+: /usr/sbin/unscd: symbol __nss_disable_nscd, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
Summary: sys-apps/unscd-0.49 does not work w/glibc-2.17+: /usr/sbin/unscd: symbol __ns...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-12 21:34 UTC by Volker Hemmann
Modified: 2013-05-21 18:16 UTC (History)
0 users

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 Volker Hemmann 2013-05-12 21:34:05 UTC
etc/init.d/unscd start
 * Starting Name Service Cache Daemon (unscd) ...
/usr/sbin/unscd: relocation error: /usr/sbin/unscd: symbol __nss_disable_nscd, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
 * start-stop-daemon: failed to start `/usr/sbin/unscd'                                                                                     [ !! ]
 * ERROR: unscd failed to start


>>> Emerging (1 of 1) sys-apps/unscd-0.49
 * nscd-0.49.c SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                        [ ok ]
>>> cfg-update-1.8.2-r1: Skipping checksum index updating...
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/sys-apps/unscd-0.49/work
>>> Compiling source in /var/tmp/portage/sys-apps/unscd-0.49/work ...
make -j3 unscd 
x86_64-pc-linux-gnu-gcc -march=amdfam10 -mtune=amdfam10 -O2 -msse3 -msse4a -msahf -fpredictive-commoning -mfpmath=sse -mcx16 -mpopcnt -mabm --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -ftracer -pipe  -Wl,-O1 -Wl,--as-needed  unscd.c   -o unscd
unscd.c: In function 'main':
unscd.c:2564:9: warning: ignoring return value of 'daemon', declared with attribute warn_unused_result [-Wunused-result]
unscd.c:2572:8: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result]
/var/tmp/portage/sys-apps/unscd-0.49/temp/cckef4M5.o: In function `main':
unscd.c:(.text.startup+0x1c): undefined reference to `__nss_disable_nscd'
collect2: ld returned 1 exit status
make: *** [unscd] Error 1
emake failed
 * ERROR: sys-apps/unscd-0.49 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 683:  Called die
 * The specific snippet of code:
 *       emake unscd || die
 * 
 * If you need support, post the output of `emerge --info '=sys-apps/unscd-0.49'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/unscd-0.49'`.
 * The complete build log is located at '/var/tmp/portage/sys-apps/unscd-0.49/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/unscd-0.49/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/unscd-0.49/work'
 * S: '/var/tmp/portage/sys-apps/unscd-0.49/work'
Comment 1 Volker Hemmann 2013-05-15 17:04:13 UTC
the thing is: unscd needs glibc with the nscd flag enabled, but the ebuild does not check for it.
Comment 2 SpanKY gentoo-dev 2013-05-16 02:57:37 UTC
if you've built glibc with USE=-nscd, then using unscd makes absolutely no sense.  the USE flag isn't for disabling just the daemon, it disables everything.  so if you run unscd, the glibc libs won't be making any calls to it.
Comment 3 SpanKY gentoo-dev 2013-05-21 18:16:40 UTC
should be all set now in the tree; thanks for the report!

Commit message: Require glibc be built with USE=nscd
http://sources.gentoo.org/sys-apps/unscd/unscd-0.49.ebuild?r1=1.2&r2=1.3