<div dir="ltr"><div>Hi All,</div><div>rabbitmq-c is working on my linux VM. </div><div><br></div>I cross-compiled for ARM. When running either listen or sendstring I get the following error:<div><br></div><div><div><b># ./amqp_sendstring 10.0.1.40 5672 amq.direct test "Hello"</b></div>
<div><b>Logging in: connection closed unexpectedly</b></div></div><div><br></div><div>TCP connection went through and I on linux I can see packets coming from the ARM device. </div><div><br></div><div>This error is caused by:</div>
<div><div><b>die_on_amqp_error(amqp_login(conn, "/", 0, 131072, 0, AMQP_SASL_METHOD_PLAIN, "guest", "guest"),</b></div><div><b> "Logging in");</b></div></div><div>
<br></div><div>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. </div><div><br></div><div>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):</div>
<div><br></div><div><font color="#ff0000"><br></font></div><div><div><font color="#0000ff">.../openssl/include/openssl/sha.h:178:34: warning: ISO C90 does not support ‘long long’ [-Wlong-long]</font></div><div><font color="#0000ff"> #define SHA_LONG64 unsigned long long</font></div>
<div><font color="#0000ff"> ^</font></div><div><font color="#0000ff">.../openssl/include/openssl/sha.h:184:2: note: in expansion of macro ‘SHA_LONG64’</font></div><div><font color="#0000ff"> SHA_LONG64 h[8];</font></div>
<div><font color="#0000ff"> ^</font></div><div><font color="#0000ff">.../openssl/include/openssl/sha.h:178:34: warning: ISO C90 does not support ‘long long’ [-Wlong-long]</font></div><div><font color="#0000ff"> #define SHA_LONG64 unsigned long long</font></div>
<div><font color="#0000ff"> ^</font></div><div><font color="#0000ff">.../openssl/include/openssl/sha.h:185:2: note: in expansion of macro ‘SHA_LONG64’</font></div><div><font color="#0000ff"> SHA_LONG64 Nl,Nh;</font></div>
<div><font color="#0000ff"> ^</font></div><div><font color="#0000ff">.../openssl/include/openssl/sha.h:178:34: warning: ISO C90 does not support ‘long long’ [-Wlong-long]</font></div><div><font color="#0000ff"> #define SHA_LONG64 unsigned long long</font></div>
<div><font color="#0000ff"> ^</font></div><div><font color="#0000ff">.../openssl/include/openssl/sha.h:187:3: note: in expansion of macro ‘SHA_LONG64’</font></div><div><font color="#0000ff"> SHA_LONG64 d[SHA_LBLOCK];</font></div>
</div><div><font color="#0000ff"><br></font></div><div><font color="#0000ff"><br></font></div><div><font color="#0000ff"><br></font></div><div><font color="#0000ff"><br></font></div><div><font color="#0000ff"><br></font></div>
<div><div><font color="#0000ff">.../rabbitmq-c-master-arm/tests/test_tables.c: In function ‘dump_value’:</font></div><div><font color="#0000ff">.../rabbitmq-c-master-arm/tests/test_tables.c:108:5: warning: ISO C90 does not support the ‘ll’ gnu_printf length modifier [-Wformat=]</font></div>
<div><font color="#0000ff"> fprintf(out, " %"PRId64"\n", v.value.i64);</font></div><div><font color="#0000ff"> ^</font></div><div><font color="#0000ff">.../rabbitmq-c-master-arm/tests/test_tables.c:147:5: warning: ISO C90 does not support the ‘ll’ gnu_printf length modifier [-Wformat=]</font></div>
<div><font color="#0000ff"> fprintf(out, " %"PRIu64"\n", v.value.u64);</font></div><div><font color="#0000ff"> ^</font></div><div><font color="#0000ff">.../rabbitmq-c-master-arm/tests/test_tables.c: In function ‘test_dump_value’:</font></div>
<div><font color="#0000ff">.../rabbitmq-c-master-arm/tests/test_tables.c:201:3: warning: integer constant is too large for ‘long’ type [-Wlong-long]</font></div><div><font color="#0000ff"> entries[5].value.value.u64 = 1234123412341234;</font></div>
<div><font color="#0000ff"> ^</font></div><div><font color="#0000ff">.../rabbitmq-c-master-arm/tests/test_tables.c: In function ‘test_table_codec’:</font></div><div><font color="#0000ff">.../rabbitmq-c-master-arm/tests/test_tables.c:307:3: warning: integer constant is too large for ‘long’ type [-Wlong-long]</font></div>
<div><font color="#0000ff"> entries[3].value.value.u64 = 109876543209876;</font></div></div><div><br></div><div><br></div><div>Thank you,</div><div>Roberto </div><div><br></div></div>