<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 23, 2020, 12:26 AM Mritunjay Sharma <<a href="mailto:mritunjaysharma394@gmail.com">mritunjaysharma394@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 21, 2020 at 1:07 AM Mritunjay Sharma <<a href="mailto:mritunjaysharma394@gmail.com" target="_blank" rel="noreferrer">mritunjaysharma394@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 20, 2020 at 1:46 AM Vijay Kumar Banerjee <<a href="mailto:vijay@rtems.org" target="_blank" rel="noreferrer">vijay@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, May 20, 2020 at 1:27 AM Mritunjay Sharma<br>
<<a href="mailto:mritunjaysharma394@gmail.com" target="_blank" rel="noreferrer">mritunjaysharma394@gmail.com</a>> wrote:<br>
><br>
>> Thanks for the log files. From a quick look, there is one obvious<br>
>> error, the linker can't find libbsd most probably because it is not<br>
>> there. So, you need to remove the -lbsd option from ptpd-2-1.cfg file<br>
>> LIBS value. Another thing to be noted is that there are a few errors<br>
>> due to failed version checking of the sparc-rtems5-gcc, this can<br>
>> probably ignored for now if removing the -lbsd option fixes your<br>
>> issue.<br>
>><br>
> Thank you so much! Removing the lbsd from cfg file resloved the earlier<br>
> compiler issue but now another error is coming up and it is somewhat like this:<br>
>  "Makefile:502: recipe for target 'all-recursive' failed<br>
> make[1]: Leaving directory '/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1/build-cxc'<br>
> make[1]: *** [all-recursive] Error 1<br>
> Makefile:412: recipe for target 'all' failed<br>
> make: *** [all] Error 2<br>
> shell cmd failed: /bin/sh -ex  /home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1/do-build<br>
> error: building ptpd-2.3.1-sparc-rtems5-1"<br>
><br>
<br>
The error is generally at the end of the log file. In this case, it is:<br>
```<br>
<br>
In file included from ../../ptpd-2.3.1/src/arith.c:53:0:<br>
../../ptpd-2.3.1/src/ptpd.h:93:10: fatal error: netinet/ip.h: No such<br>
file or directory<br>
 #include <netinet/ip.h><br>
          ^~~~~~~~~~~~~~<br>
compilation terminated.<br>
```<br>
This header file isn't there in the include directory. Is netinet a<br>
dependency fo ptpd? If so, you'll have to find the package that<br>
provides netinet, and add that to rsb in a similar manner as in ptpd,<br>
then you'll have to add it in the ptpd.bset .<br></blockquote></div></div></blockquote><div><br></div><div>Hi, I am attaching netinet/ip.h file, do we need to add entire netinet package as ptpd?</div></div></div></blockquote></div></div><div dir="auto">We can't just pull one file and add it to rsb, this will make it almost impossible to track with the upstream. It would be better to add the whole package. Did you find the official source?</div><div dir="auto"><br></div><div dir="auto">To add the package, we need to add a separate set of cfg for netinet and then add a reference in the ptpd cfg so that it builds before ptpd. qemu or qemu-couverture can be examples of how to add a github repository to rsb and build it. Please have a look at them and feel free to ask if you don't understand something (maybe in a separate thread :) )</div><div dir="auto"><br></div><div dir="auto">Also, please post the source of the package that you want to add, so that there's no objection with the source later.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Chris commented about possible errors in the script, you might have to follow up with him to fix the issue so that you don't face any problems later.</div><div dir="auto"><br></div><div dir="auto">Best regards,</div><div dir="auto">Vijay</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>Or there's way to add just this file. I have tried finding netinet tar package but have to satisfy myself with</div><div>just a github repo? Can it be added as source in cfg file?</div><div><br></div><div>Thanks,</div><div>Mritunjay</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote><div><br></div><div>I have tried in this course. Have to still execute. Chris is telling there is a problem with Canadian Cross </div><div>Compiling this. Is it allowed here to implement? </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> Attaching the log file as well.<br>
> - Mritunjay<br>
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div></div></div>