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.

Yealink T48S VoIP/SIP Phone, 2 x Gigabit Ports PoE 7" Color SIP-T48S | TESTED
$34.95
Lot of 4 USED IPitomy IP620-B with IPX-32 DSS Expansion Module VoIP Phone POE
$225.00
Lot of 9 Used IPitomy IP320-P HD POE Voice Speakerphone 12-Line VoIP Phone
$225.00
Set of 5 USED IPitomy IP620-B HD VoIP 6-Line IP Phone Speakerphone Ethernet POE
$149.00
Yealink SIP-T33G IP Phone 4-LineSpeakerphone VoIP Desk Phone Black w/ Power Sply
$25.00
Grandstream HT701 1-Port FXS Analog Telephone Adapter ATA VoIP Gateway -Free S/H
$19.99
Grandstream WP810 Portable Cordless Wi-Fi IP Phone
$49.28
Lot of 4 Cisco CP-8841-3PW-NA-K9 8841 MPP Multiplatform VoIP IP Phone NEW
$450.00
SIM Bank 32 SIM Card Slots Ethernet SIM Server for GoIP
$400.00
Poly CCX 400 Desktop Business Media Phone VoIP 2200-49700-019
$49.99