[Samba] samba4 asn1_compile issue

Michael Wood esiotrot at gmail.com
Wed Aug 10 03:38:39 MDT 2011


On 5 August 2011 10:06, Sedat Cakir <cakir_sedat at yahoo.com> wrote:
> Hi,
> I am trying to do cross compile Samba4. Build system generating two binary asn1_compile and compile_et to generate .c files which will then build for our platform.
> But it can not execute both binary files.

While Samba4 is still in alpha, the samba-technical list is a better
place to ask questions like this.  I have copied my reply there.

> [ 198/3298] Compiling ASN1 source4/heimdal/lib/asn1/kx509.asn1
> /bin/sh: ../build_dir/target-ubicom32-unknown-linux-gnu/samba-4.0.0alpha16/bin/asn1_compile: cannot execute binary file

It looks like waf should be compiling a version of asn1_compile for
the build host instead of for the host you ultimately want to run
Samba on.

Perhaps you should try the latest version from Git to see if the
problem has been fixed since alpha16.  If it's still a problem I think
someone will have to tell waf how to handle asn1_compile properly.

> Waf: Leaving directory `../build_dir/target-ubicom32-unknown-linux-gnu/samba-4.0.0alpha16/bin'
> Build failed:  -> task failed (err #126):
>         {task: HEIMDAL_KX509_ASN1_ASN1 kx509.asn1 -> asn1_kx509_asn1.x,kx509_asn1.hx,kx509_asn1-priv.hx}
> When we replaced binary files with files generated at PC, it can
>    execute them and generate .c files, then continue to compile.
> Do you have any idea why we can not generate binaries correctly? Can anybody kindly help us to?

Michael Wood <esiotrot at gmail.com>

More information about the samba mailing list