From nobody@FreeBSD.org  Sat Jun 29 00:36:34 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id AFF88B3B
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 29 Jun 2013 00:36:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id 88C0E1E1E
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 29 Jun 2013 00:36:34 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5T0aYgj017023
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 29 Jun 2013 00:36:34 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5T0aYPk017020;
	Sat, 29 Jun 2013 00:36:34 GMT
	(envelope-from nobody)
Message-Id: <201306290036.r5T0aYPk017020@oldred.freebsd.org>
Date: Sat, 29 Jun 2013 00:36:34 GMT
From: Dewayne <dewayne@heuristicsystems.com.au>
To: freebsd-gnats-submit@FreeBSD.org
Subject: samba-3.6.16 link failure winbind_krb5_locator
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         180074
>Category:       ports
>Synopsis:       net/samba36: samba-3.6.16 link failure winbind_krb5_locator
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    timur
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 29 00:40:00 UTC 2013
>Closed-Date:    Mon Jul 01 02:42:42 UTC 2013
>Last-Modified:  Mon Jul  1 02:50:01 UTC 2013
>Originator:     Dewayne
>Release:        FreeBSD9.1 Stable
>Organization:
>Environment:
FreeBSD b1.hs 9.1-STABLE FreeBSD 9.1-STABLE #0: Wed Jun 26 16:28:09 EST 2013     root@:/usr/obj/usr/src/sys/hqdev-amd64-padlock-smp-vga   i386

>Description:
From the compilation log; during the link phase, of samba-3.6.16, the linker is is looking for 
bin/winbind_krb5_locator.so
the correct location is 
nsswitch/winbind_krb5_locator.so
per:

 Compiling ../nsswitch/wins_freebsd.c
Linking ../nsswitch/nss_wins.so
Compiling ../nsswitch/pam_winbind.c
Linking shared library bin/pam_winbind.so
Compiling ../nsswitch/winbind_krb5_locator.c
Linking bin/winbind_krb5_locator.so
cc: ^?ELF^A^A^A: No such file or directory
gmake: *** [bin/winbind_krb5_locator.so] Error 1
*** [do-build] Error code 1
Stop in /usr/ports/net/samba36.
=== === ===
Naively changing source3/Makefile from
EXTRA_ALL_TARGETS =  bin/winbind_krb5_locator.so
to
EXTRA_ALL_TARGETS =  nsswitch/winbind_krb5_locator.so

But this only creates a problem further down the build process.  Next failure is reproduced by
cd /var/ports/usr/ports/net/samba36/work/samba-3.6.16/source3 && gmake clean && gmake 
..
Compiling ../nsswitch/pam_winbind.c
Linking shared library bin/pam_winbind.so
gmake: *** No rule to make target `nsswitch/winbind_krb5_locator.so', needed by `all'.  Stop.

The build "stops" occur on both i386 and amd64 machines.


>How-To-Repeat:
cd /usr/ports/net/samba36 && make clean && make 
or 
cd /var/ports/usr/ports/net/samba36/work/samba-3.6.16/source3 && gmake clean && gmake

For reference, make showconfig
===> The following configuration options are available for samba36-3.6.16:
     ACL_SUPPORT=on: ACL support
     ADS=on: Active Directory support
     AIO_SUPPORT=on: Asyncronous IO support
     AVAHI=off: Zeroconf support via Avahi
     CUPS=on: CUPS printing system support
     DNSUPDATE=off: Dynamic DNS update(require ADS)
     EXP_MODULES=off: Experimental modules
     FAM_SUPPORT=off: File Alteration Monitor
     IPV6=off: IPv6 protocol support
     LDAP=on: LDAP support
     MAX_DEBUG=off: Maximum debugging
     PAM_SMBPASS=off: PAM authentication vs passdb backends
     POPT=on: System-wide POPT library
     PTHREADPOOL=on: Pthread pool
     QUOTAS=on: Disk quota support
     SMBTORTURE=off: smbtorture
     SWAT=off: SWAT WebGUI
     SYSLOG=off: Syslog support
     UTMP=off: UTMP accounting support
     WINBIND=on: WinBIND support

>Fix:
Unknown.

A naive look at the problem suggests to change EXTRA_ALL_TARGETS source3/Makefile to
EXTRA_ALL_TARGETS =  nsswitch/winbind_krb5_locator.so
however this is contrary to successful builds on a samba-4.0.6 machine that has WINBIND_KRB5_LOCATOR="bin/winbind_krb5_locator.$SHLIBEXT"
in the configure.in file. 

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Jun 29 05:22:34 UTC 2013 
Responsible-Changed-Why:  
ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=180074 
Responsible-Changed-From-To: freebsd-ports-bugs->timur 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Jun 29 05:23:05 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=180074 

From: Mark Linimon <linimon@lonesome.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/180074: samba-3.6.16 link failure winbind_krb5_locator
Date: Sat, 29 Jun 2013 19:31:35 -0500

 ----- Forwarded message from avv <a.v.volobuev@gmail.com> -----
 
 Date: Sat, 29 Jun 2013 16:41:42 -0700 (PDT)
 From: avv <a.v.volobuev@gmail.com>
 To: freebsd-bugs@freebsd.org
 Subject: Re: misc/180074: samba-3.6.16 link failure winbind_krb5_locator
 
 As far as I understanding, a problem in incorrect generation of the file:
 ./source3/Makefile:
 
 bin/winbind_krb5_locator.so: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ)
 $(LIBTALLOC) $(LIBWBCLIENT)
     @echo "Linking $@"
     @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ)
 $(LIBWBCLIENT_LIBS) $(KRB5LIBS) 
     @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ)
 $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
         $(LIBREPLACE_LIBS) -Wl,-soname,`basename $@`
 Line superfluous: 
 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS)
 $(KRB5LIBS)
 
 --
 View this message in context: http://freebsd.1045724.n5.nabble.com/misc-180074-samba-3-6-16-link-failure-winbind-krb5-locator-tp5824367p5824586.html
 Sent from the freebsd-bugs mailing list archive at Nabble.com.
 _______________________________________________
 freebsd-bugs@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
 To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
 
 
 ----- End forwarded message -----

