Menu

#7 Build dependency problem

1.1
closed-fixed
nobody
None
low
2013-09-04
2011-06-22
Thomas Hood
No

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.

Discussion

  • Thomas Hood

    Thomas Hood - 2011-06-22

    Terminal log of failed build with "make proto bin/winexe"

     
  • Thomas Hood

    Thomas Hood - 2011-06-22

    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

     
  • Thomas Hood

    Thomas Hood - 2011-06-26

    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?

     
  • Thomas Hood

    Thomas Hood - 2011-06-29
    • priority: 5 --> 2
     
  • Thomas Hood

    Thomas Hood - 2011-06-29

    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!

     
  • Thomas Hood

    Thomas Hood - 2011-06-29

    On Ubuntu 11.04, at least, the following also suffices:

    make basics bin/winexe

    (That is, the "idl" target was superfluous.)

     
  • ahajda

    ahajda - 2011-07-13

    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.

     
  • Thomas Hood

    Thomas Hood - 2013-04-17

    Andrzej, can you please close this ticket?

     
  • Thomas Hood

    Thomas Hood - 2013-04-18
    • status: open --> closed
    • Group: --> 1.1
     
  • Thomas Hood

    Thomas Hood - 2013-04-18
    • status: closed --> closed-fixed
     
  • Thomas Hood

    Thomas Hood - 2013-09-04
    • Group: 1.1 --> 1.1new
    • Priority: 2 --> low
     

Log in to post a comment.