|
|
Re: Mosquitto s/w for the solaris version [message #1522035 is a reply to message #1517407] |
Mon, 22 December 2014 04:43 |
pawan gupta Messages: 2 Registered: December 2014 |
Junior Member |
|
|
Thanks Denis..
We have the code for the Linux version, so do we know how to compile this mosquito code, when we move it to a new machine, like Solaris?
Here is the situation right now, the mosquito executable is not compatible with the current OS- solaris.
sun1293_applmgr_TESTiAS$ ldd mosquitto
ldd: mosquitto: ELF machine type: EM_AMD64: is incompatible with system
May be a recompile will help.
Since this is all C code, I tried gcc, but it didn't work.
sun1293_applmgr_TESTiAS$ /usr/local/bin/gcc mosquitto.c -o mosquitto -lmosquitto
mosquitto.c:30:20: config.h: No such file or directory
mosquitto.c:48:30: mosquitto_broker.h: No such file or directory
mosquitto.c:49:25: memory_mosq.h: No such file or directory
mosquitto.c:53: error: syntax error before "flag_reload"
mosquitto.c:53: error: `false' undeclared here (not in a function)
mosquitto.c:53: warning: data definition has no type or storage class
mosquitto.c:57: error: syntax error before "flag_tree_print"
mosquitto.c:57: warning: data definition has no type or storage class
mosquitto.c:65: warning: "struct mqtt3_config" declared inside parameter list
mosquitto.c:65: warning: its scope is only this definition or declaration, which is probably not what you want
mosquitto.c:83: warning: "struct mqtt3_config" declared inside parameter list
mosquitto.c:84: error: conflicting types for 'drop_privileges'
mosquitto.c:65: error: previous declaration of 'drop_privileges' was here
mosquitto.c:84: error: conflicting types for 'drop_privileges'
mosquitto.c:65: error: previous declaration of 'drop_privileges' was here
mosquitto.c: In function `drop_privileges':
mosquitto.c:90: error: dereferencing pointer to incomplete type
mosquitto.c:91: error: dereferencing pointer to incomplete type
mosquitto.c:93: error: `MOSQ_LOG_ERR' undeclared (first use in this function)
mosquitto.c:93: error: (Each undeclared identifier is reported only once
mosquitto.c:93: error: for each function it appears in.)
mosquitto.c:93: error: dereferencing pointer to incomplete type
mosquitto.c:108: error: `MOSQ_LOG_WARNING' undeclared (first use in this function)
mosquitto.c:112: error: `MOSQ_ERR_SUCCESS' undeclared (first use in this function)
mosquitto.c: In function `handle_sighup':
mosquitto.c:119: error: `true' undeclared (first use in this function)
mosquitto.c: In function `handle_sigusr2':
mosquitto.c:140: error: `true' undeclared (first use in this function)
mosquitto.c: In function `main':
mosquitto.c:148: error: storage size of 'config' isn't known
mosquitto.c:171: error: invalid application of `sizeof' to incomplete type `mosquitto_db'
mosquitto.c:177: error: `MOSQ_ERR_SUCCESS' undeclared (first use in this function)
mosquitto.c:178: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:187: error: `MOSQ_LOG_ERR' undeclared (first use in this function)
mosquitto.c:219: error: `MOSQ_LOG_INFO' undeclared (first use in this function)
mosquitto.c:219: error: `VERSION' undeclared (first use in this function)
mosquitto.c:219: error: `TIMESTAMP' undeclared (first use in this function)
mosquitto.c:243: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:251: warning: assignment makes pointer from integer without a cast
mosquitto.c:253: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:261: error: `INVALID_SOCKET' undeclared (first use in this function)
mosquitto.c:262: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:309: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:310: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:311: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:311: error: `true' undeclared (first use in this function)
mosquitto.c:314: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:315: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:338: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c: At top level:
mosquitto.c:51: error: storage size of `int_db' isn't known
If someone has some more knowledge with compiling this code, or with mosquito itself, please advise for how to get this done.
Or if there is a different mosquito download/bundle for solaris, please let me know
Thanks.
|
|
|
Re: Mosquitto s/w for the solaris version [message #1522042 is a reply to message #1516931] |
Mon, 22 December 2014 04:47 |
pawan gupta Messages: 2 Registered: December 2014 |
Junior Member |
|
|
Do we know how to compile this mosquito code, when we move it to a new machine, like soaris?
we have this running fine on linux, & now has copied the linux code to solaris
Here is the situation right now, the mosquito executable is not compatible with the current OS.
sun1293_applmgr_TESTiAS$ ldd mosquitto
ldd: mosquitto: ELF machine type: EM_AMD64: is incompatible with system
May be a recompile will help.
Since this is all C code, I tried gcc, but it didn't work.
sun1293_applmgr_TESTiAS$ /usr/local/bin/gcc mosquitto.c -o mosquitto -lmosquitto
mosquitto.c:30:20: config.h: No such file or directory
mosquitto.c:48:30: mosquitto_broker.h: No such file or directory
mosquitto.c:49:25: memory_mosq.h: No such file or directory
mosquitto.c:53: error: syntax error before "flag_reload"
mosquitto.c:53: error: `false' undeclared here (not in a function)
mosquitto.c:53: warning: data definition has no type or storage class
mosquitto.c:57: error: syntax error before "flag_tree_print"
mosquitto.c:57: warning: data definition has no type or storage class
mosquitto.c:65: warning: "struct mqtt3_config" declared inside parameter list
mosquitto.c:65: warning: its scope is only this definition or declaration, which is probably not what you want
mosquitto.c:83: warning: "struct mqtt3_config" declared inside parameter list
mosquitto.c:84: error: conflicting types for 'drop_privileges'
mosquitto.c:65: error: previous declaration of 'drop_privileges' was here
mosquitto.c:84: error: conflicting types for 'drop_privileges'
mosquitto.c:65: error: previous declaration of 'drop_privileges' was here
mosquitto.c: In function `drop_privileges':
mosquitto.c:90: error: dereferencing pointer to incomplete type
mosquitto.c:91: error: dereferencing pointer to incomplete type
mosquitto.c:93: error: `MOSQ_LOG_ERR' undeclared (first use in this function)
mosquitto.c:93: error: (Each undeclared identifier is reported only once
mosquitto.c:93: error: for each function it appears in.)
mosquitto.c:93: error: dereferencing pointer to incomplete type
mosquitto.c:108: error: `MOSQ_LOG_WARNING' undeclared (first use in this function)
mosquitto.c:112: error: `MOSQ_ERR_SUCCESS' undeclared (first use in this function)
mosquitto.c: In function `handle_sighup':
mosquitto.c:119: error: `true' undeclared (first use in this function)
mosquitto.c: In function `handle_sigusr2':
mosquitto.c:140: error: `true' undeclared (first use in this function)
mosquitto.c: In function `main':
mosquitto.c:148: error: storage size of 'config' isn't known
mosquitto.c:171: error: invalid application of `sizeof' to incomplete type `mosquitto_db'
mosquitto.c:177: error: `MOSQ_ERR_SUCCESS' undeclared (first use in this function)
mosquitto.c:178: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:187: error: `MOSQ_LOG_ERR' undeclared (first use in this function)
mosquitto.c:219: error: `MOSQ_LOG_INFO' undeclared (first use in this function)
mosquitto.c:219: error: `VERSION' undeclared (first use in this function)
mosquitto.c:219: error: `TIMESTAMP' undeclared (first use in this function)
mosquitto.c:243: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:251: warning: assignment makes pointer from integer without a cast
mosquitto.c:253: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:261: error: `INVALID_SOCKET' undeclared (first use in this function)
mosquitto.c:262: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:309: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:310: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:311: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:311: error: `true' undeclared (first use in this function)
mosquitto.c:314: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:315: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c:338: error: invalid use of undefined type `struct mosquitto_db'
mosquitto.c: At top level:
mosquitto.c:51: error: storage size of `int_db' isn't known
If someone has some more knowledge with compiling this code, or with mosquito itself, please advise for how to get this done on solaris
Or if there is a different mosquito download/bundle for solaris, please provide us that.
Thanks.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03178 seconds