[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

sbuild crosscompiler not searching /usr/include/arm-linux-gnueabihf


does the method of crosscompiling as described here
work for all deb source packages ??

I've tried  (under stretch) to build the mosquitto (MQTT) broker
   apt-get source mosquitto
   cd mosquitto*
   sbuild  --host=armhf -d stretch-amd64-sbuild

After solving initial problems (had to install qemu in the schroot, so
that python2.7-minimal:armhf can be configured)...
there's a problem during actual cross-compiling:

cc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security
-DWITH_THREADING -DWITH_SOCKS -DWITH_SRV -c mosquitto.c -o mosquitto.o
In file included from /usr/include/openssl/ssl.h:146:0,
                 from ./mosquitto_internal.h:27,
                 from mosquitto.c:33:
/usr/include/openssl/e_os2.h:56:33: fatal error:
openssl/opensslconf.h: No such file or directory
compilation terminated.

Here I understand exactly what the issue is:
is not in
but (because of libssl-dev:armhf)

So the compiler does not use
as search-path.

Is this a problem in the deb-package regarding multiarch?
Or how (else) can the search path for /usr/include/arm-linux-gnueabihf
be properly set for sbuild?


Reply to: