GSoC 2020: [rtems/rsb]: Error while adding ptp support. This time building for xilinx_zynq_a9_qemu

Chris Johns chrisj at rtems.org
Thu Jun 4 05:09:39 UTC 2020


On 4/6/20 2:31 pm, Gedare Bloom wrote:
> On Wed, Jun 3, 2020 at 1:53 PM Mritunjay Sharma
> <mritunjaysharma394 at gmail.com> wrote:
>>
>> Hello everyone,
>>
>> As suggested by Heinz, I started building for xilinx_zynq_a9_qemu
>> with a little modification in ptp cfg file.
>>
>> The netinet is no longer a problem here but another problem has come as follows:
>>
>> ../../ptpd-2.3.1/src/dep/startup.c: In function 'ptpdStartup':

Is this from sourceforge?

How does the ptpd-2.3.1 source code relate to the github repo
https://github.com/ptpd/ptpd ?

I have been referencing the github repo.

>> ../../ptpd-2.3.1/src/dep/startup.c:948:29: error: 'CPU_LEVEL_WHICH' undeclared (first use in this function)
>>        if(cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
>>                              ^~~~~~~~~~~~~~~
>> ../../ptpd-2.3.1/src/dep/startup.c:948:46: error: 'CPU_WHICH_PID' undeclared (first use in this function)
>>        if(cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
>>                                               ^~~~~~~~~~~~~
> 
> These are from BSD. This probably needs to be compiled with libbsd
> somehow? or picking up its header files...

In the github version this code is conditional on sys/cpuset.h being present.

Chris


More information about the devel mailing list