Closed MarkRivers closed 4 years ago
Would older motor module versions still work with the upcoming Asyn (at least for non-Windows builds)?
Would older motor module versions still work with the upcoming Asyn (at least for non-Windows builds)?
I don't think so. The problem was really a bug, asynMotorController.h and asynMotorAxis.h are using epicsShareClass, so they should have been including shareLib.h. But they were not, they were relying on some asyn include file to do that for them. Now that asyn no longer uses shareLib.h it exposes the bug. But it only needs a 2-line patch.
And I think I did not see the problem when I build for Linux, only for vxWorks?
That makes sense. Thanks for the clarification.
Would older motor module versions still work with the upcoming Asyn (at least for non-Windows builds)?
I don't think so. The problem was really a bug, asynMotorController.h and asynMotorAxis.h are using epicsShareClass, so they should have been including shareLib.h. But they were not, they were relying on some asyn include file to do that for them. Now that asyn no longer uses shareLib.h it exposes the bug. But it only needs a 2-line patch.
The new version of asyn does not use shareLib.h. Thus we need to include shareLib.h in these files.