I've just tried updating to autofs-5.0.5-r2 but it appears to break all mounts I have stored in LDAP. After emerging and then restarting autofs, I notice the following error message in my logs: Apr 8 10:14:06 yuba automount[12679]: autofs stopped Apr 8 10:14:06 yuba automount[12726]: Starting automounter version 5.0.5, master map auto.master Apr 8 10:14:06 yuba automount[12726]: using kernel protocol version 5.02 Apr 8 10:14:06 yuba automount[12726]: lookup_nss_read_master: reading master files auto.master Apr 8 10:14:06 yuba automount[12726]: parse_init: parse(sun): init gathered global options: (null) Apr 8 10:14:06 yuba automount[12726]: spawn_mount: mtab link detected, passing -n to mount Apr 8 10:14:06 yuba automount[12726]: spawn_umount: mtab link detected, passing -n to mount Apr 8 10:14:06 yuba automount[12726]: lookup_read_master: lookup(file): read entry +auto.master.netboot Apr 8 10:14:06 yuba automount[12726]: lookup_nss_read_master: reading master files auto.master.netboot Apr 8 10:14:06 yuba automount[12726]: lookup(file): file map /etc/auto.master.netboot missing or not readable Apr 8 10:14:06 yuba automount[12726]: lookup_nss_read_master: reading master ldap auto.master.netboot Apr 8 10:14:07 yuba automount[12726]: open_lookup:90: cannot open lookup module ldap (/usr/lib/autofs/lookup_ldap.so: undefined symbol: defaults_get_searchdns) Apr 8 10:14:07 yuba automount[12726]: lookup(file): failed to read included master map auto.master.netboot Apr 8 10:14:07 yuba automount[12726]: no mounts in table auto.master.netboot is a automount map located in LDAP. This setup has been working fine with all net-fs/autofs versions up to and including 5.0.5. USE flags are "ldap -hesiod -sasl". I'm currently using net-nds/openldap-2.4.24. Will attach configuration files: Reproducible: Always Portage 2.2.0_alpha29 (default/linux/x86/10.0/desktop/gnome, gcc-4.5.2, glibc-2.13-r2, 2.6.37 i686) ================================================================= System uname: Linux-2.6.37-i686-Dual-Core_AMD_Opteron-tm-_Processor_1214-with-gentoo-2.0.2 Timestamp of tree: Thu, 07 Apr 2011 05:15:01 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] app-shells/bash: 4.2_p8 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.6-r2::sage-on-gentoo, 2.7.1-r1::sage-on-gentoo, 3.1.3-r1 dev-util/cmake: 2.8.4 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.0 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.3.4, 4.4.5, 4.5.2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 virtual/os-headers: 2.6.38 (sys-kernel/linux-headers) Repositories: gentoo science ephemeral sunrise sage-on-gentoo Vala xfce-dev java-overlay msi-cluster local-ebuilds cran Installed sets: ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/applications /usr/share/config /usr/share/gnupg/qualified.txt" 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" CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs buildpkg compress-build-logs distlocks fail-clean fixlafiles fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-filter unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer" GENTOO_MIRRORS="ftp://mirror.aarnet.edu.au/pub/gentoo ftp://mirror.internode.on.net/pub/gentoo ftp://ftp.swin.edu.au/gentoo" LANG="C" LC_ALL="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common" LINGUAS="*" MAKEOPTS="-j3 -l1.0" 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="/var/lib/layman/science /var/lib/layman/ephemeral /var/lib/layman/sunrise /var/lib/layman/sage-on-gentoo /var/lib/layman/vala /var/lib/layman/xfce-dev /var/lib/layman/java-overlay /var/lib/layman/msi-cluster /usr/local/overlays/msi /usr/local/overlays/cran" SYNC="rsync://mirror.internode.on.net/gentoo-portage/" USE="X a52 aac accessibility acl acpi alsa avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cdr cjk cli consolekit cracklib crypt cups cxx dbus dga dri dts dvd dvdr eds emacs emboss encode evo exif fam fbcon firefox flac fontconfig fortran gdbm gdu gif gmp gnome gnome-keyring gpm gstreamer gtk gzip iconv icu ipv6 jpeg lcms ldap libnotify lzma lzo mad mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap nautilus ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd pulseaudio python qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg sysfs syslog tcpd threads tiff truetype udev unicode usb vim vim-syntax vorbis x264 x86 xcb xemacs xml xorg xulrunner xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 cgi cgid 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" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev virtualbox" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="*" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 fbdev vesa virtualbox" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 268941 [details] /etc/conf.d/autofs
Created attachment 268943 [details] /etc/autofs_ldap_auth.conf
Created attachment 268945 [details] /etc/nsswitch.conf
Thanks for the report. (In reply to comment #0) > Apr 8 10:14:07 yuba automount[12726]: open_lookup:90: cannot open lookup > module ldap (/usr/lib/autofs/lookup_ldap.so: undefined symbol: > defaults_get_searchdns) I do not have the setup to test this myself. Could you please try the following: Change the following line in the ebuild: """ epatch "${FILESDIR}"/${P}-respect-user-flags-and-fix-asneeded-v1.patch """ to read """ epatch "${FILESDIR}"/${P}-respect-user-flags-and-fix-asneeded.patch """ and report back whether autofs works or not?
(In reply to comment #4) > Thanks for the report. > > (In reply to comment #0) > > Apr 8 10:14:07 yuba automount[12726]: open_lookup:90: cannot open lookup > > module ldap (/usr/lib/autofs/lookup_ldap.so: undefined symbol: > > defaults_get_searchdns) > I do not have the setup to test this myself. Could you please try the > following: > Change the following line in the ebuild: > """ > epatch "${FILESDIR}"/${P}-respect-user-flags-and-fix-asneeded-v1.patch > """ > to read > """ > epatch "${FILESDIR}"/${P}-respect-user-flags-and-fix-asneeded.patch > """ > > and report back whether autofs works or not? Hi Dustin, No this patch switch doesn't fix the problem for me. Regards, Joshua Rich
Could you please post the output of # readelf -Ws /usr/lib/autofs/lookup_ldap.so | grep defaults_get_searchdns
Joshua, in addition, could you attach full build.log of autofs, please.
Created attachment 270449 [details] readelf -Ws lookup_ldap.so Output As requested, output of: readelf -Ws lookup_ldap.so
Created attachment 270451 [details] autofs-5.0.5-r2 build log As requested, build log for autofs-5.0.5-r2.
Joshua, thanks for the additional information. I can't see anything obvious, so could you please test with the earlier upstream patch version to see whether this bug was introduced by a new upstream patch? Please change to PATCH_VER="1", which then applies all upstream patches as in autofs-5.0.5. If autofs then works properly, could you please post the output on syslog as well please?
Well, fixed in autofs-5.0.5-r3.ebuild. Dustin, that was broken files/autofs-5.0.5-fix-building-without-ldap.patch, as it surrounded code with HAVE_LDAP, instead of WITH_LDAP. I've fixed it, could you send it upstream, please.