QNX6.6 cross-compilation problem

Nicolas Pinault nicolasp at aaton.com
Tue Feb 18 14:35:55 UTC 2020


Le 17/02/2020 à 18:08, Andrew Bartlett via samba-technical a écrit :
> On Mon, 2020-02-17 at 15:14 +0000, Nicolas Pinault via samba-technical
> wrote:
>> Hi Uri,
>> I'm using Ubuntu 18.04.4 LTS (32-bit).
>> I use vanilla Samba sources (4.11.6) downloaded directly from Samba WEB
>> site. No patch applied.
>> Looks like asn1_compile is a target executable, not a host executable.
>> Do I have to run waf with special options when cross-compiling ?
> This is a known issue:
> There is a workaround patch here, but do read my followup there for why
> it isn't my preference and so why this isn't merged yet.
> https://lists.samba.org/archive/samba-technical/2019-October/134438.html
> The patch is here:
> https://attachments.samba.org/attachment.cgi?id=15558
> I hope this helps,
Thanks for the patch and the detailed explanations.

After applying the patch and re-running configuration, waf goes much 
further in the compilation process.
The error I get now is :
[ 552/3064] Linking bin/default/libcli/util/libsamba-errors.so
15:23:42 runner ['ntoarmv7-gcc', '-shared', 
'-Wl,-h,libsamba-errors.so.1', 'libcli/util/doserr.c.1.o', 
'libcli/util/errormap.c.1.o', 'libcli/util/nterr.c.1.o', 
'libcli/util/errmap_unix.c.1.o', 'libcli/util/hresult.c.1.o', '-o', 
'-Wl,-Bstatic', '-Wl,-Bdynamic', 
'-L/usr/local/lib', '-L/usr/local/lib', '-lsamba-debug-samba4', 
'-ltalloc', '-ltime-basic-samba4', '-lreplace-samba4', 
'-lsocket-blocking-samba4', '-lsocket', '-lgnutls', '-Wl,-no-undefined', 
'-Wl,--export-dynamic', '-Wl,--as-needed']
cannot find -lgnutls

It looks like I have to cross-compile gnutls for my system. Right ?


> Andrew Bartlett

More information about the samba-technical mailing list