[
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,
Paho is an open source project - generally we don't give absolute
timescales for something to get fixed, after all you can always fix it
yourself :-) You can also contribute fixes yourself (see the
CONTRIBUTING.md file) through gerrit.
This is a small fix though -- just renaming the roundup function to
Heap_roundup or similar. I can put that fix in the development branch
tomorrow.
When you've raised a bug, you should get emails when the status changes.
Ian
On 09/10/14 15:13, Guy Dillen wrote:
Hi Ian,
Yesterday I raised a bug for the build problem on OSX / IOS.
On what base (time frame) will the bug be resolved? And how can I keep (automatically) updated on the status?
Thanks.
Guy
Sent from my iPad
On 08 Oct 2014, at 00:01, Ian Craggs <icraggs@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi Guy,
please raise a bug here: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Paho
You'll need to create an account, if you haven't done so already.
Thanks!
Ian
On 07/10/14 18:50, Guy Dillen wrote:
Hi Al,
As mentioned when I prevent ("#undef roundup") that the (Apple) âroundup"
macro can replace the âroundup" occurrence in the the MQTT code everything
builds successfully except warnings (see below).
How can I log the bug (as you mentioned) for resolving this issue?
Thanks.
Guy
iPad2 build
Projects/Xcode/mqtt-client-library/MQTTAsync.c
Projects/Xcode/mqtt-client-library/MQTTAsync.c:1234:9: Code will never be
executed
Projects/Xcode/mqtt-client-library/MQTTPersistenceDefault.c
Projects/Xcode/mqtt-client-library/MQTTPersistenceDefault.c:257:3: Code
will never be executed
iPhone5S build
mqtt-client-library Group
Projects/Xcode/mqtt-client-library/MQTTAsync.c
Projects/Xcode/mqtt-client-library/MQTTAsync.c:1234:9: Code will never be
executed
Projects/Xcode/mqtt-client-library/MQTTAsync.c:304:21: Implicit
conversion loses integer precision: 'long' to 'useconds_t' (aka 'unsigned
int')
Projects/Xcode/mqtt-client-library/MQTTAsync.c:506:63: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTAsync.c:531:65: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTAsync.c:549:68: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTAsync.c:607:29: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTAsync.c:624:33: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTAsync.c:633:28: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTAsync.c:1048:63: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTAsync.c:1061:65: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTAsync.c:1819:41: Implicit
conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/MQTTAsync.c:1877:104: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTAsync.c:2192:35: Implicit
conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/MQTTAsync.c:2265:39: Implicit
conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/MQTTAsync.c:2325:40: Implicit
conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/MQTTPersistenceDefault.c
Projects/Xcode/mqtt-client-library/MQTTPersistenceDefault.c:257:3: Code
will never be executed
Projects/Xcode/mqtt-client-library/MQTTPersistenceDefault.c:226:13:
Implicit conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/Socket.c
Projects/Xcode/mqtt-client-library/Socket.c:301:12: Implicit conversion
loses integer precision: 'ssize_t' (aka 'long') to 'int'
Projects/Xcode/mqtt-client-library/Socket.c:345:12: Implicit conversion
loses integer precision: 'ssize_t' (aka 'long') to 'int'
Projects/Xcode/mqtt-client-library/Socket.c:410:7: Implicit conversion
loses integer precision: 'ssize_t' (aka 'long') to 'int'
Projects/Xcode/mqtt-client-library/Socket.c:441:45: Implicit conversion
loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/Socket.c:474:76: Implicit conversion
loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/Socket.c:531:12: Implicit conversion
loses integer precision: 'ssize_t' (aka 'long') to 'int'
Projects/Xcode/mqtt-client-library/Socket.c:736:27: Implicit conversion
loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/utf-8.c
Projects/Xcode/mqtt-client-library/utf-8.c:156:21: Implicit conversion
loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/Log.c
Projects/Xcode/mqtt-client-library/Log.c:186:10: Implicit conversion
loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTVersion.c
Projects/Xcode/mqtt-client-library/MQTTPacket.c
Projects/Xcode/mqtt-client-library/MQTTPacket.c:181:43: Implicit
conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/MQTTPacket.c:430:12: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTPacket.c:498:28: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTPacket.c:692:18: Implicit
conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/MQTTPacket.c:704:18: Implicit
conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/MQTTClient.c
Projects/Xcode/mqtt-client-library/MQTTClient.c:174:21: Implicit
conversion loses integer precision: 'long' to 'useconds_t' (aka 'unsigned
int')
Projects/Xcode/mqtt-client-library/MQTTClient.c:750:103: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTClient.c:1247:32: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTClient.c:1345:32: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTClient.c:1625:47: Implicit
conversion loses integer precision: 'long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTClient.c:1629:42: Implicit
conversion loses integer precision: 'long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTClient.c:1631:41: Implicit
conversion loses integer precision: 'long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTClient.c:1633:43: Implicit
conversion loses integer precision: 'long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTPersistence.c
Projects/Xcode/mqtt-client-library/MQTTPersistence.c:317:28: Implicit
conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/MQTTPersistence.c:355:13: Implicit
conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/MQTTPersistence.c:359:16: Implicit
conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/MQTTPersistence.c:515:43: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTPersistence.c:567:26: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTPersistence.c:591:27: Implicit
conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/MQTTProtocolClient.c
Projects/Xcode/mqtt-client-library/MQTTProtocolClient.c:212:31: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTPacketOut.c
Projects/Xcode/mqtt-client-library/MQTTPacketOut.c:54:65: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTProtocolOut.c
Projects/Xcode/mqtt-client-library/MQTTProtocolOut.c:59:28: Implicit
conversion loses integer precision: 'long' to 'int'
Projects/Xcode/mqtt-client-library/MQTTProtocolOut.c:67:8: Implicit
conversion loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/SSLSocket.c
Projects/Xcode/mqtt-client-library/SSLSocket.c:66:17: Implicit conversion
loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/SSLSocket.c:204:50: Implicit
conversion loses integer precision: 'long' to 'int'
Projects/Xcode/mqtt-client-library/SSLSocket.c:297:8: Implicit conversion
loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/SSLSocket.c:643:47: Implicit
conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/SSLSocket.c:729:49: Implicit
conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/SSLSocket.c:742:67: Implicit
conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/SSLSocket.c:805:69: Implicit
conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/Heap.c
Projects/Xcode/mqtt-client-library/Heap.c:145:32: Implicit conversion
loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/Heap.c:148:17: Implicit conversion
loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/Heap.c:154:12: Implicit conversion
loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/Heap.c:288:33: Implicit conversion
loses integer precision: 'unsigned long' to 'int'
Projects/Xcode/mqtt-client-library/Heap.c:291:18: Implicit conversion
loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/Heap.c:303:13: Implicit conversion
loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
Projects/Xcode/mqtt-client-library/Heap.c:398:30: Implicit conversion
loses integer precision: 'unsigned long' to 'int'
On 07/10/14 16:01, "Al Stockdill-Mander" <asm@xxxxxxxx> wrote:
Guy,
This does seem to be a conflict on Apple platforms, looking at what I've
done here it seems I locally renamed roundup() in Heap.c to roundUp()
and changed all references to it in the Paho code. This is not ideal as
I'm now out of sync, and should be fixed in the code. Please open a bug
for it.
Apart from this is it now compiling ok for you?
Al
On 04/10/14 13:05, Guy Dillen wrote:
If i add "#undef roundupâ (=ignoring the macro roundup in param.h)
before
the statement "int roundup(int size)" in Heap.c the code builds.
Since I donât want to make modifications to the Eclipse PAHO source code
(I want to stay in sync with Eclipse PAHOâs future versions) is what I
did
on my local copy solving âa bugâ or should I do something else to
getting
build the code?
Thanks.
On 04/10/14 09:49, "Guy Dillen" <guy.dillen@xxxxxxxxx> wrote:
As already mentioned there are 2 âroundupâ entries a function in Heap.c
and a macro in param.h.
I thought during pre-processing the entries that redirect to macroâs
are
replaced by the macroâs âcontentâ. So if I follow this logic during
pre-processing the âroundup' entry in Heap.c tries to replace this by
'((((x) % (y)) == 0) ? \
(x) : ((x) + ((y) - ((x) % (y)))))'. Is this correct? If yes I can
understand the error messages I get when building my project.
How can I solve this/my problem?
Thanks.
In Heap.c
int roundup(int size)
{
static int multsize = 4*sizeof(int);
if (size % multsize != 0)
size += multsize - (size % multsize);
return size;
}
In param.h (#include <sys/param.h> in Socket.h)
#define roundup(x, y) ((((x) % (y)) == 0) ? \
(x) : ((x) + ((y) - ((x) % (y)))))
On 03/10/14 20:37, "Guy Dillen" <guy.dillen@xxxxxxxxx> wrote:
I tried with the flags: CCFLAGS_SO = -g -fPIC -Os -Wall
-fvisibility=hidden -Wno-deprecated-declarations
-DUSE_NAMED_SEMAPHORES
But till the same errors!
On 03/10/14 19:20, "Guy Dillen" <guy.dillen@xxxxxxxxx> wrote:
Hi Ian,
Iâm completely stuck after searching the whole day for a solution to
my
errors. Do you have an idea whatâs going wrong?
Thanks.
Guy
On 03/10/14 17:58, "Guy Dillen" <guy.dillen@xxxxxxxxx> wrote:
In Heap.c
int roundup(int size)
{
static int multsize = 4*sizeof(int);
if (size % multsize != 0)
size += multsize - (size % multsize);
return size;
}
In param.h -> I donât know where this header file is coming from
itâs
an
Apple origin header file
#define roundup(x, y) ((((x) % (y)) == 0) ? \
(x) : ((x) + ((y) - ((x) % (y)))))
Can this be the cause of the errors I get?
Thanks.
On 03/10/14 17:38, "Guy Dillen" <guy.dillen@xxxxxxxxx> wrote:
Hi,
No one any idea what Iâm missing (see mail below)?
Thanks.
On 03/10/14 10:10, "Guy Dillen" <guy.dillen@xxxxxxxxx> wrote:
Hi Al,
I added (after separately building openssl) the 2 files in lib
âlibcrypto.a" and âlibssl.aâ and the openssl folder (under
include).
I added under âSearch Pathsâ -> "Header Search Pathsâ the
location of
the
âopensslâ folder and
I added under âApple LLVM 6.0 - Custom Compiler Flagsâ -> âOther C
Flagsâ
-DOPENSSL -DNOSIPIPE -DUSE_NAMED_SEMAPHORES.
When trying to build (for iPad 2, iphone 5S) I again get, besides
some
warnings, the error messages:
Warnings
org.eclipse.paho.mqtt.c-1.0.1/src/Thread.c
org.eclipse.paho.mqtt.c-1.0.1/src/Thread.c:213:29: 'tempnam' is
deprecated: This function is provided for compatibility reasons
only.
Due
to security concerns inherent in the design of tempnam(3), it is
highly
recommended that you use mkstemp(3) instead.
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/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/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
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulato
r.
p
l
a
t
f
o
rm/Developer/SDKs/iPhoneSimulator8.0.sdk/usr/include/sys/param.h:20
9:
9
:
Macro 'roundup' defined here
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
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulato
r.
p
l
a
t
f
o
rm/Developer/SDKs/iPhoneSimulator8.0.sdk/usr/include/sys/param.h:20
9:
9
:
Macro 'roundup' defined here
org.eclipse.paho.mqtt.c-1.0.1/src/Heap.c:288:22: Too few arguments
provided to function-like macro invocation
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulato
r.
p
l
a
t
f
o
rm/Developer/SDKs/iPhoneSimulator8.0.sdk/usr/include/sys/param.h:20
9:
9
:
Macro 'roundup' defined here
Thanks.
Guy
On 01/10/14 15:43, "Al Stockdill-Mander" <asm@xxxxxxxx> wrote:
I must be using an older version, but from looking at the current
one,
yes, you can just import these two libraries without renaming
them,
the
names I gave are what older version of the script used to output.
Al
On 01/10/14 14:27, Guy Dillen wrote:
Hi Al,
When running the script as superuser (sudo ./build.sh) it
generates
indeed
2 files in the âlib' directory: âlibcrypto.a" and âlibssl.a" but
not
âlibcrypto_iOS.a" and
âlibssl_iOS.aâ. When looking at the shell script it apparently
only
generates âlibcrypto.a" and âlibssl.aâ files. Should I rename
these
files
to libcrypto_iOS.aâ and âlibssl_iOS.aâ?
Thanks
Guy
On 01/10/14 11:35, "Guy Dillen" <guy.dillen@xxxxxxxxx> wrote:
include and lib folders in the directory where build.sh are
empty.
The
script only generated output in /tmp. Can this due to the fact
Iâm
trying
to build against IOS 8.0?
Thanks.
Guy
On 01/10/14 11:16, "Al Stockdill-Mander" <asm@xxxxxxxx> wrote
The directory where you ran the script it should have created
a
directory called lib inside which you should see a
libcrypto_iOS.a
and
libssl_iOS.a that is a fat binary library for all iOS devices
including
the simulator, these two files should be added to your
project.
in that same directory should be a folder called include, you
can
either
add the this or the openssl directory inside it to your
project,
make
sure to configure your include path for your project to point
to
the
correct place, it should be the directory where the openssl
directory
is
as the #includes in the C client are for openssl/<file>
Al
On 01/10/14 09:15, Guy Dillen wrote:
Hi Al,
I downloaded the build script (the link in your mail). I
modified
the
script to the latest OpenSsl version (1.0.li) and to
SDK_VERSION=â8.0â
(I
recently upgraded to 8.0).
The script obviously runs without problems. I get the output
of
running
the script in my /tmp directory. I see 2 directories having
âarmv7':
âarmv7' and âarmv7s'.
- 1. Which one do I need to add to my project?
- 2. Do I need to copy the whole ./include/openssl directory
to
my
project?
- 3. In my project I suppose I only need to create an
âopensslâ
directory
with the contents of above?
Thanks.
Guy
On 30/09/14 17:26, "Al Stockdill-Mander" <asm@xxxxxxxx>
wrote:
If you don't have a built copy of OpenSSL just remove the
-DOPENSSL
and
it won't try to compile in SSL support.
If you want to include SSL support as well you a script like
the
one
at
https://github.com/st3fan/ios-openssl would build you iOS
device
and
emulator versions. Copy in the include directory that it
also
builds
into the project with the MQTT C client source code.
You will need to edit the script in the project I linked to
build
the
latest copy of OpenSSL (just to change the embedded version
number
it
looks for)
Al
On 30/09/14 16:15, Guy Dillen wrote:
Or should I just download the latest source code from
https://www.openssl.org/source/ and add this to my project?
Thx.
On 30/09/14 17:10, "Guy Dillen" <guy.dillen@xxxxxxxxx>
wrote:
Hi Al,
I found where to put the flags âOther C Flagsâ Debug and
Release.
Now I only get some warnings and an error on
openssl/ssl.h.
Where
should I
get this ssl.h .. file?
Thanks.
Guy
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/Thread.c
org.eclipse.paho.mqtt.c-1.0.1/src/Thread.c:213:29:
'tempnam'
is
deprecated: This function is provided for compatibility
reasons
only.
Due
to security concerns inherent in the design of tempnam(3),
it
is
highly
recommended that you use mkstemp(3) instead.
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/SSLSocket.h
org.eclipse.paho.mqtt.c-1.0.1/src/SSLSocket.h:27:10:
'openssl/ssl.h'
file
not found
org.eclipse.paho.mqtt.c-1.0.1/src/SocketBuffer.h
org.eclipse.paho.mqtt.c-1.0.1/src/SocketBuffer.h:28:10:
'openssl/ssl.h'
file not found
On 30/09/14 16:42, "Guy Dillen" <guy.dillen@xxxxxxxxx>
wrote:
Hi Al,
Iâm not that experimented with Xcode: to build the client
should
I
put
these flags (-DOPENSSL -DNOSIGPIPE
-DUSE_NAMED_SEMAPHORES) in the section âLinkingâ ->
"Other
Linker
Flags"
of my Xcode project?
Thanks.
Guy
On 30/09/14 14:45, "Al Stockdill-Mander" <asm@xxxxxxxx>
wrote:
I'm building the C client in XCode here (v5.1.1 with
iOS 7
rather
than
8). I have OpenSSL compiled for iOS and with -DOPENSSL
-DNOSIGPIPE
-DUSE_NAMED_SEMAPHORES I get the deprecation and value
conversion
warnings but no errors.
Al
On 30/09/14 12:22, Guy Dillen wrote:
Hi Ian,
Thanks.
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
Do these also work for IOS, since I'm trying to build
for
IOS
8.
Thanks.
Guy
Sent from my iPad
On 30 Sep 2014, at 11:55, Ian Craggs
<icraggs@xxxxxxxxxxxxxxxxxxxxxxx
<mailto:icraggs@xxxxxxxxxxxxxxxxxxxxxxx>> wrote:
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.gi
t
/
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
:
2
5
7
: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/MQTTPersistenceDefaul
t
.
c
ï¿¿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistenceDefaul
t
.
c
:
2
2
6:
1
3:
Implicit conversion loses integer precision: 'unsigned
long'
to
'int'
ï¿¿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistenceDefaul
t
.
c
:
2
5
7:
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
:
2
8
:
Implicit
conversion loses integer precision: 'size_t' (aka
'unsigned
long')
to
'int'
ï¿¿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistence.c:355
:
1
3
:
Implicit
conversion loses integer precision: 'size_t' (aka
'unsigned
long')
to
'int'
ï¿¿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistence.c:359
:
1
6
:
Implicit
conversion loses integer precision: 'size_t' (aka
'unsigned
long')
to
'int'
ï¿¿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistence.c:515
:
4
3
:
Implicit
conversion loses integer precision: 'unsigned long' to
'int'
ï¿¿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistence.c:567
:
2
6
:
Implicit
conversion loses integer precision: 'unsigned long' to
'int'
ï¿¿org.eclipse.paho.mqtt.c-1.0.1/src/MQTTPersistence.c:591
:
2
7
:
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:
2
1
2
:
3
1
:
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:
2
8
:
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
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx <mailto: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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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