Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Build problem Eclipse PAHO C Client

Hi Guy,

there's a section in the Makefile for OS/X builds, which builds without any warnings for OS/X, at least on my system.   The compiler options are:

CCFLAGS_SO = -g -fPIC -Os -Wall -fvisibility=hidden -Wno-deprecated-declarations -DUSE_NAMED_SEMAPHORES

I realize that one of the options is -Wno-deprecated-declarations -- which I don't remember adding myself, maybe it was Al or Andy -- so at some point I should look to changing those semaphore calls for the Mac.

Ian


On 09/29/2014 06:06 PM, Guy Dillen wrote:
Hi,

I’m trying to build (in Xcode) the C client http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.c.git/ for IOS 8.  I added all *.h/*.c files under the ‘src’ folder. I get the following warnings / errors when building:

iPad2 build

Warnings
org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c
org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c:1234:9: Code will never be executed
org.eclipse.paho.mqtt.c-1.0.1/src/Thread.c
org.eclipse.paho.mqtt.c-1.0.1/src/Thread.c:233:8: 'sem_init' is deprecated
org.eclipse.paho.mqtt.c-1.0.1/src/Thread.c:300:2: 'sem_getvalue' is deprecated
org.eclipse.paho.mqtt.c-1.0.1/src/Thread.c:354:8: 'sem_destroy' is deprecated
org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistenceDefault.c
org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistenceDefault.c:257:3: Code will never be executed

Errors
org.eclipse.paho.mqtt.c-1.0.1/src/Heap.c
org.eclipse.paho.mqtt.c-1.0.1/src/Heap.c:77:21: Too few arguments provided to function-like macro invocation
org.eclipse.paho.mqtt.c-1.0.1/src/Heap.c:77:12: Expected ';' after top level declarator
org.eclipse.paho.mqtt.c-1.0.1/src/Heap.c:145:21: Too few arguments provided to function-like macro invocation
org.eclipse.paho.mqtt.c-1.0.1/src/Heap.c:288:22: Too few arguments provided to function-like macro invocation

iPhone5S build
Warnings
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c:304:21: Implicit conversion loses integer precision: 'long' to 'useconds_t' (aka 'unsigned int')
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c:506:63: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c:531:65: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c:549:68: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c:607:29: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c:624:33: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c:633:28: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c:1048:63: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c:1061:65: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c:1234:9: Code will never be executed
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c:1819:41: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c:1877:104: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c:2192:35: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c:2265:39: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTAsync.c:2325:40: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/Socket.c
￿org.eclipse.paho.mqtt.c-1.0.1/src/Socket.c:301:12: Implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/Socket.c:345:12: Implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/Socket.c:410:7: Implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/Socket.c:441:45: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/Socket.c:476:70: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/Socket.c:531:12: Implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/Socket.c:736:27: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/Thread.c
￿org.eclipse.paho.mqtt.c-1.0.1/src/Thread.c:233:8: 'sem_init' is deprecated
￿org.eclipse.paho.mqtt.c-1.0.1/src/Thread.c:300:2: 'sem_getvalue' is deprecated
￿org.eclipse.paho.mqtt.c-1.0.1/src/Thread.c:354:8: 'sem_destroy' is deprecated
￿org.eclipse.paho.mqtt.c-1.0.1/src/utf-8.c
￿org.eclipse.paho.mqtt.c-1.0.1/src/utf-8.c:156:21: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/Log.c
￿org.eclipse.paho.mqtt.c-1.0.1/src/Log.c:186:10: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTVersion.c
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTVersion.c:74:16: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPacket.c
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPacket.c:181:43: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPacket.c:430:12: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPacket.c:498:28: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPacket.c:692:18: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPacket.c:704:18: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistenceDefault.c
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistenceDefault.c:226:13: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistenceDefault.c:257:3: Code will never be executed
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTClient.c
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTClient.c:174:21: Implicit conversion loses integer precision: 'long' to 'useconds_t' (aka 'unsigned int')
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTClient.c:750:103: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTClient.c:1247:32: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTClient.c:1345:32: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTClient.c:1625:47: Implicit conversion loses integer precision: 'long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTClient.c:1629:42: Implicit conversion loses integer precision: 'long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTClient.c:1631:41: Implicit conversion loses integer precision: 'long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTClient.c:1633:43: Implicit conversion loses integer precision: 'long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistence.c
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistence.c:317:28: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistence.c:355:13: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistence.c:359:16: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistence.c:515:43: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistence.c:567:26: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistence.c:591:27: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTProtocolClient.c
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTProtocolClient.c:212:31: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPacketOut.c
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPacketOut.c:54:65: Implicit conversion loses integer precision: 'unsigned long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTProtocolOut.c
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTProtocolOut.c:59:28: Implicit conversion loses integer precision: 'long' to 'int'
￿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTProtocolOut.c:67:8: Implicit conversion loses integer precision: 'unsigned long' to ‘int’

Errors
￿org.eclipse.paho.mqtt.c-1.0.1/src/Heap.c
￿org.eclipse.paho.mqtt.c-1.0.1/src/Heap.c:77:21: Too few arguments provided to function-like macro invocation
￿org.eclipse.paho.mqtt.c-1.0.1/src/Heap.c:77:12: Expected ';' after top level declarator
￿org.eclipse.paho.mqtt.c-1.0.1/src/Heap.c:145:21: Too few arguments provided to function-like macro invocation
￿org.eclipse.paho.mqtt.c-1.0.1/src/Heap.c:288:22: Too few arguments provided to function-like macro invocation


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

-- 
Ian Craggs                          
icraggs@xxxxxxxxxx                 IBM United Kingdom
Paho Project Lead; Committer on Mosquitto


Back to the top