<font color='black' size='2' face='arial'><font face="arial" color="black" size="2">

<div> <br>
Apparently uclibc doesn't provide <font face="arial" color="black" size="2"><font face="Courier New" color="black" size="2"><span style="font-size:10.0pt;font-family:">clock_nanosleep.</span></font></font><br>
<br>

</div>



<div> <font face="Arial, Helvetica, sans-serif">For a possible solution see: http://lists.uclibc.org/pipermail/uclibc/2010-March/043660.html</font><br>

</div>



<div> <br>

</div>



<div style="font-family:arial,helvetica;font-size:10pt;color:black">-----Original Message-----<br>

From: Jeff Krasky <jeff.krasky@dspcg.com><br>

To: etherlab-users <etherlab-users@etherlab.org><br>

Sent: Fri, Nov 18, 2011 9:24 am<br>

Subject: Re: [etherlab-users] install on non-PC<br>

<br>









<div id="AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309">








<style>#AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309 td{color: black;}      @font-face  {font-family:"MS Mincho";  panose-1:2 2 6 9 4 2 5 8 3 4;} @font-face  {font-family:"@MS Mincho";}    #AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309 p.MsoNormal,#AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309  li.MsoNormal,#AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309  div.MsoNormal  {margin:0in;  margin-bottom:.0001pt;  font-size:12.0pt;  font-family:"Times New Roman";  color:black;} #AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309 a:link,#AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309  span.MsoHyperlink  {color:blue;  text-decoration:underline;} #AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309 a:visited,#AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309  span.MsoHyperlinkFollowed  {color:blue;  text-decoration:underline;} #AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309 pre  {margin:0in;  margin-bottom:.0001pt;  font-size:10.0pt;  font-family:"Courier New";  color:black;} #AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309 tt  {font-family:"Courier New";} #AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309 span.EmailStyle19  {mso-style-type:personal;  font-family:"Times New Roman";  color:black;  font-weight:normal;  font-style:normal;  text-decoration:none none;} #AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309 span.EmailStyle20  {mso-style-type:personal;  font-family:"Times New Roman";  color:black;  font-weight:normal;  font-style:normal;  text-decoration:none none;} #AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309 span.EmailStyle21  {mso-style-type:personal;  font-family:"Times New Roman";  color:black;  font-weight:normal;  font-style:normal;  text-decoration:none none;} #AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309 span.EmailStyle22  {mso-style-type:personal;  font-family:"Times New Roman";  color:black;  font-weight:normal;  font-style:normal;  text-decoration:none none;} #AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309 span.EmailStyle23  {mso-style-type:personal-reply;  font-family:"Times New Roman";  color:black;  font-weight:normal;  font-style:normal;  text-decoration:none none;} @page Section1  {size:8.5in 11.0in;  margin:1.0in 1.25in 1.0in 1.25in;} #AOLMsgPart_2_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309 div.Section1  {page:Section1;}  </style>







<div class="Section1">



<div class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size:12.0pt">Ok, there is an arm-unknown-linux-uclibcgnueabi-g++
compiler now.  So I did this:</span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size:12.0pt"> </span></font></div>





<div class="MsoNormal"><font face="Courier New" color="black" size="2"><span style="font-size:10.0pt;font-family:">./configure
--prefix=/home/user1/buildroot-2011.05/output/target/opt
--with-linux-dir=/home/user1/buildroot-2011.05/output/build/linux-2.6.33
--enable-generic --host=i386 --target=arm
CXX=arm-unknown-linux-uclibcgnueabi-g++ CC=arm-unknown-linux-uclibcgnueabi-gcc</span></font></div>





<div class="MsoNormal"><font face="Courier New" color="black" size="2"><span style="font-size:10.0pt;font-family:"> </span></font></div>





<div class="MsoNormal"><font face="Courier New" color="black" size="2"><span style="font-size:10.0pt;font-family:"> </span></font></div>





<div class="MsoNormal"><font face="Courier New" color="black" size="2"><span style="font-size:10.0pt;font-family:"> </span></font></div>





<div class="MsoNormal"><font face="Courier New" color="black" size="2"><span style="font-size:10.0pt;font-family:">and then I
did a </span></font></div>





<div class="MsoNormal"><font face="Courier New" color="black" size="2"><span style="font-size:10.0pt;font-family:"> </span></font></div>





<div class="MsoNormal"><font face="Courier New" color="black" size="2"><span style="font-size:10.0pt;font-family:"> </span></font></div>





<div class="MsoNormal"><font face="Courier New" color="black" size="2"><span style="font-size:10.0pt;font-family:"> </span></font></div>





<div class="MsoNormal"><font face="Courier New" color="black" size="2"><span style="font-size:10.0pt;font-family:">make clean</span></font></div>





<div class="MsoNormal"><font face="Courier New" color="black" size="2"><span style="font-size:10.0pt;font-family:"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size:12.0pt"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size:12.0pt"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size:12.0pt">and then</span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size:12.0pt"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size:12.0pt"> </span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" color="black" size="2"><span style="font-size:10.0pt;font-family:">make ARCH=arm CROSS_COMPILE=arm-unknown-linux-uclibcgnueabi-</span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size:12.0pt"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size:12.0pt"> </span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Times New Roman" color="black" size="3"><span style="font-size:12.0pt">The problem that stands
out now appears to be this: </span></font><font face="Courier New" color="black" size="2"><span style="font-size:10.0pt;font-family:">/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/examples/dc_user/main.c:164:
undefined reference to `clock_nanosleep'</span></font></div>





<div class="MsoNormal" style="text-autospace:none"><font face="Courier New" color="black" size="2"><span style="font-size:10.0pt;font-family:">collect2: ld returned 1 exit status</span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size:12.0pt"> </span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size:12.0pt">Is ‘clock_nanosleep’ something that is
defined for Desktop Linux but not for the embedded Linux?</span></font></div>





<div class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size:12.0pt"> </span></font></div>
<deletia><br>
<tt><a href="http://lists.etherlab.org/mailman/listinfo/etherlab-users" target="_blank"></a>
</tt></div>
</div>

<div id="AOLMsgPart_3_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309" style="margin: 0px;font-family: Tahoma, Verdana, Arial, Sans-Serif;font-size: 12px;color: #000;background-color: #fff;">
</div>

 <!-- end of AOLMsgPart_3_dcdb4ca9-71e1-476d-a8b7-1fb6e3658309 -->



</div>

</font></font>