[PATCH 0/4] Cross compile fixes

Andrew Bartlett abartlet at samba.org
Wed Apr 9 13:26:47 MDT 2014

On Wed, 2014-04-09 at 11:20 -0300, Gustavo Zacarias wrote:
> On 04/09/2014 01:29 AM, Andrew Bartlett wrote:
> > I'm sorry, on FreeBSD it gives:
> > Couldn't determine size of '((struct utmp *)NULL)->ut_line'
> Argh!
> That's because it's using CHECK_SIZEOF as a validation test instead of
> what it was intended as (in source3/wscript).
> > Can you please re-submit with that fixed, and the diff output on FreeBSD
> > also?  This stuff is incredibly tedious, but it will be better if you
> > can do the testing locally.
> > 
> > The command I ran was:
> > ./configure --with-perl-vendorarch=/usr/local/perl
> > --with-perl-vendorlib=/usr/local/perl --without-ldap --without-ads
> Ok, i've added a 'critical' parameter to CHECK_SIZEOF with a default
> value of True and patched that test to call it with False so it doesn't
> fail critically, and cooked up a patch for this test to use that.
> That makes the diff give no differences except for the WORDS_BIGENDIAN
> undef comment as before.
> I know it's tedious for both of us, i've got no problem in using more
> test cases as long as i've got access to them (for example *BSD in qemu
> works nice so no problem, other non-x86 unixes i can't help too much at
> the moment).

If you can try it out in OpenBSD/NetBSD that would be helpful, and
double-check it on x86 compared with the 64-bit tests we have done so
far.  That would help improve my confidence. 

> As long as you don't send me packing to some obscure place i'm fine :)
> Relevant patches follow.
> Regards.


Andrew Bartlett

Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba

More information about the samba-technical mailing list