<div dir="ltr">Looking in Makefile.defs I noticed that the "arm" architecture has "-DNOSMP" added to C_DEFS but the "arm6" architecture does not.<div><br></div><div>Under Fedora (at least when I was using it) the Raspberry Pi uses the "armv5tel" architecture (the old "arm") even though the Raspberry Pi is natively "arm6".  Raspbian supports the "arm6" architecture.</div>
<div><br></div><div>So it looks like (for Raspberry Pi use) "-DNOSMP" needs to be set for the "arm6" architecture.</div><div><br></div><div>Does anyone have a problem with me doing this?  Does anyone know of, or forsee, an "arm6" device with SMP support?</div>
<div><br></div><div>Regards,</div><div><br></div><div>Peter</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 10 September 2013 17:50, Peter Dunkley <span dir="ltr"><<a href="mailto:peter.dunkley@crocodilertc.net" target="_blank">peter.dunkley@crocodilertc.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I am trying to build a Kamailio Raspberry Pi for my presentation at AstriCon but the build fails on the very first file (action.c).  This was working before (although I was using Fedora on the Pi last time).</div>

<div><br></div><div>Has anyone changed anything recently or have any ideas about this?</div><div><br></div><div>It may be as simple as tweaking the build arguments, but as this worked for me before I thought I'd ask first...</div>

<div><br></div><div>Here is the build output:</div><div><div>CC (gcc) [kamailio]<span style="white-space:pre-wrap">           </span>action.o</div><div>In file included from parser/../mem/../atomic/atomic_native.h:74:0,</div><div>

                 from parser/../mem/../futexlock.h:44,</div><div>                 from parser/../mem/../lock_ops.h:85,</div><div>                 from parser/../mem/shm_mem.h:75,</div><div>                 from parser/../ut.h:64,</div>

<div>                 from parser/../ip_addr.h:50,</div><div>                 from parser/msg_parser.h:61,</div><div>                 from select.h:38,</div><div>                 from route_struct.h:47,</div><div>                 from action.h:42,</div>

<div>                 from action.c:69:</div><div>parser/../mem/../atomic/atomic_arm.h:69:2: warning: #warning SMP not supported for arm atomic ops, try compiling with -DNOSMP [-Wcpp]</div><div>In file included from parser/../mem/../atomic/atomic_arm.h:81:0,</div>

<div>                 from parser/../mem/../atomic/atomic_native.h:74,</div><div>                 from parser/../mem/../futexlock.h:44,</div><div>                 from parser/../mem/../lock_ops.h:85,</div><div>                 from parser/../mem/shm_mem.h:75,</div>

<div>                 from parser/../ut.h:64,</div><div>                 from parser/../ip_addr.h:50,</div><div>                 from parser/msg_parser.h:61,</div><div>                 from select.h:38,</div><div>                 from route_struct.h:47,</div>

<div>                 from action.h:42,</div><div>                 from action.c:69:</div><div>parser/../mem/../atomic/atomic_unknown.h:59:2: warning: #warning no native memory barrier implementations, falling back to slow lock based workarround [-Wcpp]</div>

<div>parser/../mem/../atomic/atomic_unknown.h:64:1: error: unknown type name ‘gen_lock_t’</div><div>In file included from parser/../mem/../atomic/atomic_native.h:74:0,</div><div>                 from parser/../mem/../futexlock.h:44,</div>

<div>                 from parser/../mem/../lock_ops.h:85,</div><div>                 from parser/../mem/shm_mem.h:75,</div><div>                 from parser/../ut.h:64,</div><div>                 from parser/../ip_addr.h:50,</div>

<div>                 from parser/msg_parser.h:61,</div><div>                 from select.h:38,</div><div>                 from route_struct.h:47,</div><div>                 from action.h:42,</div><div>                 from action.c:69:</div>

<div>parser/../mem/../atomic/atomic_arm.h: In function ‘mb_atomic_get_int’:</div><div>parser/../mem/../atomic/atomic_arm.h:229:2: warning: implicit declaration of function ‘lock_release’ [-Wimplicit-function-declaration]</div>

<div>parser/../mem/../atomic/atomic_arm.h:229:2: warning: implicit declaration of function ‘lock_get’ [-Wimplicit-function-declaration]</div><div>make: *** [action.o] Error 1</div></div><div><br></div><div>Regards,</div>
<div>
<br></div><div>Peter<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><font face="courier new, monospace">Peter Dunkley</font></div><div><font face="courier new, monospace">Technical Director</font></div>
<div><font face="courier new, monospace">Crocodile RCS Ltd</font></div>
</div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><font face="courier new, monospace">Peter Dunkley</font></div><div><font face="courier new, monospace">Technical Director</font></div><div>
<font face="courier new, monospace">Crocodile RCS Ltd</font></div></div>
</div>