QNX6.6 cross-compilation problem

Nicolas Pinault nicolasp at aaton.com
Thu Aug 27 13:25:17 UTC 2020


Le 27/08/2020 à 15:20, Nicolas Pinault via samba-technical a écrit :
> Hi,
> Le 19/02/2020 à 09:11, Nicolas Pinault via samba-technical a écrit :
>> Andrew,
>>> It looks like I have to cross-compile gnutls for my system. Right ?
>>> Yes, GnuTLS is a requirement now:
>> Another great challenge ;)
> I've finally compiled gnuTLS successfully.
>
> I now have the following error :
>
> [ 564/3026] Compiling bin/default/source4/heimdal/lib/asn1/asn1_err.c
> 15:13:30 runner ['ntoarmv7-gcc', '-D_SAMBA_BUILD_=4',
> '-DHAVE_CONFIG_H=1', '-I/home/nicolas/qnx660/target/qnx6/usr/include',
> '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1',
> '-DHAVE_CONFIG_H=1', '-Wno-format-truncation', '-fPIC',
> '-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT',
> '-fstack-protector-strong', '-DSTATIC_HEIMDAL_HEIM_ASN1_MODULES=NULL',
> '-DSTATIC_HEIMDAL_HEIM_ASN1_MODULES_PROTO=extern void
> __HEIMDAL_HEIM_ASN1_dummy_module_proto(void)',
> '-Isource4/heimdal_build', '-I../../source4/heimdal_build',
> '-Isource4/heimdal/lib/asn1', '-I../../source4/heimdal/lib/asn1',
> '-Iinclude/public', '-I../../include/public', '-Isource4',
> '-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib',
> '-I../../source4/lib', '-Isource4/include', '-I../../source4/include',
> '-Iinclude', '-I../../include', '-Ilib/replace', '-I../../lib/replace',
> '-I.', '-I../..', '-Isource4/heimdal/lib/roken',
> '-I../../source4/heimdal/lib/roken', '-Isource4/heimdal/include',
> '-I../../source4/heimdal/include', '-Isource4/heimdal/lib/com_err',
> '-I../../source4/heimdal/lib/com_err',
> 'source4/heimdal/lib/asn1/asn1_err.c', '-c',
> '-o/home/nicolas/samba/samba-4.11.6/bin/default/source4/heimdal/lib/asn1/asn1_err.c.60.o']
> source4/heimdal/lib/asn1/asn1_err.c:47:23: error: 'link' redeclared as
> different kind of symbol
> In file included from ../../lib/replace/../replace/replace.h:172:0,
>                    from ../../source4/heimdal_build/config.h:10,
>                    from source4/heimdal/lib/asn1/asn1_err.c:1:
> /home/nicolas/qnx660/target/qnx6/usr/include/unistd.h:426:12: note:
> previous declaration of 'link' was here
> cc1: warning: unrecognized command line option "-Wno-format-truncation"
> [enabled by default]
>
> Waf: Leaving directory `/home/nicolas/samba/samba-4.11.6/bin/default'
> Build failed
>    -> task in 'HEIMDAL_HEIM_ASN1' failed with exit status 1:
>       {task 3062501532: c asn1_err.c -> asn1_err.c.60.o}
> ['ntoarmv7-gcc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1',
> '-I/home/nicolas/qnx660/target/qnx6/usr/include', '-MMD',
> '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-DHAVE_CONFIG_H=1',
> '-Wno-format-truncation', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1',
> '-D_REENTRANT', '-fstack-protector-strong',
> '-DSTATIC_HEIMDAL_HEIM_ASN1_MODULES=NULL',
> '-DSTATIC_HEIMDAL_HEIM_ASN1_MODULES_PROTO=extern void
> __HEIMDAL_HEIM_ASN1_dummy_module_proto(void)',
> '-Isource4/heimdal_build', '-I../../source4/heimdal_build',
> '-Isource4/heimdal/lib/asn1', '-I../../source4/heimdal/lib/asn1',
> '-Iinclude/public', '-I../../include/public', '-Isource4',
> '-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib',
> '-I../../source4/lib', '-Isource4/include', '-I../../source4/include',
> '-Iinclude', '-I../../include', '-Ilib/replace', '-I../../lib/replace',
> '-I.', '-I../..', '-Isource4/heimdal/lib/roken',
> '-I../../source4/heimdal/lib/roken', '-Isource4/heimdal/include',
> '-I../../source4/heimdal/include', '-Isource4/heimdal/lib/com_err',
> '-I../../source4/heimdal/lib/com_err',
> 'source4/heimdal/lib/asn1/asn1_err.c', '-c',
> '-o/home/nicolas/samba/samba-4.11.6/bin/default/source4/heimdal/lib/asn1/asn1_err.c.60.o']
>
> The configuration command is the following :
> waf configure --cross-compile --cross-execute='python3.6
> execute_on_cantar.py' --jobs=1 --prefix=$HOME/samba/build
> --exec-prefix=$HOME/samba/bin --disable-python --without-ad-dc
> --python=/usr/bin/python3.6 --without-pie --disable-cups
> --disable-iprint --with-configdir=/etc/samba
> --with-logfilebase=/tmp/samba --with-lockdir=/tmp/samba
> --with-piddir=/tmp/samba --with-privatedir=/etc/samba/private
> --without-libarchive --localstatedir=/var --without-gettext
> --without-ldb-lmdb --without-systemd --without-lttng
> --without-ntvfs-fileserver --without-json --without-relro
> --disable-tdb-mutex-locking --without-ldap --without-ads --without-pam
> --disable-rpath --with-static-modules=ALL
> --bundled-libraries='!asn1_compile,!compile_et'
Sometimes, relaunching the build process, I get another error :

[ 564/3026] Compiling source4/heimdal/lib/asn1/der_length.c
15:23:58 runner ['ntoarmv7-gcc', '-D_SAMBA_BUILD_=4', 
'-DHAVE_CONFIG_H=1', '-I/home/nicolas/qnx660/target/qnx6/usr/include', 
'-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', 
'-DHAVE_CONFIG_H=1', '-Wno-format-truncation', '-fPIC', 
'-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT', 
'-fstack-protector-strong', '-DSTATIC_HEIMDAL_HEIM_ASN1_MODULES=NULL', 
'-DSTATIC_HEIMDAL_HEIM_ASN1_MODULES_PROTO=extern void 
__HEIMDAL_HEIM_ASN1_dummy_module_proto(void)', 
'-Isource4/heimdal_build', '-I../../source4/heimdal_build', 
'-Isource4/heimdal/lib/asn1', '-I../../source4/heimdal/lib/asn1', 
'-Iinclude/public', '-I../../include/public', '-Isource4', 
'-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib', 
'-I../../source4/lib', '-Isource4/include', '-I../../source4/include', 
'-Iinclude', '-I../../include', '-Ilib/replace', '-I../../lib/replace', 
'-I.', '-I../..', '-Isource4/heimdal/lib/roken', 
'-I../../source4/heimdal/lib/roken', '-Isource4/heimdal/include', 
'-I../../source4/heimdal/include', '-Isource4/heimdal/lib/com_err', 
'-I../../source4/heimdal/lib/com_err', 
'../../source4/heimdal/lib/asn1/der_length.c', '-c', 
'-o/home/nicolas/samba/samba-4.11.6/bin/default/source4/heimdal/lib/asn1/der_length.c.60.o']
In file included from ../../source4/heimdal/lib/asn1/der_locl.h:53:0,
                  from ../../source4/heimdal/lib/asn1/der_length.c:36:
source4/heimdal/lib/asn1/asn1_err.h:6:24: fatal error: et/com_err.h: No 
such file or directory
compilation terminated.

Waf: Leaving directory `/home/nicolas/samba/samba-4.11.6/bin/default'
Build failed
  -> task in 'HEIMDAL_HEIM_ASN1' failed with exit status 1:
     {task 3068432084: c der_length.c -> der_length.c.60.o}
