Use_paho_linux_version make paho command fails


#1

Hello,

I am working on mqtt use_paho_linux_version.
MangOH Red, WP7607-1
Legato Bersion 18.03

When execute “make paho”, I get fatal error: stdlib.h: No such file or directory.
What is wrong.

echo OSTYPE is Linux
OSTYPE is Linux
/opt/swi/y22-ext-wp76xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -g -fPIC -Os -Wall -fvisibility=hidden -Ibuild -o build/output/libpaho-mqtt3c.so.1.0 src/Heap.c src/LinkedList.c src/MQTTProtocolClient.c src/MQTTProtocolOut.c src/StackTrace.c src/MQTTPersistenceDefault.c src/Messages.c src/MQTTPacketOut.c src/Clients.c src/OsWrapper.c src/Thread.c src/MQTTPacket.c src/MQTTPersistence.c src/MQTTClient.c src/Log.c src/utf-8.c src/Socket.c src/SocketBuffer.c src/Tree.c -shared -Wl,-init,MQTTClient_init -lpthread -Wl,-soname,libpaho-mqtt3c.so.1
In file included from src/Heap.c:29:0:
src/Tree.h:21:48: fatal error: stdlib.h: No such file or directory
#include <stdlib.h> /* for size_t definition /
^
compilation terminated.
In file included from src/LinkedList.c:27:0:
src/LinkedList.h:22:48: fatal error: stdlib.h: No such file or directory
#include <stdlib.h> /
for size_t definition /
^
compilation terminated.
src/MQTTProtocolClient.c:30:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
^
compilation terminated.
src/MQTTProtocolOut.c:32:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
^
compilation terminated.
In file included from src/StackTrace.c:17:0:
src/StackTrace.h:20:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^
compilation terminated.
src/MQTTPersistenceDefault.c:34:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^
compilation terminated.
src/Messages.c:27:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^
compilation terminated.
In file included from src/MQTTPacket.h:23:0,
from src/MQTTPacketOut.h:22,
from src/MQTTPacketOut.c:29:
src/Socket.h:21:23: fatal error: sys/types.h: No such file or directory
#include <sys/types.h>
^
compilation terminated.
In file included from src/Clients.c:24:0:
src/Clients.h:24:18: fatal error: time.h: No such file or directory
#include <time.h>
^
compilation terminated.
In file included from src/Thread.h:19:0,
from src/Thread.c:29:
src/MQTTClient.h:120:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^
compilation terminated.
In file included from src/MQTTPacket.h:23:0,
from src/MQTTPacket.c:26:
src/Socket.h:21:23: fatal error: sys/types.h: No such file or directory
#include <sys/types.h>
^
compilation terminated.
src/MQTTPersistence.c:25:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^
compilation terminated.
src/MQTTClient.c:44:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
^
compilation terminated.
In file included from src/MQTTPacket.h:23:0,
from src/Log.c:27:
src/Socket.h:21:23: fatal error: sys/types.h: No such file or directory
#include <sys/types.h>
^
compilation terminated.
src/utf-8.c:28:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
^
compilation terminated.
In file included from src/Socket.c:30:0:
src/Socket.h:21:23: fatal error: sys/types.h: No such file or directory
#include <sys/types.h>
^
compilation terminated.
In file included from src/SocketBuffer.c:25:0:
src/SocketBuffer.h:24:24: fatal error: sys/socket.h: No such file or directory
#include <sys/socket.h>
^
compilation terminated.
In file included from src/Tree.c:26:0:
src/Tree.h:21:48: fatal error: stdlib.h: No such file or directory
#include <stdlib.h> /
for size_t definition */