Build log: http://paste.pocoo.org/show/543978/ emerge --info: http://paste.pocoo.org/show/543979/
Please don't use pastebins as they tend to expire. Instead, upload the logs and other required information as attachments to the bug. Also set LC_MESSAGES=C so that error messages are in English.
Created attachment 300641 [details] build.log (qjim)
Created attachment 300643 [details] emerge --info (qjim)
Submitted build.log and emerge --info are with gcc-4.6.2. With gcc-4.5.3: 'ebuild /usr/portage/ebuilds/net-fs/samba/samba-3.5.12.ebuild clean compile' failed with same result: Compiling localedir.c ../nsswitch/pam_winbind.c: In function ‘_pam_parse’: ../nsswitch/pam_winbind.c:440:71: warning: comparison between pointer and integer ../nsswitch/pam_winbind.c:445:7: warning: comparison between pointer and integer ../nsswitch/pam_winbind.c:447:7: warning: comparison between pointer and integer ../nsswitch/pam_winbind.c: In function ‘get_conf_item_string’: ../nsswitch/pam_winbind.c:2293:12: warning: assignment makes pointer from integer without a cast Linking shared library bin/pam_winbind.so ../nsswitch/pam_winbind.o: In function `_pam_parse': pam_winbind.c:(.text+0x551): undefined reference to `iniparser_getstr' pam_winbind.c:(.text+0x56e): undefined reference to `iniparser_getstr' pam_winbind.c:(.text+0x788): undefined reference to `iniparser_getstr' ../nsswitch/pam_winbind.o: In function `get_conf_item_string': pam_winbind.c:(.text+0x1617): undefined reference to `iniparser_getstr' collect2: ld returned 1 exit status make: *** [bin/pam_winbind.so] Error 1 make: *** Waiting for unfinished jobs.... Even old samba-3.6.1 (now removed from portage) can't compile: 'ebuild /usr/portage/overlays/jim/ebuilds/net-fs/samba/samba-3.6.1.ebuild clean compile' Compiling ../libcli/auth/pam_errors.c ../nsswitch/pam_winbind.c: In function ‘_pam_parse’: ../nsswitch/pam_winbind.c:440:71: warning: comparison between pointer and integer ../nsswitch/pam_winbind.c:445:7: warning: comparison between pointer and integer ../nsswitch/pam_winbind.c:447:7: warning: comparison between pointer and integer ../nsswitch/pam_winbind.c: In function ‘get_conf_item_string’: ../nsswitch/pam_winbind.c:2280:12: warning: assignment makes pointer from integer without a cast Linking shared library bin/pam_winbind.so ../nsswitch/pam_winbind.o: In function `_pam_parse': pam_winbind.c:(.text+0x551): undefined reference to `iniparser_getstr' pam_winbind.c:(.text+0x56e): undefined reference to `iniparser_getstr' pam_winbind.c:(.text+0x788): undefined reference to `iniparser_getstr' ../nsswitch/pam_winbind.o: In function `get_conf_item_string': pam_winbind.c:(.text+0x1617): undefined reference to `iniparser_getstr' collect2: ld returned 1 exit status make: *** [bin/pam_winbind.so] Error 1 make: *** Waiting for unfinished jobs.... Probably it is problem with glibc-2.14.1*, because last time when I was successful with samba-3.6.1 emerge, it was before my upgrade from glibc-2.13-r4 to glibc-2.14.*. But I can't test it because glibc downgrade is not possible.
*** This bug has been marked as a duplicate of bug 399141 ***
I was completely wrong with blaming glibc. It's problem between samba and iniparser. Solution proposed in https://399141.bugs.gentoo.org/attachment.cgi?id=300077 works perfectly.