['ntoarmv7-gcc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', 
'-I/home/nicolas/qnx660/target/qnx6/usr/include', '-MMD', 
'-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-DHAVE_CONFIG_H=1', 
'-Wno-format-truncation', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1', 
'-D_REENTRANT', '-fstack-protector-strong', 
'-DSTATIC_HEIMDAL_HEIM_ASN1_MODULES=NULL', 
'-DSTATIC_HEIMDAL_HEIM_ASN1_MODULES_PROTO=extern void 
__HEIMDAL_HEIM_ASN1_dummy_module_proto(void)', 
'-Isource4/heimdal_build', '-I../../source4/heimdal_build', 
'-Isource4/heimdal/lib/asn1', '-I../../source4/heimdal/lib/asn1', 
'-Iinclude/public', '-I../../include/public', '-Isource4', 
'-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib', 
'-I../../source4/lib', '-Isource4/include', '-I../../source4/include', 
'-Iinclude', '-I../../include', '-Ilib/replace', '-I../../lib/replace', 
'-I.', '-I../..', '-Isource4/heimdal/lib/roken', 
'-I../../source4/heimdal/lib/roken', '-Isource4/heimdal/include', 
'-I../../source4/heimdal/include', '-Isource4/heimdal/lib/com_err', 
'-I../../source4/heimdal/lib/com_err', 
'../../source4/heimdal/lib/asn1/der_length.c', '-c', 
'-o/home/nicolas/samba/samba-4.11.6/bin/default/source4/heimdal/lib/asn1/der_length.c.60.o']


> I have not found any answer searching the net.
> Any pointer to solve this problem ?
>
> Nicolas
>
>>> https://wiki.samba.org/index.php/Package_Dependencies_Required_to_Build_Samba#Mandatory
>> Which ones are requested on host and which one are requested on target
>> when cross-compiling ?
>>
>> Nicolas
>>
>>
>
>





More information about the samba-technical mailing list