Burning CDs in 2.6.0-test5

Submitted by mixonic
on September 21, 2003 - 3:14pm

So,

Does anyone else on the planet burn CDs in 2.6.0-test5 with cdrecord and ATAPI access? I cant seem to compile the cdrecord betas and alphas against 2.6. i am really looking forward to using ATAPI over scsi emulation, and help to be had?

-mix

[root@BettyBoop libscg]# make
==> MAKING "all" ON SUBCOMPONENT ".../libscg.mk"
make[1]: Entering directory `/usr/src/cdrtools-2.01/libscg'
==> COMPILING "OBJ/i686-linux-cc/scsihack.o"
In file included from scsi-linux-sg.c:69,
from scsihack.c:127:
/usr/src/linux/include/scsi/scsi.h:214: syntax error before "u8"
/usr/src/linux/include/scsi/scsi.h:214: warning: no semicolon at end of struct o
r union
/usr/src/linux/include/scsi/scsi.h:215: warning: data definition has no type or
storage class
/usr/src/linux/include/scsi/scsi.h:216: syntax error before "_r2"
/usr/src/linux/include/scsi/scsi.h:216: warning: data definition has no type or
storage class
/usr/src/linux/include/scsi/scsi.h:217: syntax error before "block_desc_length"
/usr/src/linux/include/scsi/scsi.h:217: warning: data definition has no type or
storage class
/usr/src/linux/include/scsi/scsi.h:218: syntax error before "density"
/usr/src/linux/include/scsi/scsi.h:218: warning: data definition has no type or
storage class
/usr/src/linux/include/scsi/scsi.h:219: syntax error before "number_blocks_hi"
/usr/src/linux/include/scsi/scsi.h:219: warning: data definition has no type or
storage class
/usr/src/linux/include/scsi/scsi.h:220: syntax error before "number_blocks_med"
/usr/src/linux/include/scsi/scsi.h:220: warning: data definition has no type or
storage class
/usr/src/linux/include/scsi/scsi.h:221: syntax error before "number_blocks_lo"
/usr/src/linux/include/scsi/scsi.h:221: warning: data definition has no type or
storage class
/usr/src/linux/include/scsi/scsi.h:222: syntax error before "_r3"
/usr/src/linux/include/scsi/scsi.h:222: warning: data definition has no type or
storage class
/usr/src/linux/include/scsi/scsi.h:223: syntax error before "block_length_hi"
/usr/src/linux/include/scsi/scsi.h:223: warning: data definition has no type or
storage class
/usr/src/linux/include/scsi/scsi.h:224: syntax error before "block_length_med"
/usr/src/linux/include/scsi/scsi.h:224: warning: data definition has no type or
storage class
/usr/src/linux/include/scsi/scsi.h:225: syntax error before "block_length_lo"
/usr/src/linux/include/scsi/scsi.h:225: warning: data definition has no type or
storage class
/usr/src/linux/include/scsi/scsi.h:232: syntax error before "u8"
/usr/src/linux/include/scsi/scsi.h:232: warning: no semicolon at end of struct o
r union
/usr/src/linux/include/scsi/scsi.h:233: warning: data definition has no type or
storage class
make[1]: *** [OBJ/i686-linux-cc/scsihack.o] Error 1
make[1]: Leaving directory `/usr/src/cdrtools-2.01/libscg'
make: *** [all] Error 2

Have you tried an RPM?

TheOneKEA
on
September 23, 2003 - 5:42am

Have you tried a cdrecord RPM that has been compiled for packet writing support under 2.6?

---------
/me wants money for an Ub5r 3l33t G@M1nG RiG

Same for me :(

tonyicemanz
on
September 26, 2003 - 7:21pm

Did someone managed to compile cdrtools-2.01a19 against kernel 2.6-test5
I'm actually trying with a SMP kernel.
but I have the exact same problem...

Where can we find thoses rpms?

Thanks

Tony

Success compiling cdrtools with kernel 2.6-test5

tonyicemanz
on
September 27, 2003 - 6:55am

I used cdrtools-2.01a19...

edit cdrtools-2.01/libscg/scsi-linux-sg.c

go to line 60 and you should see somewhere down that, something which look like this code...
check this "patch", and put it in the code as I show ... and you will be able to compile it... (new part is in bold)


...

#ifndef LINUX_VERSION_CODE /* Very old kernel? */
# define LINUX_VERSION_CODE 0
#endif

#if LINUX_VERSION_CODE >= 0x01031a /* <linux/scsi.h> introduced in 1.3.26 */
#if LINUX_VERSION_CODE >= 0x020000 /* <scsi/scsi.h> introduced somewhere. */
/* Need to fine tune the ifdef so we get the transition point right. */

/******** New code to include the u8 type... */
#define __KERNEL__
#include <asm/types.h>
#undef __KERNEL__
/* End of new code ***************************/

#include <scsi/scsi.h>
...

succes compiling cdrtools with kernel-2.6-test*

Anonymous
on
November 20, 2003 - 3:22pm

i just compiled cdrtools-2.01a19 with kernel-2.6-test9. your tip helped me a lot.
thanx

patch libscg/scsi-linux-sg.c

Anonymous
on
January 2, 2004 - 4:41am

Thanks for this hint..
I was trying to compile the latest CVS of cdrdao (1.1.8pre2) and had an error when make'ing .. Applying this patch solved my problem and I can burn with cdrdao now.

Kernel 2.6.0 Final..

Thank you

Anonymous
on
January 22, 2004 - 9:54am

Compiled fine, ur the only man on the web helping me. great thx :D

You are a genious

Anonymous
on
February 18, 2004 - 11:59pm

You are a genious..> Thanks. :)

*bows before the sheer genius

Anonymous
on
March 18, 2004 - 4:04pm

*bows before the sheer genius*
I've been trying to fix this problem ever since I built my 2.6.3 system from scratch, and you've answered my long Googling trials. My gratitudes :D

* A big round of applause please *

Anonymous
on
April 4, 2004 - 6:35am

Yay!

I've only just got round to updating the headers to 2.6 and so have been cursing this problem - thanks for the fix (works great with Kernel 2.6.5 / cdrtools-2.01a27).

__attribute_const__

Anonymous
on
April 22, 2004 - 9:28pm

I also had to remove __attribute_const__ from:
/usr/src/linux/include/asm/byteorder.h (2 occurances)
/usr/src/linux/include/linux/byteorder/swab.h (3 occurances)

I don't know the ramifications of this, but cdrtools finally compiled correctly for me.

Kernel 2.6.3

compile cdrecord on 2.6.5

Anonymous
on
May 7, 2004 - 8:47pm

--- cdrtools-2.0+a19/libscg/scsi-linux-sg.c 2002-10-22 01:20:35.000000000 +0900
+++ scsi-linux-sg.c 2003-12-12 02:13:31.000000000 +0900
@@ -65,6 +65,11 @@

#if LINUX_VERSION_CODE >= 0x01031a /* introduced in 1.3.26 */
#if LINUX_VERSION_CODE >= 0x020000 /* introduced somewhere. */
+#if LINUX_VERSION_CODE >= 0x020600
+#ifndef _KERNEL_
+#define u8 int8_t
+#endif
+#endif
/* Need to fine tune the ifdef so we get the transition point right. */
#include
#else

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.