Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 315975 - net-fs/samba-3.5.2 fails to build, No rule to make target `bin/winbind_krb5_locator'
Summary: net-fs/samba-3.5.2 fails to build, No rule to make target `bin/winbind_krb5_l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High normal with 1 vote (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
: 321387 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-18 15:48 UTC by Tobias Margitan
Modified: 2010-05-25 10:02 UTC (History)
7 users (show)

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


Attachments
samba_build_log (build_log,70.05 KB, text/plain)
2010-04-18 15:48 UTC, Tobias Margitan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Margitan 2010-04-18 15:48:13 UTC
Build fails every time same place. Heres the emerge --info, build log is attached

Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.31-gentoo-r2 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.31-gentoo-r2-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 18 Apr 2010 07:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p5
dev-lang/python:     2.6.5-r1, 3.1.2-r2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.1.2, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="accessibility acl ads amd64 apache2 async bootstrap caps chroot cjk cli client crypt ctype curl dba dev-lang/php filter fortran gd gdbm geoip git gnutls gpm imagemagick imap ithreads javascript jpeg kerberos latin1 ldap libwww logrotate maildir math mpm-threadpool mpm-worker multilib mysql mysqli ncurses netboot nls nptl nptlonly pam pcre perl png raw samba server session simplexml slang snmp sockets spl ssl subversion tcltk tcpd threadsafe tiff unicode unzip webdav-neon webdav-serf winbind xml xml2 xpdf-headers xtended zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY




Reproducible: Always

Steps to Reproduce:
Comment 1 Tobias Margitan 2010-04-18 15:48:43 UTC
Created attachment 228283 [details]
samba_build_log
Comment 2 Rafał Mużyło 2010-04-18 19:50:22 UTC
As your keywords already are ~amd64, it seems you aren't updating
you system properly: while tdb_check isn't in sys-libs/tdb-1.1.5,
it's present in sys-libs/tdb-1.2.1.
Comment 3 Rafał Mużyło 2010-04-18 19:52:08 UTC
To clarify: while the ebuild should probably have the dep bumped,
you still should already have it installed.
Comment 4 Tobias Margitan 2010-04-18 19:53:08 UTC
just checked, tdb is at 1.2.1 :(
Comment 5 Tobias Margitan 2010-04-18 20:05:51 UTC
okay, a rebuild of tdb has resolved my issue, strange thing. Guess an emerge -e world wouldn't hurt sometime soon...
Comment 6 Tobias Margitan 2010-04-18 21:24:29 UTC
hmm seems I was too fast in responding, it still fails, but very late in the build process:

Compiling winbindd/idmap.c
Compiling winbindd/idmap_util.c
Compiling winbindd/idmap_ldap.c
Compiling winbindd/idmap_tdb.c
Compiling winbindd/idmap_passdb.c
Compiling winbindd/idmap_nss.c
Compiling winbindd/nss_info.c
Compiling winbindd/nss_info_template.c
make: *** No rule to make target `bin/winbind_krb5_locator'.  Stop.
make: *** Waiting for unfinished jobs....
Compiling lib/tdb_validate.c
 * ERROR: net-fs/samba-3.5.2 failed:
 *   emake sbinprogs failed

tried rebulding krb as well
Comment 7 Torsten Kurbad 2010-04-22 15:55:57 UTC
This has nothing to do with tdb and/or other (probably) broken dependencies.
The target simply is called "bin/winbind_krb5_locator.so" as of samba 3.5.

The following patch to the ebuild fixes the issue:

--- samba-3.5.2.ebuild.orig	2010-04-22 17:54:35.559859059 +0200
+++ samba-3.5.2.ebuild	2010-04-22 17:53:44.556474127 +0200
@@ -57,7 +57,7 @@
 
 	use swat && SBINPROGS="${SBINPROGS} bin/swat"
 	use winbind && SBINPROGS="${SBINPROGS} bin/winbindd"
-	use ads && use winbind && SBINPROGS="${SBINPROGS} bin/winbind_krb5_locator"
+	use ads && use winbind && SBINPROGS="${SBINPROGS} bin/winbind_krb5_locator.so"
 fi
 
 if use client ; then
@@ -269,6 +269,7 @@
 	insinto /usr
 	for prog in ${SBINPROGS} ; do
 		dosbin ${prog} || die "installing ${prog} failed"
+		prog=${prog/\.so}
 		doman ../docs/manpages/${prog/bin\/}* || die "doman failed"
 	done
 	dobin ${BINPROGS} || die "installing binaries failed"


Best regards,
Torsten
Comment 8 Tobias Margitan 2010-04-22 17:37:43 UTC
this fixed the build process, thanks!
Comment 9 Rafał Mużyło 2010-04-23 11:54:16 UTC
Don't mark as FIXED, till it's fixed in the tree.
Comment 10 Per Pomsel 2010-05-11 05:30:53 UTC
When will this be finally fixed in tree? Without this patch, samba can't be installed in Microsoft environments where kerberos is needed.
Comment 11 Tobias Margitan 2010-05-14 16:56:00 UTC
will this fix be in the tree any soon? my system wants r1 merged, but i don't want to patch the ebuild again :)
Comment 12 Ross Anderson 2010-05-19 19:36:22 UTC
Continues to be an issue with 3.5.3
Comment 13 Gabriel Marcano 2010-05-20 03:00:37 UTC
I'm suffering from the same problem with a Pentium 4 (it is running ~x84, unstable), so someone should change the hardware tab on top (it might affect all architectures, not just AMD). As a note, the patch presented here does work, but it required a bit of shifting for it to work with Samba 3.5.3 (I manually wrote it in the ebuild). It just finished compiling on my computer, so I'm guessing that it successfully corrected the problem (if nothing else, it's not crashing now).
Comment 14 Gabriel Marcano 2010-05-20 03:02:19 UTC
.(In reply to comment #13)
> I'm suffering from the same problem with a Pentium 4 (it is running ~x84,
> unstable), so someone should change the hardware tab on top (it might affect
> all architectures, not just AMD). As a note, the patch presented here does
> work, but it required a bit of shifting for it to work with Samba 3.5.3 (I
> manually wrote it in the ebuild). It just finished compiling on my computer, so
> I'm guessing that it successfully corrected the problem (if nothing else, it's
> not crashing now).
> 

To correct myself:
My P4 is running on ~x86, not 84. That's what happens when one doesn't sleep..
Comment 15 Víctor Ostorga (RETIRED) gentoo-dev 2010-05-21 17:26:48 UTC
+  21 May 2010; Víctor Ostorga <vostorga@gentoo.org> samba-3.5.3.ebuild:
+  Fixing build with USE=ads winbind, patch thanks to Rainer Ruecker
+  <rainer@emdete.de> bugs #314709 #315975
Comment 16 Rafał Mużyło 2010-05-25 08:08:20 UTC
*** Bug 321387 has been marked as a duplicate of this bug. ***
Comment 17 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-05-25 10:02:59 UTC
*** Bug 321429 has been marked as a duplicate of this bug. ***