From: "Dewayne" <dewayne.geraghty@heuristicsystems.com.au>
To: <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: ports/180074: net/samba36: samba-3.6.16 link failure winbind_krb5_locator
Date: Sun, 30 Jun 2013 20:31:54 +1000

 Thank-you AVV, for the solution.  
 
 I've created this file patch-source3__Makefile.in-winbind-krb5-locator 
 to be added to /usr/ports/net/samba36/files/.
 
 --- ./source3/Makefile.in.bak   2013-06-30 12:48:31.000000000 +1000
 +++ ./source3/Makefile.in       2013-06-30 12:54:07.000000000 +1000
 @@ -1688,6 +1688,9 @@
  .h.h.gch:
         @echo Compiling $*.h
 
 +.h.h.gch:
 +       @echo Compiling $*.h
 +
  PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
 
  # this adds support for precompiled headers. To use it, install a snapshot
 @@ -2862,7 +2865,7 @@
 
  bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
         @echo "Linking $@"
 -       @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
 +#      @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
         @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
                 $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
 
 The name is important to ensure that it is applied after the usual Makefile.in patches.
 This is a stop-gap for those that are stuck, until Timur has the opportunity to patch correctly.
 
 Please note, this patch enables compilation/linking, functional testing is a few hours away but is not expected to be problematic.
 
 Regards, Dewayne.
 Sydney, Australia (GMT +10 hours)
 
State-Changed-From-To: open->closed 
State-Changed-By: timur 
State-Changed-When: Mon Jul 1 02:42:41 UTC 2013 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=180074 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/180074: commit references a PR
Date: Mon,  1 Jul 2013 02:41:40 +0000 (UTC)

 Author: timur
 Date: Mon Jul  1 02:41:31 2013
 New Revision: 322112
 URL: http://svnweb.freebsd.org/changeset/ports/322112
 
 Log:
   Fixed typo in the patch that broke winbind_krb5_locator linking. Add external
   dependency on tevent library.
   
   PR:		180074, 180053
 
 Modified:
   head/net/samba36/Makefile
   head/net/samba36/files/patch-source3__Makefile.in
 
 Modified: head/net/samba36/Makefile
 ==============================================================================
 --- head/net/samba36/Makefile	Mon Jul  1 02:36:07 2013	(r322111)
 +++ head/net/samba36/Makefile	Mon Jul  1 02:41:31 2013	(r322112)
 @@ -2,7 +2,7 @@
  
  PORTNAME=		${SAMBA_BASENAME}36
  PORTVERSION=		3.6.16
 -PORTREVISION?=		0
 +PORTREVISION?=		1
  CATEGORIES?=		net
  MASTER_SITES=		${MASTER_SITE_SAMBA}
  MASTER_SITE_SUBDIR=	samba samba/stable samba/pre
 @@ -90,6 +90,10 @@ CONFIGURE_ARGS+=	--without-libtdb --enab
  BUILD_DEPENDS+=		talloc>=2.0.1:${PORTSDIR}/devel/talloc
  RUN_DEPENDS+=		talloc>=2.0.1:${PORTSDIR}/devel/talloc
  CONFIGURE_ARGS+=	--without-libtalloc --enable-external-libtalloc
 +# tevent
 +BUILD_DEPENDS+=		tevent>=0.9.11:${PORTSDIR}/devel/tevent
 +RUN_DEPENDS+=		tevent>=0.9.11:${PORTSDIR}/devel/tevent
 +CONFIGURE_ARGS+=	--without-libtevent --enable-external-libtevent
  # These options are common for all (sub)ports
  CONFIGURE_ARGS+=	--with-libiconv="${LOCALBASE}" \
  			--disable-as-needed
 
 Modified: head/net/samba36/files/patch-source3__Makefile.in
 ==============================================================================
 --- head/net/samba36/files/patch-source3__Makefile.in	Mon Jul  1 02:36:07 2013	(r322111)
 +++ head/net/samba36/files/patch-source3__Makefile.in	Mon Jul  1 02:41:31 2013	(r322112)
 @@ -1,5 +1,5 @@
  --- ./source3/Makefile.in.orig	2013-06-19 07:35:24.000000000 +0000
 -+++ ./source3/Makefile.in	2013-06-27 02:34:58.169873859 +0000
 ++++ ./source3/Makefile.in	2013-06-30 04:26:08.399888796 +0000
  @@ -151,7 +151,7 @@
   # These can be overridden by command line switches (see smbd(8))
   # or in smb.conf (see smb.conf(5))
 @@ -38,19 +38,19 @@
   PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
   
   # this adds support for precompiled headers. To use it, install a snapshot
 -@@ -2856,9 +2860,10 @@
 +@@ -2856,9 +2860,9 @@
   		$(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
   		@SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
   
  -bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
  +bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
   	@echo "Linking $@"
 - 	@$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
 +-	@$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
  +	@$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
   		$(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
   
   bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBTEVENT) $(LIBWBCLIENT)
 -@@ -3215,7 +3220,8 @@
 +@@ -3215,7 +3219,8 @@
   	@echo "Linking shared library $@"
   	@$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) -lpam $(DYNEXP) \
   		$(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
