Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Oct 2012 10:59:38 GMT
From:      Takuya Harada <tharada@e-mail.jp>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/172484: [PATCH] net/samba4-devel build failed with perl5.16
Message-ID:  <201210081059.q98Axcfs050042@red.freebsd.org>
Resent-Message-ID: <201210081100.q98B0PCT027632@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         172484
>Category:       misc
>Synopsis:       [PATCH] net/samba4-devel build failed with perl5.16
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 08 11:00:25 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Takuya Harada
>Release:        10.0-current
>Organization:
Ohu University
>Environment:
FreeBSD build-i386.noway.com 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Sat Sep 29 17:42:01 JST 2012     kanrinin@build-i386.noway.com:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I have tried to build net/samba4-devel with perl5.16 and portmaster. 
However, the build has been failed. Here is the build-log described below:
Script started on Mon Oct  8 17:23:36 2012
command: portmaster net/samba4-devel
portmaster: samba4-devel-4.0.0.a11_2
===>>> Currently installed version: samba4-devel-4.0.0.a11_2
===>>> Port directory: /usr/ports/net/samba4-devel

===>>> Launching 'make checksum' for net/samba4-devel in background
===>>> Gathering dependency list for net/samba4-devel from ports
===>>> Initial dependency check complete for net/samba4-devel

portmaster: samba4-devel-4.0.0.a11_2
===>>> Starting build for net/samba4-devel <<<===

===>>> All dependencies are up to date

===>  Cleaning for samba4-devel-4.0.0.a11_3
===>  Found saved configuration for samba4-devel-4.0.0.a11_3
===>  Extracting for samba4-devel-4.0.0.a11_3
=> SHA256 Checksum OK for samba-4.0.0alpha11.tar.gz.
===>   samba4-devel-4.0.0.a11_3 depends on file: /usr/local/bin/perl5.16.0 - found
===>  Patching for samba4-devel-4.0.0.a11_3
===>   samba4-devel-4.0.0.a11_3 depends on file: /usr/local/bin/perl5.16.0 - found
===>  Applying FreeBSD patches for samba4-devel-4.0.0.a11_3
===>   samba4-devel-4.0.0.a11_3 depends on file: /usr/local/bin/python2.7 - found
===>   samba4-devel-4.0.0.a11_3 depends on executable: gmake - found
===>   samba4-devel-4.0.0.a11_3 depends on executable: pkgconf - found
===>   samba4-devel-4.0.0.a11_3 depends on file: /usr/local/bin/perl5.16.0 - found
===>   samba4-devel-4.0.0.a11_3 depends on file: /usr/local/bin/autoconf-2.69 - found
===>   samba4-devel-4.0.0.a11_3 depends on shared library: sasl2.2 - found
===>   samba4-devel-4.0.0.a11_3 depends on shared library: tdb.1 - found
===>   samba4-devel-4.0.0.a11_3 depends on shared library: talloc.2 - found
===>   samba4-devel-4.0.0.a11_3 depends on shared library: popt.0 - found
===>   samba4-devel-4.0.0.a11_3 depends on shared library: iconv.3 - found
===>  Configuring for samba4-devel-4.0.0.a11_3
===>   FreeBSD 10 autotools fix applied to /usr/ports/net/samba4-devel/work/samba-4.0.0alpha11/lib/tdb/aclocal.m4
===>   FreeBSD 10 autotools fix applied to /usr/ports/net/samba4-devel/work/samba-4.0.0alpha11/lib/talloc/aclocal.m4
===>   FreeBSD 10 autotools fix applied to /usr/ports/net/samba4-devel/work/samba-4.0.0alpha11/lib/replace/aclocal.m4
===>   FreeBSD 10 autotools fix applied to /usr/ports/net/samba4-devel/work/samba-4.0.0alpha11/source4/lib/ldb/aclocal.m4
===>   FreeBSD 10 autotools fix applied to /usr/ports/net/samba4-devel/work/samba-4.0.0alpha11/source4/configure
===>   FreeBSD 10 autotools fix applied to /usr/ports/net/samba4-devel/work/samba-4.0.0alpha11/source4/aclocal.m4
(snip)
===>  Building for samba4-devel-4.0.0.a11_3
/usr/bin/perl librpc/idl-deps.pl librpc/idl/winsrepl.idl librpc/idl/irpc.idl librpc/idl/winbind.idl librpc/idl/winstation.idl librpc/idl/ntp_signd.idl librpc/idl/winsif.idl librpc/idl/nfs4acl.idl librpc/idl/server_id.idl librpc/idl/opendb.idl librpc/idl/notify.idl librpc/idl/sasl_helpers.idl ../librpc/idl/dcerpc.idl ../librpc/idl/ntsvcs.idl ../librpc/idl/echo.idl ../librpc/idl/unixinfo.idl ../librpc/idl/netlogon.idl ../librpc/idl/atsvc.idl ../librpc/idl/keysvc.idl ../librpc/idl/eventlog.idl ../librpc/idl/samr.idl ../librpc/idl/dcom.idl ../librpc/idl/epmapper.idl ../librpc/idl/trkwks.idl ../librpc/idl/orpc.idl ../librpc/idl/dfs.idl ../librpc/idl/browser.idl ../librpc/idl/drsblobs.idl ../librpc/idl/xattr.idl ../librpc/idl/nbt.idl ../librpc/idl/initshutdown.idl ../librpc/idl/named_pipe_auth.idl ../librpc/idl/w32time.idl ../librpc/idl/lsa.idl ../librpc/idl/dssetup.idl ../librpc/idl/dfsblobs.idl ../librpc/idl/audiosrv.idl ../librpc/idl/dsbackup.idl ../librpc/idl/msgsvc.idl ../librpc/idl/s
 ecurity.idl ../librpc/idl/drsuapi.idl ../librpc/idl/dnsserver.idl ../librpc/idl/krb5pac.idl ../librpc/idl/ntlmssp.idl ../librpc/idl/wzcsvc.idl ../librpc/idl/protected_storage.idl ../librpc/idl/svcctl.idl ../librpc/idl/schannel.idl ../librpc/idl/oxidresolver.idl ../librpc/idl/remact.idl ../librpc/idl/wkssvc.idl ../librpc/idl/mgmt.idl ../librpc/idl/frsrpc.idl ../librpc/idl/dbgidl.idl ../librpc/idl/spoolss.idl ../librpc/idl/srvsvc.idl ../librpc/idl/frsapi.idl ../librpc/idl/rot.idl ../librpc/idl/misc.idl ../librpc/idl/winreg.idl ../librpc/idl/policyagent.idl ../librpc/idl/frstrans.idl ../librpc/idl/scerpc.idl ../librpc/idl/wmi.idl ../librpc/idl/efs.idl >librpc/idl-deps
