Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302377 - net-fs/autofs-5.0.3-r6: cannot open lookup module ldap (also fails with net-fs/autofs-5.0.4) -- includes proposed fix -- using net-dns/openldap-2.4.19-r1
Summary: net-fs/autofs-5.0.3-r6: cannot open lookup module ldap (also fails with net-f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 346537
Blocks:
  Show dependency tree
 
Reported: 2010-01-26 22:11 UTC by Duncan Exon Smith
Modified: 2011-04-03 09:52 UTC (History)
3 users (show)

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


Attachments
Ebuild that links against -lkrb5 and -lssl so that /usr/lib64/autofs/lookup_ldap.so works correctly. (autofs-5.0.3-r7.ebuild,4.29 KB, text/plain)
2010-01-26 22:12 UTC, Duncan Exon Smith
Details
Patch to show the differences between net-fs/autofs-5.0.3-r6.ebuild and the attached net-fs/autofs-5.0.3-r7.ebuild. (fix-lookup_ldap.patch,690 bytes, patch)
2010-01-26 22:15 UTC, Duncan Exon Smith
Details | Diff
build.log for net-fs/autofs-5.0.5 (build.log,32.64 KB, text/plain)
2010-06-22 13:47 UTC, Duncan Exon Smith
Details
Upstream patch for this issue (krb5.patch,829 bytes, patch)
2010-06-22 16:45 UTC, Dustin Polke
Details | Diff
Updated patch (krb5.patch,965 bytes, patch)
2010-06-22 21:33 UTC, Dustin Polke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan Exon Smith 2010-01-26 22:11:14 UTC
After upgrading to the most recent stable autofs (i.e., net-fs/autofs-5.0.3-r6), my nfs mounts stored in ldap failed during /etc/init.d/autofs start.

I attempted upgrading to the latest unstable (net-fs/autofs-5.0.4-r5), but it had the same problem.

Here's an excerpt from /var/log/messages:

Jan 26 15:32:06 hostname automount[4435]: open_lookup:95: cannot open lookup module ldap (/usr/lib64/autofs/lookup_ldap.so: undefined symbol: krb5_get_init_creds_keytab)

I was able to fix this by modifying the ebuild to include -lkrb5, but then I got this:

Jan 26 16:00:13 hostname automount[17644]: open_lookup:95: cannot open lookup module ldap (/usr/lib64/autofs/lookup_ldap.so: undefined symbol: ERR_remove_state)

After modifying the ebuild to include -lssl, things worked.  I'll attach my modified ebuild (I called it autofs-5.0.3-r7.ebuild) and a diff.  Note that I added a dependency on dev-libs/openssl which is probably unnecessary, but I didn't have time to check.

These bugs appear to be fixed on Debian (that's actually how I figured out the problem):
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=485470
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=490352

I haven't filed anything upstream.

Reproducible: Always

Steps to Reproduce:
1. Install net-fs/autofs-5.0.3-r6
2. Add an entry in /etc/autofs/auto.master such as:
 /home      ldap:ou=auto.home,dc=your,dc=domain --timeout=10 --ghost
3. Run /etc/init.d/autofs start (or restart if it's on).

Actual Results:  
/home directory mount fails.

Expected Results:  
/home directory is filled with the correct mounts.

emerge --info
Portage 2.2_rc33 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6-vennsa-dev-em64t x86_64)
=================================================================                                                        
System uname: Linux-2.6.31-gentoo-r6-vennsa-dev-em64t-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.66GHz-with-gentoo-2.0.0     
Timestamp of tree: Wed, 20 Jan 2010 17:45:01 +0000                                                                       
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                                
ccache version 2.4 [disabled]                                                                                            
app-shells/bash:     4.0_p35                                                                                             
dev-java/java-config: 2.1.9-r2                                                                                           
dev-lang/python:     2.6.4                                                                                               
dev-util/ccache:     2.4-r7                                                                                              
dev-util/cmake:      2.6.4-r3                                                                                            
sys-apps/baselayout: 2.0.0                                                                                               
sys-apps/openrc:     0.4.3-r3                                                                                            
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/opt/gentoo-portage/distfiles"
FEATURES="autoaddcvs buildpkg distlocks fixpackages multilib parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en_CA en_GB en zh zh_TW zh_CN"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/vmware /usr/local/vennsa/portage"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amd64 arts bash-completion berkdb bitmap-fonts bluetooth branding bzip2 cairo calendar cdr cli consolekit cracklib crypt cscope cups curl curlwrappers cxx dbus dga directfb doc dri dts dvd dvdr eds emacs emboss encode evo examples exif expat fam fbcon ffmpeg firefox flac foomaticdb fortran gd gdbm gif gmp gnutls gpm graphviz gstreamer gtk gtk2 hal iconv idn ieee1394 imagemagick imap imlib ipod ipv6 jabber java javascript jpeg jpeg2k kde kdexdeltas kerberos latex ldap leim libnotify m17n-lib mad mikmod mime mmx mng modules motif mp3 mp4 mpeg mpg mpi mplayer msn mudflap multilib musicbrainz ncurses nls nptl nptlonly nsplugin ofx ogg openexr opengl openmp pam pcre pdf perl plotutils png ppds pppd python qt3support qt4 quicktime readline reflection samba sasl sdl session spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs tcl tcpd tetex threads thunar tiff tk truetype truetype-fonts type1-fonts unicode usb vhosts vim-syntax vorbis wmf x264 xcomposite xface xine xinerama xml xorg xprint xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_CA en_GB en zh zh_TW zh_CN" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia radeon vesa vga intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Duncan Exon Smith 2010-01-26 22:12:49 UTC
Created attachment 217505 [details]
Ebuild that links against -lkrb5 and -lssl so that /usr/lib64/autofs/lookup_ldap.so works correctly.
Comment 2 Duncan Exon Smith 2010-01-26 22:15:40 UTC
Created attachment 217506 [details, diff]
Patch to show the differences between net-fs/autofs-5.0.3-r6.ebuild and the attached net-fs/autofs-5.0.3-r7.ebuild.
Comment 3 Duncan Exon Smith 2010-01-26 23:20:26 UTC
Looks like what broke things was upgrading net-nds/openldap up to net-nds/openldap-2.4.19-r1, since I think I already had net-fs/autofs-5.0.3-r6 installed.  Regardless, remerging net-fs/autofs did not fix it except with the attached ebuild.
Comment 4 Dustin Polke 2010-06-17 16:20:29 UTC
(In reply to comment #3)
> Looks like what broke things was upgrading net-nds/openldap up to
> net-nds/openldap-2.4.19-r1, since I think I already had net-fs/autofs-5.0.3-r6
> installed.  Regardless, remerging net-fs/autofs did not fix it except with the
> attached ebuild.

Duncan, could you please test autofs-5.0.5 and report back whether this is still an issue?
Comment 5 Duncan Exon Smith 2010-06-17 16:37:34 UTC
> Duncan, could you please test autofs-5.0.5 and report back whether this is
> still an issue?

I won't get a chance until next week at least.  I'll report back then.
Comment 6 Duncan Exon Smith 2010-06-21 16:22:00 UTC
(In reply to comment #5)
> > Duncan, could you please test autofs-5.0.5 and report back whether this is
> > still an issue?
> 
> I won't get a chance until next week at least.  I'll report back then.
> 

I tried =autofs-5.0.5, and it does not work for me.  I did not try my patch from before.  The error in /var/log/messages is slightly different:

open_lookup:90: cannot open lookup module ldap (/usr/lib64/autofs/lookup_ldap.so: undefined symbol: krb5_get_init_creds_keytab)

I have *not* done an 'emerge -uavDN world' in a while... is there a fix to some other package that I should pull in?
Comment 7 Duncan Exon Smith 2010-06-21 16:24:12 UTC
(In reply to comment #6)
> The error in /var/log/messages is slightly different:
> 
> open_lookup:90: cannot open lookup module ldap
> (/usr/lib64/autofs/lookup_ldap.so: undefined symbol:
> krb5_get_init_creds_keytab)

Nevermind... this *is* the same error as before (I hand only skimmed my initial bug report).  Definitely still around.  I imagine the same patch would work.
Comment 8 Dustin Polke 2010-06-22 12:17:46 UTC
(In reply to comment #7)
> Nevermind... this *is* the same error as before (I hand only skimmed my initial
> bug report).  Definitely still around.  I imagine the same patch would work.

Could you please provide 'emerge --info autofs' for autofs-5.0.5 as well attach the build log with MAKEOPT="-j1", please?
Comment 9 Duncan Exon Smith 2010-06-22 13:47:40 UTC
Created attachment 236249 [details]
build.log for net-fs/autofs-5.0.5

emerge --info autofs

Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6-vennsa-dev-em64t x86_64)
=================================================================                                                       
                        System Settings                                                                                 
=================================================================                                                       
System uname: Linux-2.6.31-gentoo-r6-vennsa-dev-em64t-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.66GHz-with-gentoo-2.0.0    
Timestamp of tree: Mon, 21 Jun 2010 15:15:02 +0000                                                                      
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                               
ccache version 2.4 [disabled]                                                                                           
app-shells/bash:     4.0_p35                                                                                            
dev-java/java-config: 2.1.10                                                                                            
dev-lang/python:     2.6.4                                                                                              
dev-util/ccache:     2.4-r7                                                                                             
dev-util/cmake:      2.6.4-r3                                                                                           
sys-apps/baselayout: 2.0.0                                                                                              
sys-apps/openrc:     0.4.3-r3                                                                                           
sys-apps/sandbox:    1.6-r2                                                                                             
sys-devel/autoconf:  2.13, 2.63-r1                                                                                      
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2                                                                         
sys-devel/binutils:  2.19.1-r1                                                                                          
sys-devel/gcc:       4.1.2, 4.3.4, 4.4.2                                                                                
sys-devel/gcc-config: 1.4.1                                                                                             
sys-devel/libtool:   2.2.6b                                                                                             
virtual/os-headers:  2.6.30-r1                                                                                          
ACCEPT_KEYWORDS="amd64"                                                                                                 
ACCEPT_LICENSE="*"                                                                                                      
CBUILD="x86_64-pc-linux-gnu"                                                                                            
CFLAGS="-O2 -march=nocona -pipe"                                                                                        
CHOST="x86_64-pc-linux-gnu"                                                                                             
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb"                                    
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                                                                                        
CXXFLAGS="-O2 -march=nocona -pipe"                                                                                                                                                                      
DISTDIR="/opt/gentoo-portage/distfiles"                                                                                                                                                                 
EMERGE_DEFAULT_OPTS="--with-bdeps=y"                                                                                                                                                                    
FEATURES="assume-digests autoaddcvs buildpkg distlocks fixpackages multilib news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                            
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo"                                                                                                                                                     
LDFLAGS="-Wl,-O1"                                                                                                                                                                                       
LINGUAS="en_CA en_GB en zh zh_TW zh_CN"                                                                                                                                                                 
MAKEOPTS="-j5"                                                                                                                                                                                          
PKGDIR="/usr/portage/packages"                                                                                                                                                                          
PORTAGE_CONFIGROOT="/"                                                                                                                                                                                  
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"          
PORTAGE_TMPDIR="/var/tmp"                                                                                                                                                                               
PORTDIR="/usr/portage"                                                                                                                                                                                  
PORTDIR_OVERLAY="/usr/portage/local/layman/vmware /usr/local/vennsa/portage"                                                                                                                            
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"                                                                                                                                                     
USE="3dnow X a52 aac acl acpi alsa amd64 bash-completion berkdb bitmap-fonts bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cscope cups curl curlwrappers cxx dbus dga directfb dri dts dvd dvdr emboss encode exif expat fam fbcon ffmpeg firefox flac foomaticdb fortran gd gdbm gif gmp gnutls gpm graphviz gtk hal iconv idn ieee1394 imagemagick imap ipod ipv6 jabber java jpeg jpeg2k kerberos latex lcms ldap libnotify mad mikmod mime mmx mng modules mp3 mp4 mpeg mpg mpi mplayer msn mudflap multilib musicbrainz ncurses nls nptl nptlonly nsplugin ogg openexr opengl openmp pam pango pcre pdf perl plotutils png ppds pppd python qt3support qt4 quicktime readline reflection samba sasl sdl session spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb vhosts vim-syntax vorbis wmf x264 xcb xcomposite xine xinerama xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_CA en_GB en zh zh_TW zh_CN" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia radeon vesa vga intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"                                                                                                                                                                          
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS                                                                       

=================================================================
                        Package Settings                         
=================================================================

net-fs/autofs-5.0.5 was built with the following:
USE="ldap (multilib) sasl -hesiod"
Comment 10 Dustin Polke 2010-06-22 16:45:15 UTC
Created attachment 236261 [details, diff]
Upstream patch for this issue

Could you please test with this patch and tell me whether the issue is solved?
Upstream knows about this and the proposed patch just adds -lkrb5 to LIBSASL.
Please let me know whether -lssl is still needed.

Put this file into net-fs/autofs/files and add
epatch "${FILESDIR}/krb5.patch"
in the prepare section of the ebuild just befor eautoreconf.

Then run
# ebuild /path/to/ebuild manifest
and reemerge afterwards.
Comment 11 Duncan Exon Smith 2010-06-22 17:12:31 UTC
(In reply to comment #10)
> Could you please test with this patch and tell me whether the issue is solved?
> Upstream knows about this and the proposed patch just adds -lkrb5 to LIBSASL.
> Please let me know whether -lssl is still needed.

That patch gives me the following error:

open_lookup:95: cannot open lookup module ldap (/usr/lib64/autofs/lookup_ldap.so: undefined symbol: ERR_remove_state)

I guess -lssl is still necessary!
Comment 12 Duncan Exon Smith 2010-06-22 18:20:28 UTC
(In reply to comment #11)
> > Please let me know whether -lssl is still needed.
> 
> I guess -lssl is still necessary!

In case there's any confusion:  after modifying the patch to include -lssl after -lkrb5, it *does* work (no errors).
Comment 13 Dustin Polke 2010-06-22 21:33:22 UTC
Created attachment 236287 [details, diff]
Updated patch

(In reply to comment #12)
> (In reply to comment #11)
> > > Please let me know whether -lssl is still needed.
> > 
> > I guess -lssl is still necessary!
> 
> In case there's any confusion:  after modifying the patch to include -lssl
> after -lkrb5, it *does* work (no errors).
> 
Thanks for testing. I don't have a setup for this.
Could you please test this patch as with the one before, please?
Comment 14 Duncan Exon Smith 2010-06-22 21:46:04 UTC
(In reply to comment #13)
> Created an attachment (id=236287) [details]
> Updated patch
> Thanks for testing. I don't have a setup for this.
> Could you please test this patch as with the one before, please?

(I figured as much.)  This new one works for me.
Comment 15 Denis Scherbakov 2011-01-25 11:29:10 UTC
Hi! I would like to report that the last krb5.patch (dated 2010-06-22 21:33) also works for me. I tested it with autofs 5.0.4 and 5.0.5. Thanks! Denis
Comment 16 Peter Volkov (RETIRED) gentoo-dev 2011-04-03 09:52:54 UTC
patch was added in 5.0.5-r1. Fixed.