[rabbitmq-discuss] [rabbitmq-c] amqp_listen/sendstring not working on ARM

Roberto Pagliari roberto at canary.is
Fri Jan 17 21:57:56 GMT 2014


Hi All,
rabbitmq-c is working on my linux VM.

I cross-compiled for ARM. When running either listen or sendstring I get
the following error:

*# ./amqp_sendstring 10.0.1.40 5672 amq.direct test "Hello"*
*Logging in: connection closed unexpectedly*

TCP connection went through and I on linux I can see packets coming from
the ARM device.

This error is caused by:
*die_on_amqp_error(amqp_login(conn, "/", 0, 131072, 0,
AMQP_SASL_METHOD_PLAIN, "guest", "guest"),*
*                    "Logging in");*

I tried changing frame_max to different values (min value, or bigger
values), but it still does not work. So I'm not sure what the problem is.

On a side note, and I'm not sure if this is the issue, when building the
rabbitmq-c framework for ARM, I get some warning messages (but again, I'm
not sure if this might be the issue):


.../openssl/include/openssl/sha.h:178:34: warning: ISO C90 does not support
‘long long’ [-Wlong-long]
 #define SHA_LONG64 unsigned long long
                                  ^
.../openssl/include/openssl/sha.h:184:2: note: in expansion of macro
‘SHA_LONG64’
  SHA_LONG64 h[8];
  ^
.../openssl/include/openssl/sha.h:178:34: warning: ISO C90 does not support
‘long long’ [-Wlong-long]
 #define SHA_LONG64 unsigned long long
                                  ^
.../openssl/include/openssl/sha.h:185:2: note: in expansion of macro
‘SHA_LONG64’
  SHA_LONG64 Nl,Nh;
  ^
.../openssl/include/openssl/sha.h:178:34: warning: ISO C90 does not support
‘long long’ [-Wlong-long]
 #define SHA_LONG64 unsigned long long
                                  ^
.../openssl/include/openssl/sha.h:187:3: note: in expansion of macro
‘SHA_LONG64’
   SHA_LONG64 d[SHA_LBLOCK];





.../rabbitmq-c-master-arm/tests/test_tables.c: In function ‘dump_value’:
.../rabbitmq-c-master-arm/tests/test_tables.c:108:5: warning: ISO C90 does
not support the ‘ll’ gnu_printf length modifier [-Wformat=]
     fprintf(out, " %"PRId64"\n", v.value.i64);
     ^
.../rabbitmq-c-master-arm/tests/test_tables.c:147:5: warning: ISO C90 does
not support the ‘ll’ gnu_printf length modifier [-Wformat=]
     fprintf(out, " %"PRIu64"\n", v.value.u64);
     ^
.../rabbitmq-c-master-arm/tests/test_tables.c: In function
‘test_dump_value’:
.../rabbitmq-c-master-arm/tests/test_tables.c:201:3: warning: integer
constant is too large for ‘long’ type [-Wlong-long]
   entries[5].value.value.u64 = 1234123412341234;
   ^
.../rabbitmq-c-master-arm/tests/test_tables.c: In function
‘test_table_codec’:
.../rabbitmq-c-master-arm/tests/test_tables.c:307:3: warning: integer
constant is too large for ‘long’ type [-Wlong-long]
   entries[3].value.value.u64 = 109876543209876;


Thank you,
Roberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140117/3d502e5a/attachment.html>


More information about the rabbitmq-discuss mailing list