On Wed, 20 Sept 2023 at 18:17, Alec Ari via Emc-developers <emc-developers@lists.sourceforge.net> wrote: > > Since the fix is as simple as moving an, "i" around, I say we just do that. > Problem solved.
And done, on 2.9. Merged into a local branch of master to be pushed after.... > If there is no way to have raster.comp not depend on userspace headers, it > should simply be excluded in the RTAI build. It includes stdlib.h to get strtol(), strtod() and strtoul(), These are available in kernel space as kstrtol() and friends, or the old and deprecated simple_strtol, I have chosen to use the latter to modify raster.comp and that avoids the problem, though I am not sure that simple_strtol is a 100% suitable substitute for strtod() and strtoul(). I chose it because our rtapi defines simpl_strtol() as stldib/strtol in user space, so it saves trouble. With these changes the RTAI build then works, but starting a halrun session gives: https://github.com/LinuxCNC/linuxcnc/commit/7a4c0908567e27f034c7cb2fe2f6c5b1341c933c#commitcomment-127914249 I think this is probably a general issue, but only gets spotted at load-time with kernel modules -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers