![](https://seccdn.libravatar.org/avatar/dbfa997d2449d071e4edd1d11dc0bace.jpg?s=120&d=mm&r=g)
I just upgraded to Slackware 10.0 and now I'm having a problem compiling cdmrw. make is throwing a bunch of errors, both about cdmrw.c itself and the cdrom.h in the 2.6.7 kernel. Is there a newer version of cdmrw available or is there some new utility that can do formatting for Mt. Rainier discs? Matt
![](https://seccdn.libravatar.org/avatar/51a7700397ed84d8e44df3701f556370.jpg?s=120&d=mm&r=g)
On Tue, 29 Jun 2004, Matthew Arnold wrote:
I just upgraded to Slackware 10.0 and now I'm having a problem compiling cdmrw. make is throwing a bunch of errors, both about cdmrw.c itself and the cdrom.h in the 2.6.7 kernel. Is there a newer version of cdmrw available or is there some new utility that can do formatting for Mt. Rainier discs?
I think most distributions have a too old version of cdrom.h, so you need to point the compiler to a new enough version. I used: gcc -O2 -Wall -o cdmrw cdmrw.c -I /path_to_linux_src/include/ -- Peter Osterlund - petero2@telia.com http://w1.894.telia.com/~u89404340
![](https://seccdn.libravatar.org/avatar/dbfa997d2449d071e4edd1d11dc0bace.jpg?s=120&d=mm&r=g)
Peter Osterlund wrote:
On Tue, 29 Jun 2004, Matthew Arnold wrote:
I just upgraded to Slackware 10.0 and now I'm having a problem compiling cdmrw. make is throwing a bunch of errors, both about cdmrw.c itself and the cdrom.h in the 2.6.7 kernel. Is there a newer version of cdmrw available or is there some new utility that can do formatting for Mt. Rainier discs?
I think most distributions have a too old version of cdrom.h, so you need to point the compiler to a new enough version. I used:
gcc -O2 -Wall -o cdmrw cdmrw.c -I /path_to_linux_src/include/
I edited the cdrom.h include in cdmrw.c to point directly at the one in my 2.6.7 kernel source thusly: #include For those of you keeping score at home, this is what happens when I try to compile it. marnold@skyron:~/downloads$ make cdmrw cc cdmrw.c -o cdmrw In file included from cdmrw.c:26: /usr/src/linux-2.6.7/include/linux/cdrom.h:242: warning: no semicolon at end of struct or union /usr/src/linux-2.6.7/include/linux/cdrom.h:242: error: parse error before '*' token /usr/src/linux-2.6.7/include/linux/cdrom.h:283: warning: no semicolon at end of struct or union /usr/src/linux-2.6.7/include/linux/cdrom.h:283: error: parse error before '*' token /usr/src/linux-2.6.7/include/linux/cdrom.h:286: error: parse error before '*' token /usr/src/linux-2.6.7/include/linux/cdrom.h:286: warning: data definition has no type or storage class /usr/src/linux-2.6.7/include/linux/cdrom.h:290: error: parse error before '*' token /usr/src/linux-2.6.7/include/linux/cdrom.h:290: warning: data definition has no type or storage class /usr/src/linux-2.6.7/include/linux/cdrom.h:291: error: parse error before '}' token cdmrw.c: In function `dump_cgc': cdmrw.c:53: error: dereferencing pointer to incomplete type cdmrw.c:58: error: dereferencing pointer to incomplete type cdmrw.c:61: error: dereferencing pointer to incomplete type cdmrw.c:62: error: dereferencing pointer to incomplete type cdmrw.c:63: error: dereferencing pointer to incomplete type cdmrw.c: In function `wait_cmd': cdmrw.c:83: error: dereferencing pointer to incomplete type cdmrw.c:84: error: dereferencing pointer to incomplete type cdmrw.c:85: error: dereferencing pointer to incomplete type cdmrw.c:86: error: dereferencing pointer to incomplete type cdmrw.c:87: error: dereferencing pointer to incomplete type cdmrw.c:88: error: dereferencing pointer to incomplete type cdmrw.c: In function `start_bg_format': cdmrw.c:101: error: storage size of `cgc' isn't known cdmrw.c:104: error: invalid application of `sizeof' to an incomplete type cdmrw.c: In function `mrw_format_suspend': cdmrw.c:146: error: storage size of `cgc' isn't known cdmrw.c:155: error: invalid application of `sizeof' to an incomplete type cdmrw.c: In function `get_media_event': cdmrw.c:172: error: storage size of `cgc' isn't known cdmrw.c:176: error: invalid application of `sizeof' to an incomplete type cdmrw.c: In function `get_progress': cdmrw.c:195: error: storage size of `cgc' isn't known cdmrw.c:199: error: invalid application of `sizeof' to an incomplete type cdmrw.c: In function `get_format_progress': cdmrw.c:219: error: storage size of `cgc' isn't known cdmrw.c:227: error: invalid application of `sizeof' to an incomplete type cdmrw.c: In function `get_mrw_media_status': cdmrw.c:256: error: storage size of `cgc' isn't known cdmrw.c:259: error: invalid application of `sizeof' to an incomplete type cdmrw.c: In function `check_for_mrw': cdmrw.c:338: error: storage size of `cgc' isn't known cdmrw.c:341: error: invalid application of `sizeof' to an incomplete type cdmrw.c: In function `__get_lba_space': cdmrw.c:357: error: storage size of `cgc' isn't known cdmrw.c:359: error: invalid application of `sizeof' to an incomplete type cdmrw.c: In function `switch_lba_space': cdmrw.c:411: error: storage size of `cgc' isn't known cdmrw.c:434: error: invalid application of `sizeof' to an incomplete type make: *** [cdmrw] Error 1 This is with gcc 3.3.4 and kernel 2.6.7 in the aforementioned Slackware 10.0. Matt
participants (2)
-
Matthew Arnold
-
Peter Osterlund