Just as a comment, I have compiled puppy fine on my kanotix installation (knoppix derivative) and use it with my toppy 5000 pvr fine.
I am trying to compile puppy to talk to my Topffield PVR. It has a USB link and Topfield only supply Mac and Win software. Someone has got a *nix program called puppy working. (Not to be confused with linux-puppy)
On compiling it on Knoppic 3.8 I get
>In file included from /usr/include/linux/usb.h:4,
> from usb_io.h:33,
> from puppy.c:48:
>/usr/include/linux/mod_devicetable.h:21: error: Fehler beim Parsen before "kernel_ulong_t"
>/usr/include/linux/mod_devicetable.h:36: error: Fehler beim Parsen before "kernel_ulong_t"
Repeated several times for other lines in the same header file.
I asked the puppy admin and he replied:
This sounds like a problem with the system headers on your distro. At a
guess, you have a mixture of kernel 2.4 and 2.6 headers.
In the case of /usr/include/linux/mod_devicetable.h, __KERNEL__ should
NOT be defined on a 2.6 system and the inclusion of the file should do
nothing.
Currently I am downloading 4.0.2 to see if it makes any difference, slightly worried re the USB problem posted elsewhere, but would be grateful for any pointers.
TIA
Just as a comment, I have compiled puppy fine on my kanotix installation (knoppix derivative) and use it with my toppy 5000 pvr fine.
Well 4.0.2 throws exactly the same errors.

Acer Aspire 14" AI Copilot+PC Laptop Core Ultra 5 226V Gen 4 ARC 16GB 1TB Refurb
$484.37
Dell Latitude 14" Laptop Computer Intel i5 Up To 32GB RAM 1TB SSD Windows 11 Pro
$372.48
1TB SanDisk Extreme Portable SSD (Recertified) - A196-SDSSDE61-1T00
$150.99
External SSD 1TB 2TB Portable Hard Drive USB 3.1 Type-C High Speed PC Mac
$17.99
Acer Predator Helios Neo 16S AI 16" i9 275HX 2S RTX 5070 Ti 32GB 1TB SSD Refurb
$1775.56
Samsung PM981a 1TB NVMe M.2 2280 SSD MZVLB1T0HBLR-000H1 SMART Tested
$99.99
SAMSUNG T7 Portable SSD 1TB Indigo Blue USB 3.2 Gen2 External MU-PC1T0H/AM
$159.99
Acer Aspire 3 15.6" Ryzen 5 7520U 7000 Ser 16GB 1TB SSD Radeon Graphics Refurb
$385.61
Sandisk Optimus Gxpro 850p 1tb
$199.99
External SSD 1TB 2TB 4TB Portable Hard Drive USB 3.0 Type-C High Speed PC Mac
$31.49