Samba will be compiled with flags:
  CPP        = cpp
  CPPFLAGS   = -I./include -I. -I./lib -I./../lib/replace -I./../lib/talloc -I./.. -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H  -I/usr/local/include
  CC         = cc
  CFLAGS     = -O2 -pipe -fno-strict-aliasing
  PICFLAG    = -fPIC -DPIC
  BNLD       = cc
  BNLD_FLAGS = -L/usr/local/lib -pthread -Wl,--export-dynamic
  STLD       = /usr/bin/ar
  STLD_FLAGS = -rcs
  SHLD       = cc
  SHLD_FLAGS = -shared 
  MDLD       = cc
  MDLD_FLAGS = -shared 
  SHLIBEXT   = so
  srcdir     = .
  builddir   = .
  pwd        = /usr/ports/net/samba4-devel/work/samba-4.0.0alpha11/source4
Creating heimdal/lib/asn1/der-protos.h
Use of "do" to call subroutines is deprecated at heimdal/cf/make-proto.pl line 15.
Can't locate getopts.pl in @INC (@INC contains: /usr/local/lib/perl5/5.16.0/BSDPAN /usr/local/lib/perl5/site_perl/5.16.0/mach /usr/local/lib/perl5/site_perl/5.16.0 /usr/local/lib/perl5/5.16.0/mach /usr/local/lib/perl5/5.16.0 .) at heimdal/cf/make-proto.pl line 5.
gmake: *** [heimdal/lib/asn1/der-protos.h] &#12456;&#12521;&#12540; 2
*** [do-build] Error code 1

Stop in /usr/ports/net/samba4-devel.

===>>> make failed for net/samba4-devel
===>>> Aborting update

Terminated

===>>> You can restart from the point of failure with this command line:
       portmaster <flags> net/samba4-devel 

>How-To-Repeat:
With perl5.16-installed system,
cd /usr/ports/net/samba4-devel && make
or
portmaster net/samba4-devel
>Fix:
copy this patch attached below to /usr/ports/net/samba4-devel/files directory,
and make clean. Then make this ports.

--- ./source4/heimdal/cf/make-proto.pl.orig	2010-01-11 14:35:28.000000000 +0900
+++ ./source4/heimdal/cf/make-proto.pl	2012-10-08 17:56:13.000000000 +0900
@@ -1,8 +1,8 @@
 # Make prototypes from .c files
 # $Id$
 
-##use Getopt::Std;
-require 'getopts.pl';
+
+use Getopt::Std;
 
 my $comment = 0;
 my $if_0 = 0;
@@ -12,7 +12,7 @@
 my $oproto = 1;
 my $private_func_re = "^_";
 
-do Getopts('x:m:o:p:dqE:R:P:') || die "foo";
+do getopts('x:m:o:p:dqE:R:P:') || die "foo";
 
 if($opt_d) {
     $debug = 1;

Patch attached with submission follows:

--- ./source4/heimdal/cf/make-proto.pl.orig	2010-01-11 14:35:28.000000000 +0900
+++ ./source4/heimdal/cf/make-proto.pl	2012-10-08 17:56:13.000000000 +0900
@@ -1,8 +1,8 @@
 # Make prototypes from .c files
 # $Id$
 
-##use Getopt::Std;
-require 'getopts.pl';
+
+use Getopt::Std;
 
 my $comment = 0;
 my $if_0 = 0;
@@ -12,7 +12,7 @@
 my $oproto = 1;
 my $private_func_re = "^_";
 
-do Getopts('x:m:o:p:dqE:R:P:') || die "foo";
+do getopts('x:m:o:p:dqE:R:P:') || die "foo";
 
 if($opt_d) {
     $debug = 1;


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210081059.q98Axcfs050042>