File cdrtools-2.0/libscg/scsi-linux-sg.c needs the following patch, which I will attach separately: #if LINUX_VERSION_CODE >= 0x020500 /* need <asm/types.h> */ /* kernel 2.5.* requires types.h for the 'u8' definition. */ #define __KERNEL__ #include <asm/types.h> #undef __KERNEL__ #endif
Created attachment 6555 [details, diff] patch to cdrtools-2.0/libscg/scsi-linux-sg.c The libscg code includes a scsi header file from the kernel tree. In my 2.5.50 (SGI CVS) kernel, this uses a typedef, 'u8' which is defined in asm/types.h. The added patch tests for kernel version >= 2.5.0 (tho' I don't know exactly where this comes in), and does the necessary #define and #include. Works for me, and should be sent upstream with my compliments if it works for you.
Created attachment 6957 [details] cdrtools-2.0.ebuild Updated ebuild to use this patch.
Created attachment 6958 [details, diff] scsi-linux-sg.patch Updated the patch so you don't have to crawl in the directory structure of cdrtools from within the ebuild... Just a little neatier IMHO.
I used the patch that Jim provided and it finally let cdrtools compile on my system. I'm running a 2.5.x kernel as well.
Thanks for picking up the patch. Glad I could contribute something. If you are in touch with the upstream guy, please forward to him. I gather from the website that he is prickly about Linux. I remember seeing a comment about Linux not being consistent from version to version... but then if you're using kernel headers, you have to expect things to change from time to time.
this patch is in cdrtools-2.01_alpha03 and higher. Jay