After running "cd source4 ; ./autogen.sh ; ./configure" I think it should be possible to build the winexe executable with "make bin/winexe" or perhaps "make proto bin/winexe", but the later not succeed on my Ubuntu 11.04 system: it ends with: "winexe/winexe.c:10:41: fatal error: librpc/gen_ndr/ndr_svcctl_c.h: No such file or directory", See attached log.
By adding targets one by one to the make invocation I was able to get the build to complete.
Terminal log of failed build with "make proto bin/winexe"
This make invocation works:
make \ proto \ headers \ heimdal/lib/krb5/krb5.h \ heimdal/lib/asn1/asn1_err.h \ heimdal/lib/asn1/krb5_asn1.h \ heimdal/lib/gssapi/spnego_asn1.h \ heimdal/lib/wind/wind_err.h \ heimdal/lib/asn1/rfc2459_asn1.h \ heimdal/lib/gssapi/gkrb5_err.h \ heimdal/lib/gssapi/gssapi_asn1.h \ heimdal/lib/hdb/hdb_asn1.h \ heimdal/lib/asn1/pkinit_asn1.h \ heimdal/lib/asn1/cms_asn1.h \ heimdal/lib/asn1/pkcs8_asn1.h \ heimdal/lib/asn1/pkcs9_asn1.h \ heimdal/lib/asn1/pkcs12_asn1.h \ heimdal/lib/hx509/ocsp_asn1.h \ heimdal/lib/hx509/pkcs10_asn1.h \ bin/winexe
Another, briefer, "make" command that works is:
make basics idl bin/winexe
If bin/winexe depends on "basics" and "idl", isn't it possible (and customary) to write the Makefile to reflect this, so that "make bin/winexe" causes "basics" and "idl" to be built as well?
Even if make dependencies are not changed it would be useful if the
required make command were documented somewhere, e.g., in winexe/README.
Thanks!
On Ubuntu 11.04, at least, the following also suffices:
make basics bin/winexe
(That is, the "idl" target was superfluous.)
On all build farm platforms "make basics idl bin/winexe" works well.
It seems to me generic enough to be compatible with future versions of samba.
My comments on invocations proposed by you:
1) bin/winexe depends on basics and idl - both 'dependencies' are phony targets so every 'make bin/winexe' will trigger redundant actions.
2) 'make proto ...<lots of files>' - over complicated, it could break on future versions of samba.
Anyway I should add somewhere build instructions, maybe with directory rearrangement.
Andrzej, can you please close this ticket?