Created attachment 7687 [details] samba-4.0.0_beta3-perl-5.16.patch In Perl 5.16, the getopts.pl module has been removed. Hence, compilation fails with the following error: [ 159/3654] Generating ../heimdal/lib/asn1/der-private.h Can't locate getopts.pl in @INC (@INC contains: /etc/perl /usr/local/lib64/perl5/5.16.0/x86_64-linux /usr/local/lib64/perl5/5.16.0 /usr/lib64/perl5/vendor_perl/5.16.0/x86_64-linux /usr/lib64/perl5/vendor_perl/5.16.0 /usr/lib64/perl5/5.16.0/x86_64-linux /usr/lib64/perl5/5.16.0 .) at /var/tmp/portage/net-fs/samba-4.0.0_beta3/work/samba-4.0.0beta3/source4/heimdal/cf/make-proto.pl line 5. Can't locate getopts.pl in @INC (@INC contains: /etc/perl /usr/local/lib64/perl5/5.16.0/x86_64-linux /usr/local/lib64/perl5/5.16.0 /usr/lib64/perl5/vendor_perl/5.16.0/x86_64-linux /usr/lib64/perl5/vendor_perl/5.16.0 /usr/lib64/perl5/5.16.0/x86_64-linux /usr/lib64/perl5/5.16.0 .) at /var/tmp/portage/net-fs/samba-4.0.0_beta3/work/samba-4.0.0beta3/source4/heimdal/cf/make-proto.pl line 5. Waf: Leaving directory `/var/tmp/portage/net-fs/samba-4.0.0_beta3/work/samba-4.0.0beta3/bin' Build failed: -> task failed (err #2): {task: ../heimdal/lib/asn1/der-protos.h der_get.c,der_put.c,der_free.c,der_format.c,der_length.c,der_copy.c,der_cmp.c -> der-protos.h} -> task failed (err #2): {task: ../heimdal/lib/asn1/der-private.h der_get.c,der_put.c,der_free.c,der_format.c,der_length.c,der_copy.c,der_cmp.c -> der-private.h} The attached patch fixes the problem in a (hopefully) backwards compatible way.
JFI: I've tested the patch with Perl 5.12.4 now, and it works. Anyhow, I don't know, what minimum version requirements Samba 4 has for Perl, and neither do I know, whether this patch works with that minimum version, too. So, it would be great if someone could test that.
thanks, will be fixed in beta4.