Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401749 - net-fs/samba-3.6.3 - pam_winbind.c:(.text+0x484): undefined reference to `iniparser_getstr'
Summary: net-fs/samba-3.6.3 - pam_winbind.c:(.text+0x484): undefined reference to `ini...
Status: RESOLVED DUPLICATE of bug 399141
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-01 08:39 UTC by neko259
Modified: 2012-02-01 16:39 UTC (History)
0 users

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


Attachments
build.log (qjim) (build.log,70.06 KB, text/plain)
2012-02-01 14:17 UTC, Jiří Moravec
Details
emerge --info (qjim) (emerge.info-20120201,5.07 KB, text/plain)
2012-02-01 14:20 UTC, Jiří Moravec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description neko259 2012-02-01 08:39:54 UTC
Build log: http://paste.pocoo.org/show/543978/
emerge --info: http://paste.pocoo.org/show/543979/
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-02-01 10:01:44 UTC
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.
Comment 2 Jiří Moravec 2012-02-01 14:17:50 UTC
Created attachment 300641 [details]
build.log (qjim)
Comment 3 Jiří Moravec 2012-02-01 14:20:27 UTC
Created attachment 300643 [details]
emerge --info (qjim)
Comment 4 Jiří Moravec 2012-02-01 15:07:36 UTC
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.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-01 15:50:24 UTC

*** This bug has been marked as a duplicate of bug 399141 ***
Comment 6 Jiří Moravec 2012-02-01 16:39:38 UTC
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.