emerge --upate samba for 2.2.8 fails here. I have a use ldap active and the configure.log shows that there seems to be a problem with the ldap-libraries installed.
Created attachment 9773 [details] Log of ./configure Same error here, "grep ldap /etc/make.conf" does not return any line. Portage 2.0.47-r10 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r7) ================================================================= System uname: 2.4.19-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss apm avi crypt cups encode jpeg libg++ mikmod mmx mpeg ncurses pdflib quicktime spell truetype xml2 xmms xv arts berkdb gdbm gif gnome-libs gpm gtk guile imlib java kde ldap libwww motif nls oggvorbis opengl pam png python qt readline sdl slang ssl tcpd tetex X -3dnow aalib acpi alsa bonobo dga dvd esd evo gb gd ggz gnome gphoto2 gps gtk2 gtkhtml innodb ipv6 jikes junit lcms libgda mbox mozilla mysql nas nocardbus oav pda perl pic plotutils postgres samba scanner slp snmp sse -svga tcltk tiff wmf xface xml zlib mozsvg" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Created attachment 9774 [details] Log of ./configure Same error here, "grep ldap /etc/make.conf" does not return any line. Portage 2.0.47-r10 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r7) ================================================================= System uname: 2.4.19-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss apm avi crypt cups encode jpeg libg++ mikmod mmx mpeg ncurses pdflib quicktime spell truetype xml2 xmms xv arts berkdb gdbm gif gnome-libs gpm gtk guile imlib java kde ldap libwww motif nls oggvorbis opengl pam png python qt readline sdl slang ssl tcpd tetex X -3dnow aalib acpi alsa bonobo dga dvd esd evo gb gd ggz gnome gphoto2 gps gtk2 gtkhtml innodb ipv6 jikes junit lcms libgda mbox mozilla mysql nas nocardbus oav pda perl pic plotutils postgres samba scanner slp snmp sse -svga tcltk tiff wmf xface xml zlib mozsvg" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
strange, cant reproduce there here, sorry. if you really need ldap support, maybe you could try upgrading your openldap, db, krb, sasl if you're using those and try again? otherwise compile with -ldap?
Openldap is openldap-2.0.25-r2 Although it is a little strange that the libraries are libldap.so.2.0.16 Yes I do need LDAP so how do I update this? The ./configure-logs are the same here.
I got it working going to OpenLDAP 2.0.27 by unmasking it. So it seems Samba 2.2.8 does not work with the unmasked openldap 2.0.25. Konstantin
Confirmed. I face the same problem, but emerging openldap-2.0.27-r2 first fixes it.
*** Bug 19262 has been marked as a duplicate of this bug. ***
I am still having problems emerge-ing samba-2.2.8a with USE="... ldap ..." I was only able to get samba to emerge by removing "ldap" from the USE line just long enough to get the emerge to succeed. (This is a newish installation, and this was the first samba installation on this box.) As per comment in other samba bug reports, I tried re-emerging autoconf, automake, and m4 followed by a re-emerge of samba (leaving "ldap" in the USE line), but got the same failure I was originally getting: samba fails at what appears to be the tail-end of the autoconf procedure, specifically ... checking for poptGetContext in -lpopt... no checking whether to use included popt... ./popt checking configure summary... configure: error: summary failure. Aborting config !!! ERROR: net-fs/samba-2.2.8a failed. !!! Function src_compile, Line 112, Exitcode 1 !!! bad ./configure This is the only place I have ever seen an error, and if the emerge gets past this point, it seems to do just fine. (I did all the ebuild steps by hand and tweaked the call to ./configure to not do the "ldap" stuff and it worked just fine.) (relevant?) package version numbers: sys-devel/autoconf-2.57-r1 sys-devel/automake-1.7.2 net-fs/samba-2.2.8a
you have not explained why it failed. look in `/var/tmp/portage/samba-2.2.8a/work/samba-2.2.8a/source/config.log' and find out why...
(Sorry, I was on the road and pressed for time, and neglected to include the log info. Mea culpa.) Aparently the summary stuff is searching for a bunch of "ber_..." entry-points, not finding them, and -- of course -- failing. The relevant bit from /var/tmp/.../source/config.log is ----- BEGIN LOG SNIPPET (.../source/config.log) ----- ... configure:14307: checking whether to use included popt configure:14322: checking configure summary configure:14331: gcc -o conftest -DHAVE_CRYPT_DECL -I/usr/local/ssl/include -O - march=i586 -Os -pipe -fomit-frame-pointer -Wall -D_LARGEFILE64_SOURCE -D_FILE_O FFSET_BITS=64 -D_GNU_SOURCE -L/usr/local/ssl/lib conftest.c -lssl -lcrypto - lcups -lssl -lcrypto -lnsl -lpam -lldap 1>&5 In file included from configure:14328: tests/summary.c:4: warning: return-type defaults to `int' /usr/lib/libldap.so: undefined reference to `ber_dup' /usr/lib/libldap.so: undefined reference to `ber_sockbuf_remove_io' /usr/lib/libldap.so: undefined reference to `__dn_expand' /usr/lib/libldap.so: undefined reference to `ber_alloc_t' /usr/lib/libldap.so: undefined reference to `ber_next_element' /usr/lib/libldap.so: undefined reference to `ber_printf' /usr/lib/libldap.so: undefined reference to `ber_sockbuf_free' /usr/lib/libldap.so: undefined reference to `ber_free' /usr/lib/libldap.so: undefined reference to `ber_memcalloc' /usr/lib/libldap.so: undefined reference to `ber_strdup' /usr/lib/libldap.so: undefined reference to `ber_first_element' /usr/lib/libldap.so: undefined reference to `ber_bvfree' /usr/lib/libldap.so: undefined reference to `ber_init' /usr/lib/libldap.so: undefined reference to `ber_flush' /usr/lib/libldap.so: undefined reference to `ber_pvt_log_print' /usr/lib/libldap.so: undefined reference to `ber_memvfree' /usr/lib/libldap.so: undefined reference to `ber_set_option' /usr/lib/libldap.so: undefined reference to `ber_write' /usr/lib/libldap.so: undefined reference to `ber_sockbuf_io_debug' /usr/lib/libldap.so: undefined reference to `ber_sockbuf_alloc' /usr/lib/libldap.so: undefined reference to `ber_skip_tag' /usr/lib/libldap.so: undefined reference to `ber_memalloc' /usr/lib/libldap.so: undefined reference to `ber_memrealloc' /usr/lib/libldap.so: undefined reference to `ber_get_next' /usr/lib/libldap.so: undefined reference to `ber_sockbuf_io_readahead' /usr/lib/libldap.so: undefined reference to `ber_reset' /usr/lib/libldap.so: undefined reference to `ber_peek_tag' /usr/lib/libldap.so: undefined reference to `ber_bvecfree' /usr/lib/libldap.so: undefined reference to `ber_memfree' /usr/lib/libldap.so: undefined reference to `ber_sockbuf_ctrl' /usr/lib/libldap.so: undefined reference to `ber_sockbuf_io_fd' /usr/lib/libldap.so: undefined reference to `ber_sockbuf_io_tcp' /usr/lib/libldap.so: undefined reference to `ber_flatten' /usr/lib/libldap.so: undefined reference to `ber_sockbuf_add_io' /usr/lib/libldap.so: undefined reference to `ber_get_int' /usr/lib/libldap.so: undefined reference to `ber_log_dump' /usr/lib/libldap.so: undefined reference to `__res_query' /usr/lib/libldap.so: undefined reference to `ber_scanf' /usr/lib/libldap.so: undefined reference to `ber_pvt_socket_set_nonblock' collect2: ld returned 1 exit status configure: failed program was: #line 14327 "configure" #include "confdefs.h" #include "./tests/summary.c" ----- END LOG SNIPPET -----
Created attachment 11144 [details] config.log showing failure in 'summary' section
looks like your ldap libs install is fried, somehow. i suspect maybe a screwed up .la file ? you might try to either fix any screwed up .la files installed with openldap, or try to upgrade to a version of openldap that doesnt install fried .la files... i think from glancing, that you're not getting the proper link command of "-llber -lldap". in your case i only see "-lldap" and that would probably account for all the missing _ber symbols, i think.
yes, im afraid it looks like a bad openldap install.
2.2.8 isn't in portage anymore so closing.