QNX6.6 cross-compilation problem

Andrew Bartlett abartlet at samba.org
Tue Feb 18 18:05:21 UTC 2020


On Tue, 2020-02-18 at 14:35 +0000, Nicolas Pinault via samba-technical
wrote:
> Andrew,
> 
> 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', 
> '/home/nicolas/samba/samba-4.11.6/bin/default/libcli/util/libsamba-
> errors.so', 
> '-Wl,-Bstatic', '-Wl,-Bdynamic', 
> '-L/home/nicolas/samba/samba-4.11.6/bin/default/lib/replace', 
> '-L/home/nicolas/samba/samba-4.11.6/bin/default/lib/talloc', 
> '-L/home/nicolas/samba/samba-4.11.6/bin/default/lib/util', 
> '-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']
> /home/nicolas/qnx660/host/linux/x86/usr/bin/arm-unknown-nto-
> qnx6.6.0eabi-ld: 
> cannot find -lgnutls
> 
> It looks like I have to cross-compile gnutls for my system. Right ?

Yes, GnuTLS is a requirement now:

https://wiki.samba.org/index.php/Package_Dependencies_Required_to_Build_Samba#Mandatory

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






More information about the samba-technical mailing list