[Samba] problem when compiling samba-3.0.21c on power PCplatform

Tomasz Chmielewski mangoo at wpkg.org
Fri Mar 3 07:46:22 GMT 2006


Zhai, Shunnian wrote:
> Hi, Tim,
> 
> I am doing cross-compiling here. However, it is working fine with samba
> 2.2 version.
> 
> You mentioned that Samba doesn't really support cross-compilation. Is it
> only for samba 3?

Check the ./configure script for "cannot run test program while cross 
compiling" (it's several times there); a line or two above you will have 
something like "if $crosscompiling ... = yes".

Change "yes" to something else ("yxes"), this way you will cheat the 
script, and you will be able to compile.

However, you are likely to have some issues, as the configure script 
"cannot run test program while cross compiling", and it will not be able 
to guess some values (which can be hard to track, but is doable with the 
help of samba groups).


-- 
Tomasz Chmielewski
http://wpkg.org


More information about the samba-technical mailing list